Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mgqnfoqv7k2w
AutoBuildImmortalWrt
Commits
50017f9d
Unverified
Commit
50017f9d
authored
Jul 18, 2025
by
wukongdaily
Committed by
GitHub
Jul 18, 2025
Browse files
qemu 修改自定义软件包的位置
parent
0c767f1b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
42 deletions
+27
-42
.github/workflows/build-QEMU-arm64-24.10.2.yml
.github/workflows/build-QEMU-arm64-24.10.2.yml
+1
-1
armsr-armv8/build.sh
armsr-armv8/build.sh
+26
-41
No files found.
.github/workflows/build-QEMU-arm64-24.10.2.yml
View file @
50017f9d
...
@@ -69,7 +69,7 @@ jobs:
...
@@ -69,7 +69,7 @@ jobs:
-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 }}/armsr-armv8/imm.config:/home/build/immortalwrt/.config" \
-v "${{ github.workspace }}/armsr-armv8/imm.config:/home/build/immortalwrt/.config" \
-v "${{ github.workspace }}/shell
/prepare-packages.sh
:/home/build/immortalwrt/
prepare-packages.sh
" \
-v "${{ github.workspace }}/shell:/home/build/immortalwrt/
shell
" \
-v "${{ github.workspace }}/armsr-armv8/build.sh:/home/build/immortalwrt/build.sh" \
-v "${{ github.workspace }}/armsr-armv8/build.sh:/home/build/immortalwrt/build.sh" \
-e PROFILE=$profile \
-e PROFILE=$profile \
-e ROOTFS_PARTSIZE=$rootfs_partsize \
-e ROOTFS_PARTSIZE=$rootfs_partsize \
...
...
armsr-armv8/build.sh
View file @
50017f9d
#!/bin/bash
#!/bin/bash
# Log file for debugging
# Log file for debugging
source
shell/custom-packages.sh
echo
"第三方软件包:
$CUSTOM_PACKAGES
"
LOGFILE
=
"/tmp/uci-defaults-log.txt"
LOGFILE
=
"/tmp/uci-defaults-log.txt"
echo
"Starting 99-custom.sh at
$(
date
)
"
>>
$LOGFILE
echo
"Starting 99-custom.sh at
$(
date
)
"
>>
$LOGFILE
# yml 传入的路由器型号 PROFILE
# yml 传入的路由器型号 PROFILE
...
@@ -20,23 +22,27 @@ EOF
...
@@ -20,23 +22,27 @@ EOF
echo
"cat pppoe-settings"
echo
"cat pppoe-settings"
cat
/home/build/immortalwrt/files/etc/config/pppoe-settings
cat
/home/build/immortalwrt/files/etc/config/pppoe-settings
# 下载 run 文件仓库
if
[
-z
"
$CUSTOM_PACKAGES
"
]
;
then
echo
"🔄 Cloning run file repo..."
echo
"⚪️ 未选择 任何第三方软件包"
git clone
--depth
=
1 https://github.com/wukongdaily/store.git /tmp/store-run-repo
else
# 下载 run 文件仓库
# 拷贝 run/arm64 下所有 run 文件和ipk文件 到 extra-packages 目录
echo
"🔄 正在同步第三方软件仓库 Cloning run file repo..."
mkdir
-p
/home/build/immortalwrt/extra-packages
git clone
--depth
=
1 https://github.com/wukongdaily/store.git /tmp/store-run-repo
cp
-r
/tmp/store-run-repo/run/arm64/
*
/home/build/immortalwrt/extra-packages/
# 拷贝 run/arm64 下所有 run 文件和ipk文件 到 extra-packages 目录
echo
"✅ Run files copied to extra-packages:"
mkdir
-p
/home/build/immortalwrt/extra-packages
ls
-lh
/home/build/immortalwrt/extra-packages/
*
.run
cp
-r
/tmp/store-run-repo/run/arm64/
*
/home/build/immortalwrt/extra-packages/
# 解压并拷贝ipk到packages目录
sh prepare-packages.sh
echo
"✅ Run files copied to extra-packages:"
ls
-lah
/home/build/immortalwrt/packages/
ls
-lh
/home/build/immortalwrt/extra-packages/
*
.run
# 添加架构优先级信息
# 解压并拷贝ipk到packages目录
sed
-i
'1i\
sh shell/prepare-packages.sh
arch aarch64_generic 10\n\
ls
-lah
/home/build/immortalwrt/packages/
arch aarch64_cortex-a53 15'
repositories.conf
# 添加架构优先级信息
sed
-i
'1i\
arch aarch64_generic 10\n\
arch aarch64_cortex-a53 15'
repositories.conf
fi
# 输出调试信息
# 输出调试信息
echo
"
$(
date
'+%Y-%m-%d %H:%M:%S'
)
- 开始构建QEMU-arm64固件..."
echo
"
$(
date
'+%Y-%m-%d %H:%M:%S'
)
- 开始构建QEMU-arm64固件..."
...
@@ -63,30 +69,9 @@ PACKAGES="$PACKAGES luci-i18n-samba4-zh-cn"
...
@@ -63,30 +69,9 @@ PACKAGES="$PACKAGES luci-i18n-samba4-zh-cn"
PACKAGES
=
"
$PACKAGES
luci-i18n-filemanager-zh-cn"
PACKAGES
=
"
$PACKAGES
luci-i18n-filemanager-zh-cn"
# 静态文件服务器dufs(推荐)
# 静态文件服务器dufs(推荐)
PACKAGES
=
"
$PACKAGES
luci-i18n-dufs-zh-cn"
PACKAGES
=
"
$PACKAGES
luci-i18n-dufs-zh-cn"
# ======== shell/custom-packages.sh =======
# ============= imm仓库外的第三方插件===============
# 合并imm仓库以外的第三方插件
# ===== 若启用 请打开PACKAGES前面的注释==============
PACKAGES
=
"
$PACKAGES
$CUSTOM_PACKAGES
"
# istore商店
#PACKAGES="$PACKAGES luci-app-store"
# 首页和网络向导
#PACKAGES="$PACKAGES luci-i18n-quickstart-zh-cn"
# 去广告adghome
#PACKAGES="$PACKAGES luci-app-adguardhome"
# 代理相关
#PACKAGES="$PACKAGES luci-app-ssr-plus"
#PACKAGES="$PACKAGES luci-app-passwall2"
#PACKAGES="$PACKAGES luci-i18n-nikki-zh-cn"
# VPN
#PACKAGES="$PACKAGES luci-app-tailscale"
#PACKAGES="$PACKAGES luci-i18n-tailscale-zh-cn"
# 分区扩容 by sirpdboy
#PACKAGES="$PACKAGES luci-app-partexp"
#PACKAGES="$PACKAGES luci-i18n-partexp-zh-cn"
# 酷猫主题 by sirpdboy
#PACKAGES="$PACKAGES luci-theme-kucat"
# 网络测速 by sirpdboy
#PACKAGES="$PACKAGES luci-app-netspeedtest"
#PACKAGES="$PACKAGES luci-i18n-netspeedtest-zh-cn"
# 若构建openclash 则添加内核
# 若构建openclash 则添加内核
if
echo
"
$PACKAGES
"
|
grep
-q
"luci-app-openclash"
;
then
if
echo
"
$PACKAGES
"
|
grep
-q
"luci-app-openclash"
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment