4 Commits
v1.0 ... v2.1

Author SHA1 Message Date
dichgrem
816642fba6 feat:change_wrt 2025-09-09 11:46:17 +08:00
dichgrem
e2bc8f73ea build:rename_config 2025-09-09 11:09:54 +08:00
dichgrem
31c5070c58 fix:free_disk 2025-09-07 08:22:25 +08:00
dichgrem
9f4f053257 build:360T7 2025-09-07 08:06:51 +08:00
5 changed files with 8311 additions and 29 deletions

View File

@@ -9,11 +9,10 @@ on:
default: "immortalwrt" default: "immortalwrt"
type: choice type: choice
options: options:
- lede
- openwrt - openwrt
- immortalwrt - immortalwrt
- x-wrt - immortalwrt-mt798x
- lienol
- lede
version_type: version_type:
description: "版本类型" description: "版本类型"
required: true required: true
@@ -54,17 +53,13 @@ jobs:
- name: Free up disk space - name: Free up disk space
run: | run: |
echo "🧹 开始清理无用文件,释放磁盘空间" echo "🧹 开始清理无用文件,释放磁盘空间"
# 删除预装但编译中不需要的 SDK/工具
sudo rm -rf /usr/share/dotnet \ sudo rm -rf /usr/share/dotnet \
/usr/local/lib/android \ /usr/local/lib/android \
/opt/ghc \ /opt/ghc \
/opt/hostedtoolcache \ /opt/az \
/opt/az \ /opt/microsoft
/opt/microsoft sudo apt-get clean
# 删除 GitHub Actions self-hosted runner 缓存目录(如果存在) sudo rm -rf /var/lib/apt/lists/*
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
# 删除系统缓存和日志
sudo rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/* /var/log/*.log
# 显示当前磁盘使用情况 # 显示当前磁盘使用情况
echo "📊 磁盘使用情况:" echo "📊 磁盘使用情况:"
df -h || true df -h || true
@@ -100,15 +95,12 @@ jobs:
immortalwrt) immortalwrt)
echo "url=https://github.com/immortalwrt/immortalwrt.git" >> $GITHUB_OUTPUT echo "url=https://github.com/immortalwrt/immortalwrt.git" >> $GITHUB_OUTPUT
;; ;;
x-wrt) immortalwrt-mt798x)
echo "url=https://github.com/x-wrt/x-wrt.git" >> $GITHUB_OUTPUT echo "url=https://github.com/hanwckf/immortalwrt-mt798x.git" >> $GITHUB_OUTPUT
;; ;;
openwrt) openwrt)
echo "url=https://git.openwrt.org/openwrt/openwrt.git" >> $GITHUB_OUTPUT echo "url=https://git.openwrt.org/openwrt/openwrt.git" >> $GITHUB_OUTPUT
;; ;;
lienol)
echo "url=https://github.com/Lienol/openwrt.git" >> $GITHUB_OUTPUT
;;
lede) lede)
echo "url=https://github.com/coolsnowwolf/lede.git" >> $GITHUB_OUTPUT echo "url=https://github.com/coolsnowwolf/lede.git" >> $GITHUB_OUTPUT
;; ;;

View File

@@ -6,8 +6,8 @@ This is a Openwrt build workflows.
| 名称 | URL | SHORT | | 名称 | URL | SHORT |
|--------------|------------------------------------------------------------|--------------------------| |--------------|------------------------------------------------------------|--------------------------|
| x-wrt | https://github.com/x-wrt/x-wrt.git | x-wrt/x-wrt |
| openwrt | https://git.openwrt.org/openwrt/openwrt.git | openwrt/openwrt |
| lienol | https://github.com/Lienol/openwrt.git | Lienol/openwrt |
| lede | https://github.com/coolsnowwolf/lede.git | coolsnowwolf/lede | | lede | https://github.com/coolsnowwolf/lede.git | coolsnowwolf/lede |
| openwrt | https://git.openwrt.org/openwrt/openwrt.git | openwrt/openwrt |
| immortalwrt | https://github.com/immortalwrt/immortalwrt.git | immortalwrt/immortalwrt | | immortalwrt | https://github.com/immortalwrt/immortalwrt.git | immortalwrt/immortalwrt |
| immortalwrt-mt798x | https://github.com/hanwckf/immortalwrt-mt798x.git | hanwckf/immortalwrt-mt798x |

File diff suppressed because it is too large Load Diff

16
diy.sh
View File

@@ -15,10 +15,10 @@ echo "🚀 添加自定义 feed 源..."
echo "✅ feeds 添加完成" echo "✅ feeds 添加完成"
# 1. 默认 hostname # 1. 默认 hostname
sed -i 's/=ImmortalWrt/=Dwrt/' package/base-files/files/bin/config_generate sed -i "s/ImmortalWrt/Dwrt/g" package/base-files/files/bin/config_generate
# 2. 默认 IP 地址 # 2. 默认 IP 地址
sed -i 's/192.168.1.1/192.168.1.1/' package/base-files/files/bin/config_generate sed -i 's/192.168.2.1/192.168.1.1/' package/base-files/files/bin/config_generate
# 3. 默认 root 密码 # 3. 默认 root 密码
HASH=$(openssl passwd -1 'password') HASH=$(openssl passwd -1 'password')
@@ -60,12 +60,12 @@ EOF
fi fi
# 8. 自定义 LuCI 概览设备型号 # 8. 自定义 LuCI 概览设备型号
cat >package/base-files/files/etc/uci-defaults/99-model-fix <<'EOF' #cat >package/base-files/files/etc/uci-defaults/99-model-fix <<'EOF'
#!/bin/sh #!/bin/sh
mkdir -p /tmp/sysinfo #mkdir -p /tmp/sysinfo
echo "Myrouter" > /tmp/sysinfo/model #echo "Myrouter" > /tmp/sysinfo/model
exit 0 #exit 0
EOF #EOF
chmod +x package/base-files/files/etc/uci-defaults/99-model-fix #chmod +x package/base-files/files/etc/uci-defaults/99-model-fix
echo "✅ diy.sh 执行完毕" echo "✅ diy.sh 执行完毕"