Unverified Commit 0c767f1b authored by wukongdaily's avatar wukongdaily Committed by GitHub
Browse files

树莓派 修改自定义软件包的位置

parent 213e7732
...@@ -70,6 +70,7 @@ jobs: ...@@ -70,6 +70,7 @@ jobs:
--user root \ --user root \
-v "${{ github.workspace }}/bin:/home/build/immortalwrt/bin" \ -v "${{ github.workspace }}/bin:/home/build/immortalwrt/bin" \
-v "${{ github.workspace }}/files:/home/build/immortalwrt/files" \ -v "${{ github.workspace }}/files:/home/build/immortalwrt/files" \
-v "${{ github.workspace }}/shell:/home/build/immortalwrt/shell" \
-v "${{ github.workspace }}/raspberrypi/23.05.4/build.sh:/home/build/openwrt/build.sh" \ -v "${{ github.workspace }}/raspberrypi/23.05.4/build.sh:/home/build/openwrt/build.sh" \
-e PROFILE=$profile \ -e PROFILE=$profile \
-e INCLUDE_DOCKER=$include_docker \ -e INCLUDE_DOCKER=$include_docker \
......
...@@ -70,6 +70,7 @@ jobs: ...@@ -70,6 +70,7 @@ jobs:
--user root \ --user root \
-v "${{ github.workspace }}/bin:/home/build/immortalwrt/bin" \ -v "${{ github.workspace }}/bin:/home/build/immortalwrt/bin" \
-v "${{ github.workspace }}/files:/home/build/immortalwrt/files" \ -v "${{ github.workspace }}/files:/home/build/immortalwrt/files" \
-v "${{ github.workspace }}/shell:/home/build/immortalwrt/shell" \
-v "${{ github.workspace }}/raspberrypi/24.10/build.sh:/home/build/openwrt/build.sh" \ -v "${{ github.workspace }}/raspberrypi/24.10/build.sh:/home/build/openwrt/build.sh" \
-e PROFILE=$profile \ -e PROFILE=$profile \
-e INCLUDE_DOCKER=$include_docker \ -e INCLUDE_DOCKER=$include_docker \
......
#!/bin/bash #!/bin/bash
source shell/custom-packages.sh
echo "第三方软件包: $CUSTOM_PACKAGES"
# yml 传入的路由器型号 PROFILE # yml 传入的路由器型号 PROFILE
echo "Building for profile: $PROFILE" echo "Building for profile: $PROFILE"
echo "Include Docker: $INCLUDE_DOCKER" echo "Include Docker: $INCLUDE_DOCKER"
# yml 传入的固件大小 ROOTFS_PARTSIZE # yml 传入的固件大小 ROOTFS_PARTSIZE
echo "Building for ROOTFS_PARTSIZE: $ROOTSIZE" echo "Building for ROOTFS_PARTSIZE: $ROOTSIZE"
if [ -z "$CUSTOM_PACKAGES" ]; then
echo "⚪️ 未选择 任何第三方软件包"
else
# 下载 run 文件仓库
echo "🔄 正在同步第三方软件仓库 Cloning run file repo..."
git clone --depth=1 https://github.com/wukongdaily/store.git /tmp/store-run-repo
# 拷贝 run/arm64 下所有 run 文件和ipk文件 到 extra-packages 目录
mkdir -p /home/build/immortalwrt/extra-packages
cp -r /tmp/store-run-repo/run/arm64/* /home/build/immortalwrt/extra-packages/
echo "✅ Run files copied to extra-packages:"
ls -lh /home/build/immortalwrt/extra-packages/*.run
# 解压并拷贝ipk到packages目录
sh shell/prepare-packages.sh
ls -lah /home/build/immortalwrt/packages/
# 添加架构优先级信息
sed -i '1i\
arch aarch64_generic 10\n\
arch aarch64_cortex-a53 15' repositories.conf
fi
# 输出调试信息 # 输出调试信息
...@@ -25,10 +47,9 @@ PACKAGES="$PACKAGES luci-i18n-passwall-zh-cn" ...@@ -25,10 +47,9 @@ PACKAGES="$PACKAGES luci-i18n-passwall-zh-cn"
PACKAGES="$PACKAGES luci-app-openclash" PACKAGES="$PACKAGES luci-app-openclash"
PACKAGES="$PACKAGES luci-i18n-homeproxy-zh-cn" PACKAGES="$PACKAGES luci-i18n-homeproxy-zh-cn"
PACKAGES="$PACKAGES openssh-sftp-server" PACKAGES="$PACKAGES openssh-sftp-server"
# 增加几个必备组件 方便用户安装iStore # ======== shell/custom-packages.sh =======
PACKAGES="$PACKAGES fdisk" # 合并imm仓库以外的第三方插件
PACKAGES="$PACKAGES script-utils" PACKAGES="$PACKAGES $CUSTOM_PACKAGES"
PACKAGES="$PACKAGES luci-i18n-samba4-zh-cn"
# 判断是否需要编译 Docker 插件 # 判断是否需要编译 Docker 插件
if [ "$INCLUDE_DOCKER" = "yes" ]; then if [ "$INCLUDE_DOCKER" = "yes" ]; then
......
#!/bin/bash #!/bin/bash
source shell/custom-packages.sh
echo "第三方软件包: $CUSTOM_PACKAGES"
# yml 传入的路由器型号 PROFILE # yml 传入的路由器型号 PROFILE
echo "Building for profile: $PROFILE" echo "Building for profile: $PROFILE"
echo "Include Docker: $INCLUDE_DOCKER" echo "Include Docker: $INCLUDE_DOCKER"
# yml 传入的固件大小 ROOTFS_PARTSIZE # yml 传入的固件大小 ROOTFS_PARTSIZE
echo "Building for ROOTFS_PARTSIZE: $ROOTSIZE" echo "Building for ROOTFS_PARTSIZE: $ROOTSIZE"
if [ -z "$CUSTOM_PACKAGES" ]; then
echo "⚪️ 未选择 任何第三方软件包"
else
# 下载 run 文件仓库
echo "🔄 正在同步第三方软件仓库 Cloning run file repo..."
git clone --depth=1 https://github.com/wukongdaily/store.git /tmp/store-run-repo
# 拷贝 run/arm64 下所有 run 文件和ipk文件 到 extra-packages 目录
mkdir -p /home/build/immortalwrt/extra-packages
cp -r /tmp/store-run-repo/run/arm64/* /home/build/immortalwrt/extra-packages/
echo "✅ Run files copied to extra-packages:"
ls -lh /home/build/immortalwrt/extra-packages/*.run
# 解压并拷贝ipk到packages目录
sh shell/prepare-packages.sh
ls -lah /home/build/immortalwrt/packages/
# 添加架构优先级信息
sed -i '1i\
arch aarch64_generic 10\n\
arch aarch64_cortex-a53 15' repositories.conf
fi
# 输出调试信息 # 输出调试信息
echo "$(date '+%Y-%m-%d %H:%M:%S') - Starting build process..." echo "$(date '+%Y-%m-%d %H:%M:%S') - Starting build process..."
...@@ -26,12 +49,9 @@ PACKAGES="$PACKAGES luci-i18n-passwall-zh-cn" ...@@ -26,12 +49,9 @@ PACKAGES="$PACKAGES luci-i18n-passwall-zh-cn"
PACKAGES="$PACKAGES luci-app-openclash" PACKAGES="$PACKAGES luci-app-openclash"
PACKAGES="$PACKAGES luci-i18n-homeproxy-zh-cn" PACKAGES="$PACKAGES luci-i18n-homeproxy-zh-cn"
PACKAGES="$PACKAGES openssh-sftp-server" PACKAGES="$PACKAGES openssh-sftp-server"
# ======== shell/custom-packages.sh =======
# 增加几个必备组件 方便用户安装iStore # 合并imm仓库以外的第三方插件
PACKAGES="$PACKAGES fdisk" PACKAGES="$PACKAGES $CUSTOM_PACKAGES"
PACKAGES="$PACKAGES script-utils"
PACKAGES="$PACKAGES luci-i18n-samba4-zh-cn"
# 判断是否需要编译 Docker 插件 # 判断是否需要编译 Docker 插件
if [ "$INCLUDE_DOCKER" = "yes" ]; then if [ "$INCLUDE_DOCKER" = "yes" ]; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment