|
|
本帖最后由 幻辰殇 于 2025-8-28 13:58 编辑
当然不行了,这个是默认apk的,quickstart不支持apk,只能使用ipk,而且你为什么要在工作流中改feeds呢?Packages.sh脚本里想加什么就加什么的
Packages.sh中加
#quickstart
UPDATE_PACKAGE "taskd" "kenzok8/small-package" "main" "pkg"
UPDATE_PACKAGE "luci-lib-xterm" "kenzok8/small-package" "main" "pkg"
UPDATE_PACKAGE "luci-lib-taskd" "kenzok8/small-package" "main" "pkg"
UPDATE_PACKAGE "luci-app-store" "kenzok8/small-package" "main" "pkg"
UPDATE_PACKAGE "quickstart" "kenzok8/small-package" "main" "pkg"
UPDATE_PACKAGE "luci-app-quickstart" "kenzok8/small-package" "main" "pkg"
UPDATE_PACKAGE "luci-app-istorex" "kenzok8/small-package" "main" "pkg"
Handles.sh中加
# 安装opkg distfeeds
emortal_def_dir="$GITHUB_WORKSPACE/wrt/package/emortal/default-settings"
distfeeds_conf="$emortal_def_dir/files/99-distfeeds.conf"
if [ -d "$emortal_def_dir" ] && [ ! -f "$distfeeds_conf" ]; then
cat <<'EOF' >"$distfeeds_conf"
src/gz openwrt_base https://downloads.immortalwrt.or ... 64_cortex-a53/base/
src/gz openwrt_luci https://downloads.immortalwrt.or ... 64_cortex-a53/luci/
src/gz openwrt_packages https://downloads.immortalwrt.or ... ortex-a53/packages/
src/gz openwrt_routing https://downloads.immortalwrt.or ... cortex-a53/routing/
src/gz openwrt_telephony https://downloads.immortalwrt.or ... rtex-a53/telephony/
EOF
sed -i "/define Package\/default-settings\/install/a\\
\\t\$(INSTALL_DIR) \$(1)/etc\\n\
\t\$(INSTALL_DATA) ./files/99-distfeeds.conf \$(1)/etc/99-distfeeds.conf\n" $emortal_def_dir/Makefile
sed -i "/exit 0/i\\
[ -f \'/etc/99-distfeeds.conf\' ] && mv \'/etc/99-distfeeds.conf\' \'/etc/opkg/distfeeds.conf\'\n\
sed -ri \'/check_signature/s@^[^#]@#&@\' /etc/opkg.conf\n" $emortal_def_dir/files/99-default-settings
echo "软件源修改成功!"
fi
#修复quickstart温度显示
QUICKSTART_FILE="../package/luci-app-quickstart/luasrc/controller/istore_backend.lua"
QUICKSTART_URL="https://gist.githubusercontent.com/puteulanus/1c180fae6bccd25e57eb6d30b7aa28aa/raw/istore_backend.lua"
if wget -O "$QUICKSTART_FILE" "$QUICKSTART_URL"; then
echo "quickstart温度显示已成功修复!"
else
echo "错误:无法下载quickstart文件,请检查URL和网络连接。"
exit 1
fi
GENERAL.txt中加
CONFIG_PACKAGE_luci-app-istorex=y
# 使用opkg替换apk安装器
CONFIG_USE_APK=n
CONFIG_PACKAGE_opkg=y
CONFIG_OPKG_USE_CURL=y
|
|