Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beta v9.10.0 #7372

Draft
wants to merge 109 commits into
base: beta
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
5f69eeb
Release v9.8 (#7246)
MichaIng Oct 17, 2024
c9eda88
Release v9.0 (#7313)
MichaIng Dec 23, 2024
83ef4a4
v9.10
MichaIng Dec 24, 2024
4195304
v9.10
MichaIng Dec 25, 2024
fe70125
v9.10
MichaIng Dec 25, 2024
335d817
v9.10 (#7317)
StephanStS Dec 25, 2024
46a5237
Init v9.10 (#7319)
StephanStS Dec 25, 2024
2d07ecb
v9.10
MichaIng Dec 25, 2024
749da78
v9.10
MichaIng Dec 25, 2024
ab7c1f0
v9.10
MichaIng Dec 25, 2024
deb6ff9
v9.10
MichaIng Dec 25, 2024
2889721
v9.10
MichaIng Dec 25, 2024
c7a3411
v9.10
MichaIng Dec 25, 2024
fb67ff8
Live patch 0 v9.9 (#7322)
MichaIng Dec 25, 2024
ec4c1e5
v9.10
MichaIng Dec 27, 2024
ce1d589
Live patch 1+2 v9.9 (#7328)
MichaIng Dec 27, 2024
ef4c39f
v9.10 (#7332)
Joulinar Dec 30, 2024
563108d
v9.10
MichaIng Dec 30, 2024
5aa5488
v9.10
MichaIng Dec 30, 2024
6a539d1
v9.10
MichaIng Dec 30, 2024
69941ea
v9.10 (#7335)
MichaIng Jan 1, 2025
579ee5f
v9.10
MichaIng Jan 2, 2025
2b344ee
v9.10
MichaIng Jan 2, 2025
7ad467c
v9.10
MichaIng Jan 2, 2025
b09b909
v9.10
MichaIng Jan 2, 2025
f705407
v9.10
MichaIng Jan 2, 2025
58925ac
v9.10
MichaIng Jan 3, 2025
1bf41db
v9.10 (#7342)
MichaIng Jan 4, 2025
b96b0e1
v9.10
MichaIng Jan 5, 2025
cd56747
v9.10
MichaIng Jan 5, 2025
77bd5c6
v9.10 (#7347)
MichaIng Jan 6, 2025
301dd5b
v9.10
MichaIng Jan 6, 2025
bac91f6
v9.10 (#7348)
MichaIng Jan 6, 2025
522abbd
v9.10
MichaIng Jan 6, 2025
1b26497
v9.10
MichaIng Jan 6, 2025
8fd0327
v9.10
MichaIng Jan 6, 2025
52880db
v9.10
MichaIng Jan 6, 2025
d86953a
v9.10
MichaIng Jan 6, 2025
6bd87f2
v9.10
MichaIng Jan 6, 2025
e0430a7
v9.10
MichaIng Jan 6, 2025
cc870ab
v9.10
MichaIng Jan 7, 2025
ade062f
v9.10
MichaIng Jan 7, 2025
b694332
v9.10
MichaIng Jan 7, 2025
20e6337
v9.10 (#7352)
MichaIng Jan 7, 2025
f8229fb
Removed software "Network Tools" (#7351)
StephanStS Jan 7, 2025
f90d2c4
Live patch 3 v9.9 (#7355)
MichaIng Jan 8, 2025
585989e
v9.10
MichaIng Jan 8, 2025
098be2d
v9.10 (#7356)
MichaIng Jan 8, 2025
fb3e591
v9.10
MichaIng Jan 9, 2025
7def240
v9.10
MichaIng Jan 9, 2025
256b615
v9.10
MichaIng Jan 9, 2025
986ff06
v9.10
MichaIng Jan 10, 2025
61f9705
v9.10
MichaIng Jan 10, 2025
3ba6e0d
v9.10
MichaIng Jan 10, 2025
aeacf45
v9.10
MichaIng Jan 12, 2025
8be8c29
v9.10
MichaIng Jan 13, 2025
e6bf2ef
v9.10
MichaIng Jan 16, 2025
40b0fbc
v9.10
MichaIng Jan 19, 2025
9c27a6f
v9.10
MichaIng Jan 19, 2025
64a54bc
v9.10
MichaIng Jan 19, 2025
08a62db
v9.10
MichaIng Jan 19, 2025
2381f0f
v9.10
MichaIng Jan 19, 2025
5d1733d
v9.10
MichaIng Jan 19, 2025
7857e8e
v9.10
MichaIng Jan 20, 2025
efbeae1
v9.10
MichaIng Jan 20, 2025
333bd4e
v9.10
MichaIng Jan 20, 2025
d944e6d
v9.10
MichaIng Jan 20, 2025
02b2704
v9.10
MichaIng Jan 20, 2025
1246f7f
v9.10
MichaIng Jan 20, 2025
8045156
v9.10
MichaIng Jan 20, 2025
4ff6d78
v9.10
MichaIng Jan 21, 2025
27401e0
Live patch 1 v9.9
MichaIng Jan 21, 2025
77511bd
v9.10
MichaIng Jan 21, 2025
1134bb2
v9.10
MichaIng Jan 21, 2025
307b600
v9.10
MichaIng Jan 22, 2025
5e9027b
v9.10
MichaIng Jan 23, 2025
800f3a8
v9.10
MichaIng Jan 23, 2025
d3a452b
v9.10
MichaIng Jan 24, 2025
f575756
v9.10
MichaIng Jan 24, 2025
660775d
v9.10
MichaIng Jan 24, 2025
debb351
v9.10
MichaIng Jan 24, 2025
921da14
v9.10
MichaIng Jan 25, 2025
68cee06
Merge branch 'master' into dev
MichaIng Jan 25, 2025
875aa96
Live patches: Remove those merged from master
MichaIng Jan 25, 2025
8adf92b
v9.10
MichaIng Jan 25, 2025
c7c1e5a
v9.10
MichaIng Jan 25, 2025
c63f5f2
DietPi-Banner: Add DietPi Bluesky profile to web links
MichaIng Jan 25, 2025
3ddc668
v9.10
MichaIng Jan 26, 2025
8a76d9b
v9.10
MichaIng Jan 27, 2025
cbd9363
v9.10
MichaIng Jan 27, 2025
d94e6f1
ci: dietpi-software test: test test builds of APT-hosted packages
MichaIng Jan 27, 2025
568344b
ci: dietpi-software test: satisfy shellcheck
MichaIng Jan 27, 2025
2134d19
ci: fix download of Shairport Sync testing builds
MichaIng Jan 27, 2025
de3965a
ci: dietpi-software test: fix test software patch
MichaIng Jan 27, 2025
e1c5bd0
ci: dietpi-software test: another fix for testing Shairport Sync
MichaIng Jan 27, 2025
a94ed0d
ci: dietpi-software test: another fix for testing test builds
MichaIng Jan 27, 2025
e145ed1
ci: dietpi-software test: fix order
MichaIng Jan 27, 2025
4c5457c
dietpi-software: Domoticz: update download URL
MichaIng Jan 28, 2025
97fc20e
changelog: Update URL
MichaIng Jan 29, 2025
37d1f08
dietpi-software: Add support for automatied APT package installs
MichaIng Jan 30, 2025
29fb272
dietpi-software: push forgotten amendement
MichaIng Jan 30, 2025
326b2f0
dietpi-software: Removal of file managers and text editors (#7354)
MichaIng Jan 30, 2025
344a5b2
changelog: update release date
MichaIng Jan 30, 2025
9507569
dietpi-software: unhide webservers and PHP in software list
MichaIng Jan 30, 2025
f5967f8
dietpi-software: minor text change
MichaIng Jan 30, 2025
9ea98e2
dietpi-software: disable RPi Cam Web Interface on Bookworm
MichaIng Jan 31, 2025
92a94a3
dietpi-software: Domoticz: update dependencies
MichaIng Jan 31, 2025
9f111b0
dietpi-build: make UEFI and ISO options independent
MichaIng Jan 31, 2025
6a9e7f1
dietpi-software: Certbot moved to "System security" (#7378)
StephanStS Feb 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .build/images/U-Boot/boot.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fi
setenv bootargs "root=${rootdev} rootfstype=${rootfstype} rootwait ${consoleargs} consoleblank=0 coherent_pool=2M usb-storage.quirks=${usbstoragequirks} ${extraargs}"

# Add bootargs for Docker
if test "${docker_optimizations}" = "on"; then setenv bootargs "${bootargs} cgroup_enable=memory swapaccount=1"; fi
if test "${docker_optimizations}" = "on"; then setenv bootargs "${bootargs} cgroup_enable=memory"; fi

# Load kernel, initramfs and device tree
load "${devtype}" "${devnum}" "${kernel_addr_r}" "${prefix}Image"
Expand Down
202 changes: 99 additions & 103 deletions .build/images/dietpi-build

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .build/images/dietpi-installer
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,7 @@ _EOF_
83) model='orangepizero3' kernel='sunxi64';;
85) model='rock-5a' kernel='rk35xx' branch='vendor';;
86) model='tinkerboard-2' kernel='rockchip64';;
87) model='orangepi3b' kernel='rockchip64' branch='edge';;
87) model='orangepi3b' kernel='rockchip64';;
88) model='orangepizero2w' kernel='sunxi64';;
89) model='orangepi3-lts' kernel='sunxi64';;
90) model='radxa-zero3' kernel='rk35xx' branch='legacy';;
Expand Down
29 changes: 10 additions & 19 deletions .build/software/Amiberry/container_build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ case $PLATFORM in
'rpi'[345]'-64-'*|'AMLSM1'|'n2'|'a64'|'rk3588') image="ARMv8-${DISTRO^}" arch=3;;
'rpi'[2-5]*|'c1'|'xu4'|'RK3288'|'sun8i'|'s812') image="ARMv7-${DISTRO^}" arch=2;;
'x86-64') image="x86_64-${DISTRO^}" arch=10;;
'riscv64') image='RISC-V-Sid' arch=11;;
'riscv64') image="RISC-V-${DISTRO^}" arch=11;;
*) Error_Exit "Invalid platform \"$PLATFORM\" passed";;
esac
image="DietPi_Container-$image.img"
Expand Down Expand Up @@ -119,24 +119,15 @@ G_EXEC mount "${FP_LOOP}p1" rootfs

# Enable automated setup
G_CONFIG_INJECT 'AUTO_SETUP_AUTOMATED=' 'AUTO_SETUP_AUTOMATED=1' rootfs/boot/dietpi.txt
# - Workaround for skipped autologin in emulated Trixie/Sid containers: https://gitlab.com/qemu-project/qemu/-/issues/1962
# - Workaround for failing systemd services and hence missing autologin in emulated Trixie containers: https://gitlab.com/qemu-project/qemu/-/issues/1962, https://github.com/systemd/systemd/issues/31219
if [[ $DISTRO == 'trixie' ]] && (( $G_HW_ARCH != $arch && ( $G_HW_ARCH > 9 || $G_HW_ARCH < $arch ) ))
then
cat << '_EOF_' > rootfs/etc/systemd/system/dietpi-automation.service
[Unit]
Description=DietPi-Automation
After=dietpi-postboot.service

[Service]
Type=idle
StandardOutput=tty
ExecStart=/bin/dash -c 'infocmp "$TERM" > /dev/null 2>&1 || { echo "[ WARN ] Unsupported TERM=\"$TERM\", switching to TERM=\"dumb\""; export TERM=dumb; }; exec /boot/dietpi/dietpi-login'
ExecStop=/sbin/poweroff

[Install]
WantedBy=multi-user.target
_EOF_
G_EXEC ln -s /etc/systemd/system/dietpi-automation.service rootfs/etc/systemd/system/multi-user.target.wants/
for i in rootfs/usr/lib/systemd/system/*.service
do
grep -q '^ImportCredential=' "$i" || continue
G_EXEC mkdir "${i/usr\/lib/etc}.d"
G_EXEC eval "echo -e '[Service]\nImportCredential=' > ${i/usr\/lib/etc}.d/dietpi-no-ImportCredential.conf"
done
fi

# Workaround invalid TERM on login
Expand All @@ -147,7 +138,7 @@ G_EXEC eval 'echo '\''infocmp "$TERM" > /dev/null 2>&1 || { echo "[ WARN ] Unsup
G_CONFIG_INJECT 'CONFIG_CHECK_CONNECTION_IP=' 'CONFIG_CHECK_CONNECTION_IP=127.0.0.1' rootfs/boot/dietpi.txt

# Shutdown on failures before the custom script is executed
G_EXEC sed --follow-symlinks -i 's|Prompt_on_Failure$|{ journalctl -n 50; ss -tulpn; df -h; free -h; poweroff; }|' rootfs/boot/dietpi/dietpi-login
G_EXEC sed --follow-symlinks -i 's|Prompt_on_Failure$|{ journalctl -n 50; ss -tulpn; df -h; free -h; systemctl start poweroff.target; }|' rootfs/boot/dietpi/dietpi-login

# Avoid DietPi-Survey uploads to not mess with the statistics
G_EXEC rm rootfs/root/.ssh/known_hosts
Expand All @@ -172,7 +163,7 @@ cat << _EOF_ >> rootfs/boot/Automation_Custom_Script.sh || Error_Exit 'Failed to
echo '[ INFO ] Running Amiberry build script ...'
bash -c "\$(curl -sSf 'https://raw.githubusercontent.com/$G_GITOWNER/DietPi/$G_GITBRANCH/.build/software/Amiberry/build.bash')" -- '$PLATFORM'
mv -v '/tmp/amiberry_$PLATFORM.deb' /
poweroff
systemctl start poweroff.target
_EOF_

##########################################
Expand Down
32 changes: 10 additions & 22 deletions .build/software/dietpi-software-build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ case $ARCH in
'armv7l') image="ARMv7-${DISTRO^}" arch=2;;
'aarch64') image="ARMv8-${DISTRO^}" arch=3;;
'x86_64') image="x86_64-${DISTRO^}" arch=10;;
'riscv64') image='RISC-V-Sid' arch=11; [[ $DISTRO == 'trixie' ]] || Error_Exit "Invalid distro \"$DISTRO\" for arch \"$ARCH\" passed, only \"trixie\" is supported";;
'riscv64') image="RISC-V-${DISTRO^}" arch=11; [[ $DISTRO == 'trixie' ]] || Error_Exit "Invalid distro \"$DISTRO\" for arch \"$ARCH\" passed, only \"trixie\" is supported";;
*) Error_Exit "Invalid architecture \"$ARCH\" passed";;
esac
image="DietPi_Container-$image.img"
Expand Down Expand Up @@ -123,24 +123,15 @@ G_EXEC mount "${FP_LOOP}p1" rootfs

# Enable automated setup
G_CONFIG_INJECT 'AUTO_SETUP_AUTOMATED=' 'AUTO_SETUP_AUTOMATED=1' rootfs/boot/dietpi.txt
# - Workaround for skipped autologin in emulated Trixie/Sid containers: https://gitlab.com/qemu-project/qemu/-/issues/1962
# - Workaround for failing systemd services and hence missing autologin in emulated Trixie containers: https://gitlab.com/qemu-project/qemu/-/issues/1962, https://github.com/systemd/systemd/issues/31219
if [[ $DISTRO == 'trixie' ]] && (( $G_HW_ARCH != $arch && ( $G_HW_ARCH > 9 || $G_HW_ARCH < $arch ) ))
then
cat << '_EOF_' > rootfs/etc/systemd/system/dietpi-automation.service
[Unit]
Description=DietPi-Automation
After=dietpi-postboot.service

[Service]
Type=idle
StandardOutput=tty
ExecStart=/bin/dash -c 'infocmp "$TERM" > /dev/null 2>&1 || { echo "[ WARN ] Unsupported TERM=\"$TERM\", switching to TERM=\"dumb\""; export TERM=dumb; }; exec /boot/dietpi/dietpi-login'
ExecStop=/sbin/poweroff

[Install]
WantedBy=multi-user.target
_EOF_
G_EXEC ln -s /etc/systemd/system/dietpi-automation.service rootfs/etc/systemd/system/multi-user.target.wants/
for i in rootfs/usr/lib/systemd/system/*.service
do
grep -q '^ImportCredential=' "$i" || continue
G_EXEC mkdir "${i/usr\/lib/etc}.d"
G_EXEC eval "echo -e '[Service]\nImportCredential=' > ${i/usr\/lib/etc}.d/dietpi-no-ImportCredential.conf"
done
fi

# Install Go for Gogs
Expand All @@ -154,21 +145,18 @@ G_EXEC eval 'echo '\''infocmp "$TERM" > /dev/null 2>&1 || { echo "[ WARN ] Unsup
G_CONFIG_INJECT 'CONFIG_CHECK_CONNECTION_IP=' 'CONFIG_CHECK_CONNECTION_IP=127.0.0.1' rootfs/boot/dietpi.txt

# Shutdown on failures before the custom script is executed
G_EXEC sed --follow-symlinks -i 's|Prompt_on_Failure$|{ journalctl -n 50; ss -tulpn; df -h; free -h; poweroff; }|' rootfs/boot/dietpi/dietpi-login
G_EXEC sed --follow-symlinks -i 's|Prompt_on_Failure$|{ journalctl -n 50; ss -tulpn; df -h; free -h; systemctl start poweroff.target; }|' rootfs/boot/dietpi/dietpi-login

# Avoid DietPi-Survey uploads to not mess with the statistics
G_EXEC rm rootfs/root/.ssh/known_hosts

# ARMv6/7 Trixie: Temporarily prevent dist-upgrade on Trixie, as it fails due to 64-bit time_t transition causing dependency conflicts across the repo.
(( $arch < 3 )) && [[ $DISTRO == 'trixie' ]] && G_EXEC touch rootfs/boot/dietpi/.skip_distro_upgrade

# Automated build
cat << _EOF_ > rootfs/boot/Automation_Custom_Script.sh || Error_Exit 'Failed to generate Automation_Custom_Script.sh'
#!/bin/dash
echo '[ INFO ] Running $NAME build script ...'
bash -c "\$(curl -sSf 'https://raw.githubusercontent.com/$G_GITOWNER/DietPi/$G_GITBRANCH/.build/software/$NAME/build.bash')"
mkdir -v /output && mv -v /tmp/*.$EXT /output
poweroff
systemctl start poweroff.target
_EOF_

##########################################
Expand Down
7 changes: 2 additions & 5 deletions .build/software/shairport-sync/build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,12 @@
# -------------------------

# Build deps
# - Workaround for CI on Buster: Mask Avahi daemon service, since it can fail to start, failing the package install
(( $G_DISTRO == 5 )) && G_EXEC systemctl mask avahi-daemon
G_AGUP
G_AGDUG automake pkg-config make g++ libpopt-dev libconfig-dev libssl-dev libsoxr-dev libavahi-client-dev libasound2-dev libglib2.0-dev libmosquitto-dev avahi-daemon git libplist-dev libsodium-dev libgcrypt20-dev libavformat-dev xxd
(( $G_DISTRO == 5 )) && G_EXEC systemctl unmask avahi-daemon
adeps=('libc6' 'libasound2' 'libavahi-client3' 'libsoxr0' 'libconfig9' 'libpopt0' 'libglib2.0-0' 'libmosquitto1' 'avahi-daemon')
adeps2=('libsodium23' 'libgcrypt20')
case $G_DISTRO in
5|6) adeps+=('libssl1.1'); adeps2+=('libavcodec58' 'libplist3');;
6) adeps+=('libssl1.1'); adeps2+=('libavcodec58' 'libplist3');;
7) adeps+=('libssl3'); adeps2+=('libavcodec59' 'libplist3');;
8) adeps+=('libssl3'); adeps2+=('libavcodec61' 'libplist-2.0-4');;
*) G_DIETPI-NOTIFY 1 "Unsupported distro version: $G_DISTRO_NAME (ID=$G_DISTRO)"; exit 1;;
Expand Down Expand Up @@ -202,7 +199,7 @@ alsa =
// output_rate = "auto"; // can be "auto", 44100, 88200, 176400 or 352800, but the device must have the capability.
// output_format = "auto"; // can be "auto", "U8", "S8", "S16", "S16_LE", "S16_BE", "S24", "S24_LE", "S24_BE", "S24_3LE", "S24_3BE", "S32", "S32_LE" or "S32_BE" but the device must have the capability. Except where stated using (*LE or *BE), endianness matches that of the processor.

// disable_synchronization = "no"; // Set to "yes" to disable synchronization. Default is "no" This is really meant for troubleshootingG.
// disable_synchronization = "no"; // Set to "yes" to disable synchronization. Default is "no" This is really meant for troubleshooting.

// period_size = <number>; // Use this optional advanced setting to set the alsa period size near to this value
// buffer_size = <number>; // Use this optional advanced setting to set the alsa buffer size near to this value
Expand Down
18 changes: 9 additions & 9 deletions .build/software/vaultwarden/build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ G_DIETPI-NOTIFY 2 'Installing Rust via rustup'
grep -q '^ID=raspbian' /etc/os-release && G_HW_ARCH_NAME='armv6l' host=('--default-host' 'arm-unknown-linux-gnueabihf') || host=()
# - ARMv7: Apply workaround for failing crates index update in in emulated 32-bit ARM environments: https://github.com/rust-lang/cargo/issues/8719. CARGO_REGISTRIES_CRATES_IO_PROTOCOL='sparse' does not solve everything: https://github.com/rust-lang/cargo/issues/8719#issuecomment-1928540617
# - ARMv8: Apply workaround for increased cargo fetch RAM usage: https://github.com/rust-lang/cargo/issues/10583
# - Trixie: Set missing HOME, since the script runs from a systemd unit without login shell and hence no HOME set.
export HOME=$(mktemp -d) CARGO_NET_GIT_FETCH_WITH_CLI='true'
G_EXEC cd "$HOME"
G_EXEC curl -sSfo rustup-init.sh 'https://sh.rustup.rs'
Expand All @@ -35,6 +34,14 @@ export PATH="$HOME/.cargo/bin:$PATH"
# - vaultwarden
version=$(curl -sSf 'https://api.github.com/repos/dani-garcia/vaultwarden/releases/latest' | mawk -F\" '/^ *"tag_name": "[^"]*",$/{print $4}')
[[ $version ]] || { G_DIETPI-NOTIFY 1 'No latest vaultwarden version found, aborting ...'; exit 1; }
# - Obtain version suffix
G_EXEC curl -sSfo package.deb "https://dietpi.com/downloads/binaries/$G_DISTRO_NAME/vaultwarden_$G_HW_ARCH_NAME.deb"
old_version=$(dpkg-deb -f package.deb Version) || exit 1
G_EXEC rm package.deb
suffix=${old_version#*-dietpi}
[[ $old_version == "$version-"* ]] && pkg_version="$version-dietpi$((suffix+1))" || pkg_version+="$version-dietpi1"
# - Env var to show version in web UI: https://github.com/MichaIng/DietPi/issues/7364
export VW_VERSION=$pkg_version
# - web vault
wv_url=$(curl -sSf 'https://api.github.com/repos/dani-garcia/bw_web_builds/releases/latest' | mawk -F\" '/^ *"browser_download_url": ".*\.tar\.gz"$/{print $4}')
[[ $wv_url ]] || { G_DIETPI-NOTIFY 1 'No latest web vault version found, aborting ...'; exit 1; }
Expand Down Expand Up @@ -214,17 +221,10 @@ DEPS_APT_VERSIONED=${DEPS_APT_VERSIONED%,}
# shellcheck disable=SC2001
[[ $G_HW_ARCH_NAME == 'armv6l' ]] && DEPS_APT_VERSIONED=$(sed 's/+rp[it][0-9]\+[^)]*)/)/g' <<< "$DEPS_APT_VERSIONED") || DEPS_APT_VERSIONED=$(sed 's/+b[0-9]\+)/)/g' <<< "$DEPS_APT_VERSIONED")

# - Obtain version suffix
G_EXEC curl -sSfo package.deb "https://dietpi.com/downloads/binaries/$G_DISTRO_NAME/vaultwarden_$G_HW_ARCH_NAME.deb"
old_version=$(dpkg-deb -f package.deb Version)
G_EXEC rm package.deb
suffix=${old_version#*-dietpi}
[[ $old_version == "$version-"* ]] && version+="-dietpi$((suffix+1))" || version+="-dietpi1"

# - control
cat << _EOF_ > "$DIR/DEBIAN/control"
Package: vaultwarden
Version: $version
Version: $pkg_version
Architecture: $(dpkg --print-architecture)
Maintainer: MichaIng <micha@dietpi.com>
Date: $(date -uR)
Expand Down
21 changes: 18 additions & 3 deletions .github/workflows/armbian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
branch:
description: 'Branch'
type: choice
options: [legacy, current, edge, vendor, collabora]
options: [legacy, vendor, current, edge]
default: current
required: true
board:
Expand Down Expand Up @@ -66,6 +66,11 @@ jobs:
git fetch origin main
git rebase origin/main
fi
# Workaround for onboard WiFi on Orange Pi 5 Max
if [ '${{ github.event.inputs.board }}' = 'orangepi5-max' ] && [ '${{ github.event.inputs.asset }}' = 'kernel' ] && [ '${{ github.event.inputs.gitbranch }}' != 'orangepi5max' ]
then
git cherry-pick origin/orangepi5max || git cherry-pick dietpi/orangepi5max
fi
- name: Obtain version suffix
run: |
cd build
Expand All @@ -82,6 +87,10 @@ jobs:
;;
*) echo 'ERROR: Invalid asset "${{ github.event.inputs.asset }}"'; exit 1;;
esac
if [ '${{ github.event.inputs.board }}' = 'orangepi5-max' ] && [ '${{ github.event.inputs.asset }}' = 'kernel' ]
then
package="${package}_orangepi5max"
fi
if curl -fO "https://dietpi.com/downloads/binaries/$package.deb"
then
cur_version=$(dpkg-deb -f "$package.deb" Version)
Expand Down Expand Up @@ -111,8 +120,14 @@ jobs:
cd build/output/debs
for i in *
do
mv -v "$i" "${i%%_*}.deb"
i="${i%%_*}.deb"
if [ '${{ github.event.inputs.board }}' = 'orangepi5-max' ] && [ '${{ github.event.inputs.asset }}' = 'kernel' ]
then
mv -v "$i" "${i%%_*}_orangepi5max.deb"
i="${i%%_*}_orangepi5max.deb"
else
mv -v "$i" "${i%%_*}.deb"
i="${i%%_*}.deb"
fi
files="$files,$i"
urls="$urls,\"https://dietpi.com/downloads/binaries/testing/$i\""
done
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/dietpi-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ jobs:
'"-m 15 -d 6", "-m 15 -d 7", "-m 15 -d 8", '\
'"-m 16 -d 6", "-m 16 -d 7", "-m 16 -d 8", '\
'"-m 20 -d 6 -v all", "-m 20 -d 7 -v all", "-m 20 -d 8 -v all", '\
'"-m 21 -d 6", "-m 21 -d 7", "-m 21 -d 8", '\
'"-m 21 -d 6 -i", "-m 21 -d 7 -i", "-m 21 -d 8 -i", '\
'"-m 21 -d 6 -p gpt", "-m 21 -d 7 -p gpt", "-m 21 -d 8 -p gpt", '\
'"-m 20 -d 6 -v all -g gpt", "-m 20 -d 7 -g gpt -v all", "-m 20 -d 8 -g gpt -v all", '\
'"-m 21 -d 6 -v all", "-m 21 -d 7 -v all", "-m 21 -d 8 -v all", '\
'"-m 21 -d 6 -v all -g gpt", "-m 21 -d 7 -g gpt -v all", "-m 21 -d 8 -g gpt -v all", '\
'"-m 40 -d 6", "-m 40 -d 7", "-m 40 -d 8", '\
'"-m 42 -d 6", "-m 42 -d 7", "-m 42 -d 8", '\
'"-m 43 -d 6", "-m 43 -d 7", "-m 43 -d 8", '\
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/dietpi-software-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ jobs:
exclude:
- { arch: riscv64, dist: bullseye }
- { arch: riscv64, dist: bookworm }
- { arch: armv7l, name: gogs }
- { arch: aarch64, name: gogs }
- { arch: x86_64, name: gogs }
fail-fast: false
Expand Down
Loading