release: Add openwrt apk build

This commit is contained in:
世界
2026-03-06 21:59:01 +08:00
parent df0bf927e4
commit bc3884ca91
3 changed files with 101 additions and 0 deletions

View File

@@ -47,6 +47,12 @@ elif command -v rpm >/dev/null 2>&1; then
arch=$(uname -m)
package_suffix=".rpm"
package_install="rpm -i"
elif command -v apk >/dev/null 2>&1 && [ -f /etc/os-release ] && grep -q OPENWRT_ARCH /etc/os-release; then
os="openwrt"
. /etc/os-release
arch="$OPENWRT_ARCH"
package_suffix=".apk"
package_install="apk add --allow-untrusted"
elif command -v opkg >/dev/null 2>&1; then
os="openwrt"
. /etc/os-release