├── .github └── workflows │ ├── LienolOS.yml │ ├── openwrt-Project.yml │ ├── openwrt-R2S.yml │ ├── openwrt-immortalwrt.yml │ └── openwrt-lienol1907.yml ├── LICENSE ├── LienolOS.config ├── LienolOS.sh ├── LienolOS2.sh ├── README.md ├── _config.yml ├── boc ├── 01.png ├── 02.png ├── 1.png ├── 2.png ├── 22.01.png ├── 22.02.png ├── 22.03.png ├── 3.png ├── a.png ├── b.png ├── c.png └── m.jpg ├── lienol1907.config ├── lienol1907.sh ├── lienol19072.sh ├── openwrt-Project-R2S.config ├── openwrt-Project.config ├── openwrt-Project.sh ├── openwrt-Project2.sh ├── openwrt-immortalwrt.config └── openwrt-immortalwrt2.sh /.github/workflows/LienolOS.yml: -------------------------------------------------------------------------------- 1 | #================================================= 2 | # https://github.com/P3TERX/Actions-OpenWrt 3 | # Description: Build OpenWrt using GitHub Actions 4 | # Lisence: MIT 5 | # Author: P3TERX 6 | # Blog: https://p3terx.com 7 | #================================================= 8 | 9 | name: LienolOS 10 | 11 | on: 12 | repository_dispatch: 13 | workflow_dispatch: 14 | inputs: 15 | ssh: 16 | description: 'SSH connection to Actions' 17 | required: false 18 | default: 'false' 19 | schedule: 20 | - cron: 0 23 */7 * * 21 | 22 | env: 23 | REPO_URL: https://github.com/Lienol/openwrt 24 | REPO_BRANCH: 21.02 25 | FEEDS_CONF: feeds.conf.default 26 | CONFIG_FILE: LienolOS.config 27 | DIY_P1_SH: LienolOS.sh 28 | DIY_P2_SH: LienolOS2.sh 29 | SSH_ACTIONS: false 30 | UPLOAD_BIN_DIR: false 31 | UPLOAD_FIRMWARE: true 32 | UPLOAD_COWTRANSFER: false 33 | UPLOAD_WETRANSFER: false 34 | UPLOAD_RELEASE: true 35 | TZ: Asia/Shanghai 36 | 37 | jobs: 38 | build: 39 | runs-on: ubuntu-20.04 40 | 41 | steps: 42 | - name: 检查项目分支 43 | uses: actions/checkout@main 44 | 45 | - name: 清理磁盘空间 46 | uses: jlumbroso/free-disk-space@main 47 | with: 48 | # this might remove tools that are actually needed, 49 | # if set to "true" but frees about 6 GB 50 | tool-cache: false 51 | 52 | # all of these default to true, but feel free to set to 53 | # "false" if necessary for your workflow 54 | android: true 55 | dotnet: true 56 | haskell: true 57 | large-packages: true 58 | docker-images: true 59 | swap-storage: true 60 | 61 | - name: 安装编译环境 62 | env: 63 | DEBIAN_FRONTEND: noninteractive 64 | run: | 65 | df -hT $PWD 66 | sudo swapoff -a 67 | sudo rm -f /swapfile 68 | sudo apt clean 69 | sudo rm -rf /usr/share/dotnet /etc/mysql /etc/php /etc/apt/sources.list.d /etc/apt/sources.list.d/* /usr/share/dotnet /usr/local/lib/android /opt/ghc 70 | sudo -E apt-get -y purge azure-cli ghc* zulu* hhvm llvm* firefox google* dotnet* powershell openjdk* adoptopenjdk* mysql* php* mongodb* dotnet* moby* snapd* || true 71 | sudo -E apt-get -qq update 72 | sudo -E apt-get -qq install $(curl -fsSL is.gd/depends_ubuntu_2204) 73 | sudo -E apt-get -qq autoremove --purge 74 | sudo -E apt-get -qq clean 75 | sudo timedatectl set-timezone "$TZ" 76 | sudo mkdir -p /workdir 77 | sudo chown $USER:$GROUPS /workdir 78 | - name: 下载固件源码 79 | working-directory: /workdir 80 | run: | 81 | df -hT $PWD 82 | git clone $REPO_URL -b $REPO_BRANCH openwrt 83 | ln -sf /workdir/openwrt $GITHUB_WORKSPACE/openwrt 84 | cd openwrt 85 | useVersionInfo=$(git show -s --date=short --format="%0AAuthor: %an%0Adate: %cd%0Acommit: %s%0Acommit hash: %H") 86 | echo "useVersionInfo=$useVersionInfo" >> $GITHUB_ENV 87 | echo "DATE=$(date "+%Y-%m-%d %H:%M:%S")" >> $GITHUB_ENV 88 | 89 | - name: 加载自定义设置 90 | run: | 91 | [ -e $FEEDS_CONF ] && mv $FEEDS_CONF openwrt/feeds.conf.default 92 | chmod +x $DIY_P1_SH 93 | cd openwrt 94 | $GITHUB_WORKSPACE/$DIY_P1_SH 95 | - name: 下载插件 96 | run: cd openwrt && ./scripts/feeds clean && ./scripts/feeds update -a 97 | 98 | - name: 读取插件 99 | run: cd openwrt && ./scripts/feeds install -a 100 | 101 | - name: 更改设置 102 | run: | 103 | [ -e files ] && mv files openwrt/files 104 | [ -e $CONFIG_FILE ] && mv $CONFIG_FILE openwrt/.config 105 | chmod +x $DIY_P2_SH 106 | cd openwrt 107 | $GITHUB_WORKSPACE/$DIY_P2_SH 108 | - name: SSH链接管理 109 | uses: P3TERX/ssh2actions@v1.0.0 110 | if: (github.event.inputs.ssh == 'true' && github.event.inputs.ssh != 'false') || contains(github.event.action, 'ssh') 111 | env: 112 | TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }} 113 | TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} 114 | 115 | - name: 下载安装包 116 | id: package 117 | run: | 118 | cd openwrt 119 | make defconfig 120 | make download -j8 121 | find dl -size -1024c -exec ls -l {} \; 122 | find dl -size -1024c -exec rm -f {} \; 123 | - name: 开始编译固件 124 | id: compile 125 | run: | 126 | cd openwrt 127 | echo -e "$(nproc) thread compile" 128 | make -j$(nproc) || make -j1 || make -j1 V=s 129 | echo "status=success" >> $GITHUB_OUTPUT 130 | grep '^CONFIG_TARGET.*DEVICE.*=y' .config | sed -r 's/.*DEVICE_(.*)=y/\1/' > DEVICE_NAME 131 | [ -s DEVICE_NAME ] && echo "DEVICE_NAME=_$(cat DEVICE_NAME)" >> $GITHUB_ENV 132 | echo "FILE_DATE=_$(date +"%Y%m%d%H%M")" >> $GITHUB_ENV 133 | echo "FILE_TIME=$(date "+%Y年%m月%d日-%H点")" >> $GITHUB_ENV 134 | echo "TAG_TIME=$(date +"%Y.%m.%d-%H%M")" >> $GITHUB_ENV 135 | - name: 查看磁盘使用情况 136 | if: (!cancelled()) 137 | run: df -hT 138 | 139 | - name: 上传bin压缩目录 140 | uses: actions/upload-artifact@main 141 | if: steps.compile.outputs.status == 'success' && env.UPLOAD_BIN_DIR == 'true' 142 | with: 143 | name: OpenWrt_bin${{ env.DEVICE_NAME }}${{ env.FILE_DATE }} 144 | path: openwrt/bin/packages/x86_64 145 | 146 | - name: 整理编译好的固件 147 | id: organize 148 | if: env.UPLOAD_FIRMWARE == 'true' && !cancelled() 149 | run: | 150 | cd openwrt/bin/targets/*/* 151 | rm -rf packages && mkdir packages 152 | find -name "*esxi-flat.vmdk*" | xargs -i mv -f {} packages 153 | find -name "*kernel.bin*" | xargs -i mv -f {} packages 154 | find -name "*rootfs*" | xargs -i mv -f {} packages 155 | find -name "*.manifest*" | xargs -i mv -f {} packages 156 | find -name "*vmlinuz*" | xargs -i mv -f {} packages 157 | find -name "*esxi.vmdk*" | xargs -i mv -f {} packages 158 | rm -rf packages 159 | echo "FIRMWARE=$PWD" >> $GITHUB_ENV 160 | echo "status=success" >> $GITHUB_OUTPUT 161 | - name: 上传固件到github 162 | uses: actions/upload-artifact@main 163 | if: steps.organize.outputs.status == 'success' && !cancelled() 164 | with: 165 | name: LienolOS${{ env.DEVICE_NAME }}${{ env.FILE_DATE }} 166 | path: ${{ env.FIRMWARE }} 167 | 168 | - name: 上传固件到NN网盘 169 | id: cowtransfer 170 | if: steps.organize.outputs.status == 'success' && env.UPLOAD_COWTRANSFER == 'true' && !cancelled() 171 | run: | 172 | curl -fsSL https://raw.githubusercontent.com/Mikubill/transfer/master/install.sh | sh 173 | ./transfer cow --block 2621440 -s -p 64 --no-progress ${FIRMWARE} 2>&1 | tee cowtransfer.log 174 | echo "::warning file=cowtransfer.com::$(cat cowtransfer.log | grep https)" 175 | echo "url=$(cat cowtransfer.log | grep https | cut -f3 -d" ")" >> $GITHUB_OUTPUT 176 | - name: 上传固件到WT网盘 177 | id: wetransfer 178 | if: steps.organize.outputs.status == 'success' && env.UPLOAD_WETRANSFER == 'true' && !cancelled() 179 | run: | 180 | curl -fsSL https://raw.githubusercontent.com/Mikubill/transfer/master/install.sh | sh 181 | ./transfer wet -s -p 16 --no-progress ${FIRMWARE} 2>&1 | tee wetransfer.log 182 | echo "::warning file=wetransfer.com::$(cat wetransfer.log | grep https)" 183 | echo "url=$(cat wetransfer.log | grep https | cut -f3 -d" ")" >> $GITHUB_OUTPUT 184 | 185 | - name: 创建release标签 186 | id: tag 187 | if: env.UPLOAD_RELEASE == 'true' && !cancelled() 188 | run: | 189 | echo "release_tag=${{ env.TAG_TIME }}" >> $GITHUB_OUTPUT 190 | touch release.txt 191 | echo "功能介绍:包含仿iStoreOS引导设置、Passwall、SSR、iStore应用商店、Dockerman、DDNS、samba、Openclash、屏蔽大师、ADG、UPnP等。其他应用可以自行在应用商店选择安装。" >> release.txt 192 | echo "[固件源码](https://github.com/Lienol/openwrt)" >> release.txt 193 | echo "由衷感谢所有为openwrt无私奉献的大佬们" >> release.txt 194 | echo "📥 固件下载" >> release.txt 195 | [ $UPLOAD_COWTRANSFER = true ] && echo "🔗 [国内NN网盘](${{ steps.cowtransfer.outputs.url }})" >> release.txt 196 | [ $UPLOAD_WETRANSFER = true ] && echo "🔗 [国外WT网盘](${{ steps.wetransfer.outputs.url }})" >> release.txt 197 | echo "status=success" >> $GITHUB_OUTPUT 198 | - name: 发布至release 199 | uses: softprops/action-gh-release@v1 200 | if: steps.tag.outputs.status == 'success' && !cancelled() 201 | env: 202 | GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} 203 | with: 204 | name: ${{ env.FILE_TIME }} 「 LienolOS-X86-64 」 205 | tag_name: ${{ steps.tag.outputs.release_tag }} 206 | body_path: release.txt 207 | files: ${{ env.FIRMWARE }}/* 208 | 209 | - name: 清理旧的workflow 210 | uses: FunctionXJB/delete-workflow-runs@main 211 | with: 212 | retain_days: 180 213 | keep_minimum_runs: 10 214 | 215 | - name: 删除旧的Releases 216 | uses: dev-drprasad/delete-older-releases@v0.1.0 217 | if: env.UPLOAD_RELEASE == 'true' && !cancelled() 218 | with: 219 | keep_latest: 9 220 | delete_tags: true 221 | env: 222 | GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} 223 | 224 | - name: TG notification #TG推送 225 | run: curl "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" -d "chat_id=${{ secrets.TELEGRAM_CHAT_ID }}&text=🅾️恭喜主人X86-LienolOS固件编译完成!🎉%0A⏰编译时间:${{ env.DATE }}%0A📥下载地址:https://github.com/firkerword/openwrt-Project/releases/tag/${{ env.TAG_TIME }}%0A🌐WT网盘:${{ steps.wetransfer.outputs.url }}" 226 | 227 | -------------------------------------------------------------------------------- /.github/workflows/openwrt-Project.yml: -------------------------------------------------------------------------------- 1 | #================================================= 2 | # https://github.com/P3TERX/Actions-OpenWrt 3 | # Description: Build OpenWrt using GitHub Actions 4 | # Lisence: MIT 5 | # Author: P3TERX 6 | # Blog: https://p3terx.com 7 | #================================================= 8 | 9 | name: openwrt-Project 10 | 11 | on: 12 | repository_dispatch: 13 | workflow_dispatch: 14 | inputs: 15 | ssh: 16 | description: 'SSH connection to Actions' 17 | required: false 18 | default: 'false' 19 | schedule: 20 | - cron: 0 21 */7 * * 21 | 22 | env: 23 | REPO_URL: https://github.com/immortalwrt/immortalwrt 24 | REPO_BRANCH: openwrt-21.02 25 | FEEDS_CONF: feeds.conf.default 26 | CONFIG_FILE: openwrt-Project.config 27 | DIY_P1_SH: openwrt-Project.sh 28 | DIY_P2_SH: openwrt-Project2.sh 29 | SSH_ACTIONS: false 30 | UPLOAD_BIN_DIR: true 31 | UPLOAD_FIRMWARE: true 32 | UPLOAD_COWTRANSFER: false 33 | UPLOAD_WETRANSFER: false 34 | UPLOAD_RELEASE: true 35 | TZ: Asia/Shanghai 36 | 37 | jobs: 38 | build: 39 | runs-on: ubuntu-20.04 40 | 41 | steps: 42 | - name: 检查项目分支 43 | uses: actions/checkout@main 44 | 45 | - name: 清理磁盘空间 46 | uses: jlumbroso/free-disk-space@main 47 | with: 48 | # this might remove tools that are actually needed, 49 | # if set to "true" but frees about 6 GB 50 | tool-cache: false 51 | 52 | # all of these default to true, but feel free to set to 53 | # "false" if necessary for your workflow 54 | android: true 55 | dotnet: true 56 | haskell: true 57 | large-packages: true 58 | docker-images: true 59 | swap-storage: true 60 | 61 | - name: 安装编译环境 62 | env: 63 | DEBIAN_FRONTEND: noninteractive 64 | run: | 65 | df -hT $PWD 66 | sudo swapoff -a 67 | sudo rm -f /swapfile 68 | sudo apt clean 69 | sudo rm -rf /usr/share/dotnet /etc/mysql /etc/php /etc/apt/sources.list.d /etc/apt/sources.list.d/* /usr/share/dotnet /usr/local/lib/android /opt/ghc 70 | sudo -E apt-get -y purge azure-cli ghc* zulu* hhvm llvm* firefox google* dotnet* powershell openjdk* adoptopenjdk* mysql* php* mongodb* dotnet* moby* snapd* || true 71 | sudo -E apt-get -qq update 72 | sudo bash -c 'bash <(curl -s https://build-scripts.immortalwrt.eu.org/init_build_environment.sh)' 73 | sudo -E apt-get -qq autoremove --purge 74 | sudo -E apt-get -qq clean 75 | sudo timedatectl set-timezone "$TZ" 76 | sudo mkdir -p /workdir 77 | sudo chown $USER:$GROUPS /workdir 78 | - name: 下载固件源码 79 | working-directory: /workdir 80 | run: | 81 | df -hT $PWD 82 | git clone $REPO_URL -b $REPO_BRANCH openwrt 83 | ln -sf /workdir/openwrt $GITHUB_WORKSPACE/openwrt 84 | cd openwrt 85 | useVersionInfo=$(git show -s --date=short --format="%0AAuthor: %an%0Adate: %cd%0Acommit: %s%0Acommit hash: %H") 86 | echo "useVersionInfo=$useVersionInfo" >> $GITHUB_ENV 87 | echo "DATE=$(date "+%Y-%m-%d %H:%M:%S")" >> $GITHUB_ENV 88 | 89 | - name: 加载自定义设置 90 | run: | 91 | [ -e $FEEDS_CONF ] && mv $FEEDS_CONF openwrt/feeds.conf.default 92 | chmod +x $DIY_P1_SH 93 | cd openwrt 94 | $GITHUB_WORKSPACE/$DIY_P1_SH 95 | - name: 下载插件 96 | run: cd openwrt && ./scripts/feeds update -a 97 | 98 | - name: 读取插件 99 | run: cd openwrt && ./scripts/feeds install -a 100 | 101 | - name: 更改设置 102 | run: | 103 | [ -e files ] && mv files openwrt/files 104 | [ -e $CONFIG_FILE ] && mv $CONFIG_FILE openwrt/.config 105 | chmod +x $DIY_P2_SH 106 | cd openwrt 107 | $GITHUB_WORKSPACE/$DIY_P2_SH 108 | - name: SSH链接管理 109 | uses: P3TERX/ssh2actions@v1.0.0 110 | if: (github.event.inputs.ssh == 'true' && github.event.inputs.ssh != 'false') || contains(github.event.action, 'ssh') 111 | env: 112 | TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }} 113 | TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} 114 | 115 | - name: 下载安装包 116 | id: package 117 | run: | 118 | cd openwrt 119 | make defconfig 120 | make download -j8 121 | find dl -size -1024c -exec ls -l {} \; 122 | find dl -size -1024c -exec rm -f {} \; 123 | - name: 开始编译固件 124 | id: compile 125 | run: | 126 | cd openwrt 127 | echo -e "$(nproc) thread compile" 128 | make -j$(nproc) || make -j1 || make -j1 V=s 129 | echo "status=success" >> $GITHUB_OUTPUT 130 | grep '^CONFIG_TARGET.*DEVICE.*=y' .config | sed -r 's/.*DEVICE_(.*)=y/\1/' > DEVICE_NAME 131 | [ -s DEVICE_NAME ] && echo "DEVICE_NAME=_$(cat DEVICE_NAME)" >> $GITHUB_ENV 132 | echo "FILE_DATE=_$(date +"%Y%m%d%H%M")" >> $GITHUB_ENV 133 | echo "FILE_TIME=$(date "+%Y年%m月%d日-%H点")" >> $GITHUB_ENV 134 | echo "TAG_TIME=$(date +"%Y.%m.%d-%H%M")" >> $GITHUB_ENV 135 | - name: 查看磁盘使用情况 136 | if: (!cancelled()) 137 | run: df -hT 138 | 139 | - name: 上传bin压缩目录 140 | uses: actions/upload-artifact@main 141 | if: steps.compile.outputs.status == 'success' && env.UPLOAD_BIN_DIR == 'true' 142 | with: 143 | name: OpenWrt_bin${{ env.DEVICE_NAME }}${{ env.FILE_DATE }} 144 | path: openwrt/bin/packages/x86_64 145 | 146 | - name: 整理编译好的固件 147 | id: organize 148 | if: env.UPLOAD_FIRMWARE == 'true' && !cancelled() 149 | run: | 150 | cd openwrt/bin/targets/*/* 151 | rm -rf packages && mkdir packages 152 | find -name "*esxi-flat.vmdk*" | xargs -i mv -f {} packages 153 | find -name "*kernel.bin*" | xargs -i mv -f {} packages 154 | find -name "*rootfs*" | xargs -i mv -f {} packages 155 | find -name "*.manifest*" | xargs -i mv -f {} packages 156 | find -name "*vmlinuz*" | xargs -i mv -f {} packages 157 | find -name "*esxi.vmdk*" | xargs -i mv -f {} packages 158 | rm -rf packages 159 | echo "FIRMWARE=$PWD" >> $GITHUB_ENV 160 | echo "status=success" >> $GITHUB_OUTPUT 161 | - name: 上传固件到github 162 | uses: actions/upload-artifact@main 163 | if: steps.organize.outputs.status == 'success' && !cancelled() 164 | with: 165 | name: openwrt-Project${{ env.DEVICE_NAME }}${{ env.FILE_DATE }} 166 | path: ${{ env.FIRMWARE }} 167 | 168 | - name: 上传固件到NN网盘 169 | id: cowtransfer 170 | if: steps.organize.outputs.status == 'success' && env.UPLOAD_COWTRANSFER == 'true' && !cancelled() 171 | run: | 172 | curl -fsSL git.io/file-transfer | sh 173 | ./transfer cow --block 2621440 -s -p 64 --no-progress ${FIRMWARE} 2>&1 | tee cowtransfer.log 174 | echo "::warning file=cowtransfer.com::$(cat cowtransfer.log | grep https)" 175 | echo "url=$(cat cowtransfer.log | grep https | cut -f3 -d" ")" >> $GITHUB_OUTPUT 176 | - name: 上传固件到WT网盘 177 | id: wetransfer 178 | if: steps.organize.outputs.status == 'success' && env.UPLOAD_WETRANSFER == 'true' && !cancelled() 179 | run: | 180 | curl -fsSL git.io/file-transfer | sh 181 | ./transfer wet -s -p 16 --no-progress ${FIRMWARE} 2>&1 | tee wetransfer.log 182 | echo "::warning file=wetransfer.com::$(cat wetransfer.log | grep https)" 183 | echo "url=$(cat wetransfer.log | grep https | cut -f3 -d" ")" >> $GITHUB_OUTPUT 184 | 185 | - name: 创建release标签 186 | id: tag 187 | if: env.UPLOAD_RELEASE == 'true' && !cancelled() 188 | run: | 189 | echo "release_tag=${{ env.TAG_TIME }}" >> $GITHUB_OUTPUT 190 | touch release.txt 191 | echo "功能介绍:包含Passwall、SSR、iStore应用商店、Dockerman、DDNS、samba4.0、屏蔽大师、ADG、UPnP等。其他应用可以自行在应用商店选择安装。" >> release.txt 192 | echo "[固件源码](https://github.com/immortalwrt/immortalwrt/tree/master)" >> release.txt 193 | echo "由衷感谢所有为openwrt无私奉献的大佬们" >> release.txt 194 | echo "📥 固件下载" >> release.txt 195 | [ $UPLOAD_COWTRANSFER = true ] && echo "🔗 [国内NN网盘](${{ steps.cowtransfer.outputs.url }})" >> release.txt 196 | [ $UPLOAD_WETRANSFER = true ] && echo "🔗 [国外WT网盘](${{ steps.wetransfer.outputs.url }})" >> release.txt 197 | echo "status=success" >> $GITHUB_OUTPUT 198 | - name: 发布至release 199 | uses: softprops/action-gh-release@v1 200 | if: steps.tag.outputs.status == 'success' && !cancelled() 201 | env: 202 | GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} 203 | with: 204 | name: ${{ env.FILE_TIME }} 「 openwrt-Project-X86-64 」 205 | tag_name: ${{ steps.tag.outputs.release_tag }} 206 | body_path: release.txt 207 | files: ${{ env.FIRMWARE }}/* 208 | 209 | - name: 删除旧的Releases 210 | uses: dev-drprasad/delete-older-releases@v0.1.0 211 | if: env.UPLOAD_RELEASE == 'true' && !cancelled() 212 | with: 213 | keep_latest: 9 214 | delete_tags: true 215 | env: 216 | GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} 217 | 218 | - name: TG notification #TG推送 219 | run: curl "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" -d "chat_id=${{ secrets.TELEGRAM_CHAT_ID }}&text=🅾️恭喜主人X86-ProjectlOS固件编译完成!🎉%0A⏰编译时间:${{ env.DATE }}%0A📥下载地址:https://github.com/firkerword/openwrt-Project/releases/tag/${{ env.TAG_TIME }}%0A🌐WT网盘:${{ steps.wetransfer.outputs.url }}" 220 | -------------------------------------------------------------------------------- /.github/workflows/openwrt-R2S.yml: -------------------------------------------------------------------------------- 1 | #================================================= 2 | # https://github.com/P3TERX/Actions-OpenWrt 3 | # Description: Build OpenWrt using GitHub Actions 4 | # Lisence: MIT 5 | # Author: P3TERX 6 | # Blog: https://p3terx.com 7 | #================================================= 8 | 9 | name: openwrt-Project-R2S 10 | 11 | on: 12 | repository_dispatch: 13 | workflow_dispatch: 14 | inputs: 15 | ssh: 16 | description: 'SSH connection to Actions' 17 | required: false 18 | default: 'false' 19 | # schedule: 20 | # - cron: 0 21 */7 * * 21 | 22 | env: 23 | REPO_URL: https://github.com/immortalwrt/immortalwrt 24 | REPO_BRANCH: master 25 | FEEDS_CONF: feeds.conf.default 26 | CONFIG_FILE: openwrt-Project-R2S.config 27 | DIY_P1_SH: openwrt-Project.sh 28 | DIY_P2_SH: openwrt-Project2.sh 29 | SSH_ACTIONS: false 30 | UPLOAD_BIN_DIR: false 31 | UPLOAD_FIRMWARE: true 32 | UPLOAD_COWTRANSFER: false 33 | UPLOAD_WETRANSFER: true 34 | UPLOAD_RELEASE: true 35 | TZ: Asia/Shanghai 36 | 37 | jobs: 38 | build: 39 | runs-on: ubuntu-20.04 40 | 41 | steps: 42 | - name: 检查项目分支 43 | uses: actions/checkout@main 44 | 45 | - name: 安装编译环境 46 | env: 47 | DEBIAN_FRONTEND: noninteractive 48 | run: | 49 | sudo rm -rf /etc/apt/sources.list.d/* /usr/share/dotnet /usr/local/lib/android /opt/ghc 50 | sudo -E apt-get -qq update 51 | sudo -E apt-get -qq install $(curl -fsSL https://github.com/firkerword/openwrt-list/raw/master/depends-ubuntu-2004) 52 | sudo -E apt-get -qq autoremove --purge 53 | sudo -E apt-get -qq clean 54 | sudo timedatectl set-timezone "$TZ" 55 | sudo mkdir -p /workdir 56 | sudo chown $USER:$GROUPS /workdir 57 | - name: 下载固件源码 58 | working-directory: /workdir 59 | run: | 60 | df -hT $PWD 61 | git clone $REPO_URL -b $REPO_BRANCH openwrt 62 | ln -sf /workdir/openwrt $GITHUB_WORKSPACE/openwrt 63 | - name: 加载自定义设置 64 | run: | 65 | [ -e $FEEDS_CONF ] && mv $FEEDS_CONF openwrt/feeds.conf.default 66 | chmod +x $DIY_P1_SH 67 | cd openwrt 68 | $GITHUB_WORKSPACE/$DIY_P1_SH 69 | - name: 下载插件 70 | run: cd openwrt && ./scripts/feeds update -a 71 | 72 | - name: 读取插件 73 | run: cd openwrt && ./scripts/feeds install -a 74 | 75 | - name: 更改设置 76 | run: | 77 | [ -e files ] && mv files openwrt/files 78 | [ -e $CONFIG_FILE ] && mv $CONFIG_FILE openwrt/.config 79 | chmod +x $DIY_P2_SH 80 | cd openwrt 81 | $GITHUB_WORKSPACE/$DIY_P2_SH 82 | - name: SSH链接管理 83 | uses: P3TERX/ssh2actions@v1.0.0 84 | if: (github.event.inputs.ssh == 'true' && github.event.inputs.ssh != 'false') || contains(github.event.action, 'ssh') 85 | env: 86 | TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }} 87 | TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} 88 | 89 | - name: 下载安装包 90 | id: package 91 | run: | 92 | cd openwrt 93 | make defconfig 94 | make download -j8 95 | find dl -size -1024c -exec ls -l {} \; 96 | find dl -size -1024c -exec rm -f {} \; 97 | - name: 开始编译固件 98 | id: compile 99 | run: | 100 | cd openwrt 101 | echo -e "$(nproc) thread compile" 102 | make -j$(nproc) || make -j1 || make -j1 V=s 103 | echo "status=success" >> $GITHUB_OUTPUT 104 | grep '^CONFIG_TARGET.*DEVICE.*=y' .config | sed -r 's/.*DEVICE_(.*)=y/\1/' > DEVICE_NAME 105 | [ -s DEVICE_NAME ] && echo "DEVICE_NAME=_$(cat DEVICE_NAME)" >> $GITHUB_ENV 106 | echo "FILE_DATE=_$(date +"%Y%m%d%H%M")" >> $GITHUB_ENV 107 | echo "FILE_TIME=$(date "+%Y年%m月%d日-%H点")" >> $GITHUB_ENV 108 | - name: 查看磁盘使用情况 109 | if: (!cancelled()) 110 | run: df -hT 111 | 112 | - name: 上传bin压缩目录 113 | uses: actions/upload-artifact@main 114 | if: steps.compile.outputs.status == 'success' && env.UPLOAD_BIN_DIR == 'true' 115 | with: 116 | name: OpenWrt_bin${{ env.DEVICE_NAME }}${{ env.FILE_DATE }} 117 | path: openwrt/bin/packages/x86_64 118 | 119 | - name: 整理编译好的固件 120 | id: organize 121 | if: env.UPLOAD_FIRMWARE == 'true' && !cancelled() 122 | run: | 123 | cd openwrt/bin/targets/*/* 124 | rm -rf packages && mkdir packages 125 | find -name "*esxi-flat.vmdk*" | xargs -i mv -f {} packages 126 | find -name "*kernel.bin*" | xargs -i mv -f {} packages 127 | find -name "*rootfs*" | xargs -i mv -f {} packages 128 | find -name "*.manifest*" | xargs -i mv -f {} packages 129 | find -name "*vmlinuz*" | xargs -i mv -f {} packages 130 | find -name "*esxi.vmdk*" | xargs -i mv -f {} packages 131 | rm -rf packages 132 | echo "FIRMWARE=$PWD" >> $GITHUB_ENV 133 | echo "status=success" >> $GITHUB_OUTPUT 134 | - name: 上传固件到github 135 | uses: actions/upload-artifact@main 136 | if: steps.organize.outputs.status == 'success' && !cancelled() 137 | with: 138 | name: openwrt-Project-R2S${{ env.DEVICE_NAME }}${{ env.FILE_DATE }} 139 | path: ${{ env.FIRMWARE }} 140 | 141 | - name: 上传固件到NN网盘 142 | id: cowtransfer 143 | if: steps.organize.outputs.status == 'success' && env.UPLOAD_COWTRANSFER == 'true' && !cancelled() 144 | run: | 145 | curl -fsSL git.io/file-transfer | sh 146 | ./transfer cow --block 2621440 -s -p 64 --no-progress ${FIRMWARE} 2>&1 | tee cowtransfer.log 147 | echo "::warning file=cowtransfer.com::$(cat cowtransfer.log | grep https)" 148 | echo "url=$(cat cowtransfer.log | grep https | cut -f3 -d" ")" >> $GITHUB_OUTPUT 149 | echo "::set-output name=url::$(cat cowtransfer.log | grep https | cut -f3 -d" ")" 150 | - name: 上传固件到WT网盘 151 | id: wetransfer 152 | if: steps.organize.outputs.status == 'success' && env.UPLOAD_WETRANSFER == 'true' && !cancelled() 153 | run: | 154 | curl -fsSL git.io/file-transfer | sh 155 | ./transfer wet -s -p 16 --no-progress ${FIRMWARE} 2>&1 | tee wetransfer.log 156 | echo "::warning file=wetransfer.com::$(cat wetransfer.log | grep https)" 157 | echo "url=$(cat wetransfer.log | grep https | cut -f3 -d" ")" >> $GITHUB_OUTPUT 158 | 159 | - name: 创建release标签 160 | id: tag 161 | if: env.UPLOAD_RELEASE == 'true' && !cancelled() 162 | run: | 163 | echo "release_tag=$(date +"%Y.%m.%d-%H%M")" >> $GITHUB_OUTPUT 164 | touch release.txt 165 | echo "[固件源码](https://github.com/immortalwrt/immortalwrt/tree/master)" >> release.txt 166 | echo "由衷感谢所有为openwrt无私奉献的大佬们" >> release.txt 167 | echo "📥 固件下载" >> release.txt 168 | [ $UPLOAD_COWTRANSFER = true ] && echo "🔗 [国内NN网盘](${{ steps.cowtransfer.outputs.url }})" >> release.txt 169 | [ $UPLOAD_WETRANSFER = true ] && echo "🔗 [国外WT网盘](${{ steps.wetransfer.outputs.url }})" >> release.txt 170 | echo "status=success" >> $GITHUB_OUTPUT 171 | - name: 发布至release 172 | uses: softprops/action-gh-release@v1 173 | if: steps.tag.outputs.status == 'success' && !cancelled() 174 | env: 175 | GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} 176 | with: 177 | name: ${{ env.FILE_TIME }} 「 openwrt-Project-R2S 」 178 | tag_name: ${{ steps.tag.outputs.release_tag }} 179 | body_path: release.txt 180 | files: ${{ env.FIRMWARE }}/* 181 | 182 | - name: 删除旧的Releases 183 | uses: dev-drprasad/delete-older-releases@v0.1.0 184 | if: env.UPLOAD_RELEASE == 'true' && !cancelled() 185 | with: 186 | keep_latest: 9 187 | delete_tags: true 188 | env: 189 | GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} 190 | 191 | - name: TG notification #TG推送 192 | run: curl "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" -d "chat_id=${{ secrets.TELEGRAM_CHAT_ID }}&text=恭喜主人openwrt5.10固件编译完成!" 193 | 194 | -------------------------------------------------------------------------------- /.github/workflows/openwrt-immortalwrt.yml: -------------------------------------------------------------------------------- 1 | #================================================= 2 | # https://github.com/P3TERX/Actions-OpenWrt 3 | # Description: Build OpenWrt using GitHub Actions 4 | # Lisence: MIT 5 | # Author: P3TERX 6 | # Blog: https://p3terx.com 7 | #================================================= 8 | 9 | name: openwrt-immortalwrt 10 | 11 | on: 12 | repository_dispatch: 13 | workflow_dispatch: 14 | inputs: 15 | ssh: 16 | description: 'SSH connection to Actions' 17 | required: false 18 | default: 'false' 19 | schedule: 20 | - cron: 0 21 */5 * * 21 | 22 | env: 23 | REPO_URL: https://github.com/immortalwrt/immortalwrt 24 | REPO_BRANCH: openwrt-24.10 25 | FEEDS_CONF: feeds.conf.default 26 | CONFIG_FILE: openwrt-immortalwrt.config 27 | DIY_P1_SH: openwrt-Project.sh 28 | DIY_P2_SH: openwrt-immortalwrt2.sh 29 | SSH_ACTIONS: false 30 | UPLOAD_BIN_DIR: true 31 | UPLOAD_FIRMWARE: true 32 | UPLOAD_COWTRANSFER: false 33 | UPLOAD_WETRANSFER: false 34 | UPLOAD_RELEASE: true 35 | TZ: Asia/Shanghai 36 | 37 | jobs: 38 | build: 39 | runs-on: ubuntu-22.04 40 | 41 | steps: 42 | - name: 检查项目分支 43 | uses: actions/checkout@main 44 | 45 | - name: 清理磁盘空间 46 | uses: jlumbroso/free-disk-space@main 47 | with: 48 | # this might remove tools that are actually needed, 49 | # if set to "true" but frees about 6 GB 50 | tool-cache: false 51 | 52 | # all of these default to true, but feel free to set to 53 | # "false" if necessary for your workflow 54 | android: true 55 | dotnet: true 56 | haskell: true 57 | large-packages: true 58 | docker-images: true 59 | swap-storage: true 60 | 61 | - name: 安装编译环境 62 | env: 63 | DEBIAN_FRONTEND: noninteractive 64 | run: | 65 | df -hT $PWD 66 | sudo -E apt-get -qq update 67 | sudo bash -c 'bash <(curl -s https://build-scripts.immortalwrt.org/init_build_environment.sh)' 68 | sudo -E apt-get -qq autoremove --purge 69 | sudo -E apt-get -qq clean 70 | sudo timedatectl set-timezone "$TZ" 71 | sudo mkdir -p /mnt/workdir 72 | sudo chown $USER:$GROUPS /mnt/workdir 73 | 74 | - name: 下载固件源码 75 | working-directory: /mnt/workdir 76 | run: | 77 | df -hT $PWD 78 | git clone $REPO_URL -b $REPO_BRANCH openwrt 79 | ln -sf /mnt/workdir/openwrt $GITHUB_WORKSPACE/openwrt 80 | cd openwrt 81 | echo "DATE=$(date "+%Y-%m-%d %H:%M:%S")" >> $GITHUB_ENV 82 | 83 | - name: 加载自定义设置 84 | run: | 85 | [ -e $FEEDS_CONF ] && mv $FEEDS_CONF openwrt/feeds.conf.default 86 | chmod +x $DIY_P1_SH 87 | cd openwrt 88 | $GITHUB_WORKSPACE/$DIY_P1_SH 89 | - name: 下载插件 90 | run: cd openwrt && ./scripts/feeds update -a 91 | 92 | - name: 读取插件 93 | run: cd openwrt && ./scripts/feeds install -a 94 | 95 | - name: 更改设置 96 | run: | 97 | [ -e files ] && mv files openwrt/files 98 | [ -e $CONFIG_FILE ] && mv $CONFIG_FILE openwrt/.config 99 | chmod +x $DIY_P2_SH 100 | cd openwrt 101 | $GITHUB_WORKSPACE/$DIY_P2_SH 102 | - name: SSH链接管理 103 | uses: P3TERX/ssh2actions@v1.0.0 104 | if: (github.event.inputs.ssh == 'true' && github.event.inputs.ssh != 'false') || contains(github.event.action, 'ssh') 105 | env: 106 | TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }} 107 | TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} 108 | 109 | - name: 下载安装包 110 | id: package 111 | run: | 112 | cd openwrt 113 | make defconfig 114 | make download -j8 115 | find dl -size -1024c -exec ls -l {} \; 116 | find dl -size -1024c -exec rm -f {} \; 117 | - name: 开始编译固件 118 | id: compile 119 | run: | 120 | cd openwrt 121 | echo -e "$(nproc) thread compile" 122 | make -j$(nproc) || make -j1 || make -j1 V=s 123 | echo "status=success" >> $GITHUB_OUTPUT 124 | grep '^CONFIG_TARGET.*DEVICE.*=y' .config | sed -r 's/.*DEVICE_(.*)=y/\1/' > DEVICE_NAME 125 | [ -s DEVICE_NAME ] && echo "DEVICE_NAME=_$(cat DEVICE_NAME)" >> $GITHUB_ENV 126 | echo "FILE_DATE=_$(date +"%Y%m%d%H%M")" >> $GITHUB_ENV 127 | echo "FILE_TIME=$(date "+%Y年%m月%d日-%H点")" >> $GITHUB_ENV 128 | echo "TAG_TIME=$(date +"%Y.%m.%d-%H%M")" >> $GITHUB_ENV 129 | - name: 查看磁盘使用情况 130 | if: (!cancelled()) 131 | run: | 132 | echo "Free up disk space complete" 133 | echo "==============================================================================" 134 | df -hT 135 | echo "==============================================================================" 136 | 137 | - name: 上传bin压缩目录 138 | uses: actions/upload-artifact@main 139 | if: steps.compile.outputs.status == 'success' && env.UPLOAD_BIN_DIR == 'true' 140 | with: 141 | name: OpenWrt_bin${{ env.DEVICE_NAME }}${{ env.FILE_DATE }} 142 | path: openwrt/bin/packages/x86_64 143 | 144 | - name: 整理编译好的固件 145 | id: organize 146 | if: env.UPLOAD_FIRMWARE == 'true' && !cancelled() 147 | run: | 148 | cd openwrt/bin/targets/*/* 149 | rm -rf packages && mkdir packages 150 | find -name "*esxi-flat.vmdk*" | xargs -i mv -f {} packages 151 | find -name "*kernel.bin*" | xargs -i mv -f {} packages 152 | find -name "*rootfs*" | xargs -i mv -f {} packages 153 | find -name "*.manifest*" | xargs -i mv -f {} packages 154 | find -name "*vmlinuz*" | xargs -i mv -f {} packages 155 | find -name "*esxi.vmdk*" | xargs -i mv -f {} packages 156 | rm -rf packages 157 | echo "FIRMWARE=$PWD" >> $GITHUB_ENV 158 | echo "status=success" >> $GITHUB_OUTPUT 159 | - name: 上传固件到github 160 | uses: actions/upload-artifact@main 161 | if: steps.organize.outputs.status == 'success' && !cancelled() 162 | with: 163 | name: openwrt-immortalwrt${{ env.DEVICE_NAME }}${{ env.FILE_DATE }} 164 | path: ${{ env.FIRMWARE }} 165 | 166 | - name: 上传固件到NN网盘 167 | id: cowtransfer 168 | if: steps.organize.outputs.status == 'success' && env.UPLOAD_COWTRANSFER == 'true' && !cancelled() 169 | run: | 170 | curl -fsSL git.io/file-transfer | sh 171 | ./transfer cow --block 2621440 -s -p 64 --no-progress ${FIRMWARE} 2>&1 | tee cowtransfer.log 172 | echo "::warning file=cowtransfer.com::$(cat cowtransfer.log | grep https)" 173 | echo "url=$(cat cowtransfer.log | grep https | cut -f3 -d" ")" >> $GITHUB_OUTPUT 174 | - name: 上传固件到WT网盘 175 | id: wetransfer 176 | if: steps.organize.outputs.status == 'success' && env.UPLOAD_WETRANSFER == 'true' && !cancelled() 177 | run: | 178 | curl -fsSL git.io/file-transfer | sh 179 | ./transfer wet -s -p 16 --no-progress ${FIRMWARE} 2>&1 | tee wetransfer.log 180 | echo "::warning file=wetransfer.com::$(cat wetransfer.log | grep https)" 181 | echo "url=$(cat wetransfer.log | grep https | cut -f3 -d" ")" >> $GITHUB_OUTPUT 182 | 183 | - name: 发布至release 184 | id: release 185 | uses: ncipollo/release-action@v1 186 | if: env.UPLOAD_RELEASE == 'true' && !cancelled() 187 | with: 188 | name: ${{ env.FILE_TIME }} 「 openwrt-immortalwrt-X86-64 」 189 | allowUpdates: true 190 | tag: ${{ env.TAG_TIME }} 191 | commit: main 192 | token: ${{ secrets.RELEASE_TOKEN }} 193 | body: | 194 | 功能介绍:包含IPV6、Passwall、SSR、Dockerman、DDNS、samba4.0、UPnP等。其他应用可以自行在应用商店选择安装。 195 | [固件源码](https://github.com/immortalwrt/immortalwrt/tree/master) 196 | 由衷感谢所有为openwrt无私奉献的大佬们 197 | 📥 固件下载 198 | 🔗 [国外WT网盘](${{ steps.wetransfer.outputs.url }}) 199 | artifacts: ${{ env.FIRMWARE }}/* 200 | 201 | - name: 删除旧的Releases 202 | uses: dev-drprasad/delete-older-releases@v0.3.2 203 | if: env.UPLOAD_RELEASE == 'true' && !cancelled() 204 | with: 205 | keep_latest: 9 206 | delete_tags: true 207 | env: 208 | GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} 209 | 210 | - name: TG notification #TG推送 211 | run: curl "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" -d "chat_id=${{ secrets.TELEGRAM_CHAT_ID }}&text=🅾️恭喜主人X86-immortalwrtOS固件编译完成!🎉%0A⏰编译时间:${{ env.DATE }}%0A📥下载地址:https://github.com/firkerword/openwrt-Project/releases/tag/${{ env.TAG_TIME }}%0A🌐WT网盘:${{ steps.wetransfer.outputs.url }}" 212 | -------------------------------------------------------------------------------- /.github/workflows/openwrt-lienol1907.yml: -------------------------------------------------------------------------------- 1 | #================================================= 2 | # https://github.com/P3TERX/Actions-OpenWrt 3 | # Description: Build OpenWrt using GitHub Actions 4 | # Lisence: MIT 5 | # Author: P3TERX 6 | # Blog: https://p3terx.com 7 | #================================================= 8 | 9 | name: Openwrt-lienol1907 10 | 11 | on: 12 | repository_dispatch: 13 | workflow_dispatch: 14 | inputs: 15 | ssh: 16 | description: 'SSH connection to Actions' 17 | required: false 18 | default: 'false' 19 | # schedule: 20 | # - cron: 0 18 */3 * * 21 | 22 | env: 23 | REPO_URL: https://github.com/Lienol/openwrt 24 | REPO_BRANCH: 19.07 25 | FEEDS_CONF: feeds.conf.default 26 | CONFIG_FILE: lienol1907.config 27 | DIY_P1_SH: lienol1907.sh 28 | DIY_P2_SH: lienol19072.sh 29 | SSH_ACTIONS: false 30 | UPLOAD_BIN_DIR: true 31 | UPLOAD_FIRMWARE: true 32 | UPLOAD_WETRANSFER: false 33 | UPLOAD_RELEASE: true 34 | TZ: Asia/Shanghai 35 | 36 | jobs: 37 | build: 38 | runs-on: ubuntu-20.04 39 | 40 | steps: 41 | - name: 检查项目分支 42 | uses: actions/checkout@main 43 | 44 | - name: 安装编译环境 45 | env: 46 | DEBIAN_FRONTEND: noninteractive 47 | run: | 48 | sudo rm -rf /etc/apt/sources.list.d/* /usr/share/dotnet /usr/local/lib/android /opt/ghc 49 | sudo -E apt-get -qq update 50 | sudo bash -c 'bash <(curl -s https://github.com/firkerword/openwrt-list/raw/master/lienol1907)' 51 | sudo -E apt-get -qq autoremove --purge 52 | sudo -E apt-get -qq clean 53 | sudo timedatectl set-timezone "$TZ" 54 | sudo mkdir -p /workdir 55 | sudo chown $USER:$GROUPS /workdir 56 | 57 | - name: 下载固件源码 58 | working-directory: /workdir 59 | run: | 60 | df -hT $PWD 61 | git clone $REPO_URL -b $REPO_BRANCH openwrt 62 | ln -sf /workdir/openwrt $GITHUB_WORKSPACE/openwrt 63 | cd openwrt 64 | useVersionInfo=$(git show -s --date=short --format="%0AAuthor: %an%0Adate: %cd%0Acommit: %s%0Acommit hash: %H") 65 | echo "useVersionInfo=$useVersionInfo" >> $GITHUB_ENV 66 | echo "DATE=$(date "+%Y-%m-%d %H:%M:%S")" >> $GITHUB_ENV 67 | 68 | - name: 加载自定义设置 69 | run: | 70 | [ -e $FEEDS_CONF ] && mv $FEEDS_CONF openwrt/feeds.conf.default 71 | chmod +x $DIY_P1_SH 72 | 73 | cd openwrt 74 | $GITHUB_WORKSPACE/$DIY_P1_SH 75 | - name: 下载插件 76 | run: cd openwrt && ./scripts/feeds update -a 77 | 78 | - name: 读取插件 79 | run: cd openwrt && ./scripts/feeds install -a 80 | 81 | - name: 更改设置 82 | run: | 83 | [ -e files ] && mv files openwrt/files 84 | [ -e $CONFIG_FILE ] && mv $CONFIG_FILE openwrt/.config 85 | chmod +x $DIY_P2_SH 86 | cd openwrt 87 | $GITHUB_WORKSPACE/$DIY_P2_SH 88 | - name: SSH链接管理 89 | uses: P3TERX/ssh2actions@v1.0.0 90 | if: (github.event.inputs.ssh == 'true' && github.event.inputs.ssh != 'false') || contains(github.event.action, 'ssh') 91 | env: 92 | TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }} 93 | TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} 94 | 95 | - name: 下载安装包 96 | id: package 97 | run: | 98 | cd openwrt 99 | make defconfig 100 | make download -j8 101 | find dl -size -1024c -exec ls -l {} \; 102 | find dl -size -1024c -exec rm -f {} \; 103 | - name: 开始编译固件 104 | id: compile 105 | run: | 106 | cd openwrt 107 | echo -e "$(nproc) thread compile" 108 | make -j$(nproc) || make -j1 || make -j1 V=s 109 | echo "status=success" >> $GITHUB_OUTPUT 110 | grep '^CONFIG_TARGET.*DEVICE.*=y' .config | sed -r 's/.*DEVICE_(.*)=y/\1/' > DEVICE_NAME 111 | [ -s DEVICE_NAME ] && echo "DEVICE_NAME=_$(cat DEVICE_NAME)" >> $GITHUB_ENV 112 | echo "FILE_DATE=_$(date +"%Y%m%d%H%M")" >> $GITHUB_ENV 113 | echo "FILE_TIME=$(date "+%Y年%m月%d日-%H点")" >> $GITHUB_ENV 114 | echo "TAG_TIME=$(date +"%Y%m%d%H%M")" >> $GITHUB_ENV 115 | 116 | - name: 查看磁盘使用情况 117 | if: (!cancelled()) 118 | run: df -hT 119 | 120 | - name: 上传bin压缩目录 121 | uses: actions/upload-artifact@main 122 | if: steps.compile.outputs.status == 'success' && env.UPLOAD_BIN_DIR == 'true' 123 | with: 124 | name: OpenWrt_bin${{ env.DEVICE_NAME }}${{ env.FILE_DATE }} 125 | path: openwrt/bin/packages/x86_64 126 | 127 | - name: 整理编译好的固件 128 | id: organize 129 | if: env.UPLOAD_FIRMWARE == 'true' && !cancelled() 130 | run: | 131 | cd openwrt/bin/targets/*/* 132 | rm -rf packages && mkdir packages 133 | find -name "*esxi-flat.vmdk*" | xargs -i mv -f {} packages 134 | find -name "*kernel.bin*" | xargs -i mv -f {} packages 135 | find -name "*rootfs*" | xargs -i mv -f {} packages 136 | find -name "*.manifest*" | xargs -i mv -f {} packages 137 | find -name "*vmlinuz*" | xargs -i mv -f {} packages 138 | find -name "*esxi.vmdk*" | xargs -i mv -f {} packages 139 | rm -rf packages 140 | echo "FIRMWARE=$PWD" >> $GITHUB_ENV 141 | echo "status=success" >> $GITHUB_OUTPUT 142 | 143 | - name: 上传固件到github 144 | uses: actions/upload-artifact@main 145 | if: steps.organize.outputs.status == 'success' && !cancelled() 146 | with: 147 | name: OpenWrt_lienol1907${{ env.DEVICE_NAME }}${{ env.FILE_DATE }} 148 | path: ${{ env.FIRMWARE }} 149 | 150 | - name: 上传到WeTransfer 151 | id: wetransfer 152 | if: steps.organize.outputs.status == 'success' && env.UPLOAD_WETRANSFER == 'true' && !cancelled() 153 | run: | 154 | curl -fsSL git.io/file-transfer | sh 155 | ./transfer wet -s -p 16 --no-progress ${FIRMWARE} 2>&1 | tee wetransfer.log 156 | echo "::warning file=wetransfer.com::$(cat wetransfer.log | grep https)" 157 | echo "url=$(cat wetransfer.log | grep https | cut -f3 -d" ")" >> $GITHUB_OUTPUT 158 | 159 | - name: 发布至release 160 | id: release 161 | uses: ncipollo/release-action@v1 162 | if: env.UPLOAD_RELEASE == 'true' && !cancelled() 163 | with: 164 | name: ${{ env.FILE_TIME }} 「 openwrt-lienol1907 」 165 | allowUpdates: true 166 | tag: ${{ env.TAG_TIME }} 167 | commit: main 168 | token: ${{ secrets.RELEASE_TOKEN }} 169 | body: | 170 | 功能介绍:测试版,请勿下载。 171 | [固件源码](https://github.com/Lienol/openwrt/tree/19.07) 172 | 由衷感谢所有为openwrt无私奉献的大佬们 173 | 📥 固件下载 174 | 🔗 [国外WT网盘](${{ steps.wetransfer.outputs.url }}) 175 | artifacts: ${{ env.FIRMWARE }}/* 176 | 177 | - name: 清理旧的workflow 178 | uses: FunctionXJB/delete-workflow-runs@main 179 | with: 180 | retain_days: 180 181 | keep_minimum_runs: 10 182 | 183 | - name: 删除旧的Releases 184 | uses: dev-drprasad/delete-older-releases@v0.2.1 185 | if: env.UPLOAD_RELEASE == 'true' && !cancelled() 186 | with: 187 | keep_latest: 9 188 | delete_tags: true 189 | env: 190 | GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} 191 | 192 | - name: TG推送 193 | run: curl "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" -d "chat_id=${{ secrets.TELEGRAM_CHAT_ID }}&text=恭喜主人X86-lienol1907固件编译完成!%0A编译时间:${{ env.DATE }}%0A下载地址:https://github.com/firkerword/openwrt-Project/releases/tag/${{ env.TAG_TIME }}" 194 | 195 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 P3TERX 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /LienolOS.config: -------------------------------------------------------------------------------- 1 | CONFIG_TARGET_x86=y 2 | CONFIG_TARGET_x86_64=y 3 | CONFIG_TARGET_x86_64_DEVICE_generic=y 4 | CONFIG_LIBSODIUM_MINIMAL=y 5 | CONFIG_PACKAGE_TAR_BZIP2=y 6 | CONFIG_PACKAGE_TAR_GZIP=y 7 | CONFIG_PACKAGE_TAR_XZ=y 8 | CONFIG_PACKAGE_TAR_ZSTD=y 9 | CONFIG_PACKAGE_dockerd=y 10 | CONFIG_PACKAGE_kmod-tun=y 11 | CONFIG_DEFAULT_ipv6helper=y 12 | CONFIG_PACKAGE_luci-app-adbyby-plus=y 13 | CONFIG_PACKAGE_luci-app-adguardhome=y 14 | CONFIG_PACKAGE_luci-app-autotimeset=y 15 | CONFIG_PACKAGE_luci-app-argon-config=y 16 | CONFIG_PACKAGE_luci-app-arpbind=y 17 | CONFIG_PACKAGE_luci-app-autoreboot=y 18 | CONFIG_PACKAGE_luci-app-dockerman=y 19 | CONFIG_PACKAGE_luci-app-filetransfer=y 20 | CONFIG_PACKAGE_luci-app-lucky=y 21 | CONFIG_PACKAGE_luci-app-openclash=y 22 | CONFIG_PACKAGE_luci-app-passwall=y 23 | CONFIG_PACKAGE_luci-app-quickstart=y 24 | CONFIG_PACKAGE_luci-app-ssr-plus=y 25 | CONFIG_PACKAGE_luci-app-smartdns=y 26 | CONFIG_PACKAGE_luci-app-store=y 27 | CONFIG_PACKAGE_luci-app-unblockmusic=y 28 | # CONFIG_PACKAGE_luci-app-usb-printer is not set 29 | # CONFIG_PACKAGE_luci-app-vlmcsd is not set 30 | # CONFIG_PACKAGE_luci-app-vsftpd is not set 31 | # CONFIG_PACKAGE_luci-app-wol is not set 32 | CONFIG_PACKAGE_luci-app-wrtbwmon=y 33 | CONFIG_PACKAGE_luci-theme-argon=y 34 | CONFIG_PACKAGE_v2ray-geoip=y 35 | CONFIG_PACKAGE_v2ray-geosite=y 36 | CONFIG_PARTED_READLINE=y 37 | CONFIG_TARGET_ROOTFS_PARTSIZE=1024 38 | CONFIG_VMDK_IMAGES=y 39 | CONFIG_ZSTD_OPTIMIZE_O3=y 40 | CONFIG_boost-compile-visibility-hidden=y 41 | CONFIG_boost-runtime-shared=y 42 | CONFIG_boost-static-and-shared-libs=y 43 | CONFIG_boost-variant-release=y 44 | CONFIG_shadow-all=y 45 | CONFIG_PACKAGE_kmod-usb-printer=y 46 | -------------------------------------------------------------------------------- /LienolOS.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #============================================================= 3 | # https://github.com/P3TERX/Actions-OpenWrt 4 | # File name: diy-part1.sh 5 | # Description: OpenWrt DIY script part 1 (Before Update feeds) 6 | # Lisence: MIT 7 | # Author: P3TERX 8 | # Blog: https://p3terx.com 9 | #============================================================= 10 | 11 | # sed -i 's/KERNEL_PATCHVER:=5.10/KERNEL_PATCHVER:=5.15/g' ./target/linux/x86/Makefile 12 | 13 | # Uncomment a feed source 14 | # sed -i 's/^#\(.*helloworld\)/\1/' feeds.conf.default 15 | 16 | function merge_package(){ 17 | repo=`echo $1 | rev | cut -d'/' -f 1 | rev` 18 | pkg=`echo $2 | rev | cut -d'/' -f 1 | rev` 19 | # find package/ -follow -name $pkg -not -path "package/custom/*" | xargs -rt rm -rf 20 | git clone --depth=1 --single-branch $1 21 | mv $2 package/custom/ 22 | rm -rf $repo 23 | } 24 | function drop_package(){ 25 | find package/ -follow -name $1 -not -path "package/custom/*" | xargs -rt rm -rf 26 | } 27 | 28 | rm -rf package/custom; mkdir package/custom 29 | 30 | # Add a feed source 31 | sed -i '$a src-git nas https://github.com/linkease/nas-packages.git;master' feeds.conf.default 32 | sed -i '$a src-git nas_luci https://github.com/linkease/nas-packages-luci.git;main' feeds.conf.default 33 | # sed -i '$a src-git lienol https://github.com/Lienol/openwrt-package' feeds.conf.default 34 | # sed -i '$a src-git passwall https://github.com/xiaorouji/openwrt-passwall' feeds.conf.default 35 | # sed -i '$a src-git jerryk https://github.com/jerrykuku/openwrt-package' feeds.conf.default 36 | git clone https://github.com/jerrykuku/luci-theme-argon.git package/luci-theme-argon 37 | git clone https://github.com/jerrykuku/luci-app-argon-config.git package/luci-app-argon-config 38 | # git clone https://github.com/QiuSimons/openwrt-mos.git package/openwrt-mos 39 | git clone https://github.com/fw876/helloworld.git package/ssr 40 | git clone https://github.com/firker/diy-ziyong.git package/diy-ziyong 41 | # git clone https://github.com/tty228/luci-app-serverchan.git package/luci-app-serverchan 42 | # git clone https://github.com/kiddin9/openwrt-bypass.git package/openwrt-bypass 43 | git clone https://github.com/xiaorouji/openwrt-passwall-packages.git package/openwrt-passwall 44 | git clone https://github.com/xiaorouji/openwrt-passwall.git package/passwall 45 | # git clone https://github.com/xiaorouji/openwrt-passwall2.git package/passwall2 46 | git clone -b lede https://github.com/pymumu/luci-app-smartdns.git package/luci-app-smartdns 47 | git clone https://github.com/immortalwrt/homeproxy.git package/luci-app-homeproxy 48 | git clone https://github.com/linkease/istore.git package/istore 49 | git clone https://github.com/linkease/istore-ui.git package/istore-ui 50 | git clone https://github.com/firkerword/luci-app-lucky.git package/lucky 51 | git clone https://github.com/QiuSimons/openwrt-mos.git package/openwrt-mos 52 | merge_package https://github.com/messense/aliyundrive-webdav aliyundrive-webdav/openwrt applications/aliyundrive-webdav 53 | merge_package https://github.com/vernesong/OpenClash OpenClash/luci-app-openclash 54 | merge_package master https://github.com/kiddin9/openwrt-packages openwrt-packages/luci-app-wrtbwmon 55 | merge_package master https://github.com/kiddin9/openwrt-packages openwrt-packages/wrtbwmon 56 | -------------------------------------------------------------------------------- /LienolOS2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #============================================================ 3 | # https://github.com/P3TERX/Actions-OpenWrt 4 | # File name: diy-part2.sh 5 | # Description: OpenWrt DIY script part 2 (After Update feeds) 6 | # Lisence: MIT 7 | # Author: P3TERX 8 | # Blog: https://p3terx.com 9 | #============================================================ 10 | sed -i '/DTS_DIR:=$(LINUX_DIR)/a\BUILD_DATE_PREFIX := $(shell date +'%F')' ./include/image.mk 11 | sed -i 's/IMG_PREFIX:=/IMG_PREFIX:=$(BUILD_DATE_PREFIX)-/g' ./include/image.mk 12 | 13 | # curl -fsSL https://raw.githubusercontent.com/siropboy/other/master/patch/poweroff/poweroff.htm > ./feeds/luci/modules/luci-mod-admin-full/luasrc/view/admin_system/poweroff.htm 14 | # curl -fsSL https://raw.githubusercontent.com/siropboy/other/master/patch/poweroff/system.lua > ./feeds/luci/modules/luci-mod-admin-full/luasrc/controller/admin/system.lua 15 | # curl -fsSL https://raw.githubusercontent.com/firkerword/KPR/main/logo.jpg > .package/luci-app-serverchan/root/usr/bin/serverchan/api/logo.jpg 16 | # curl -fsSL https://raw.githubusercontent.com/coolsnowwolf/luci/master/applications/luci-app-adbyby-plus/root/usr/share/adbyby/ad-update > ./feeds/other/lean/luci-app-adbyby-plus/root/usr/share/adbyby/ad-update 17 | # curl -fsSL https://raw.githubusercontent.com/firkerword/KPR/main/cus_config.yaml > ./package/openwrt-mos/luci-app-mosdns/root/etc/mosdns/cus_config.yaml 18 | # Modify default IP 19 | # sed -i 's/192.168.1.1/192.168.50.5/g' package/base-files/files/bin/config_generate 20 | sed -i 's/luci-theme-bootstrap/luci-theme-argon/g' ./feeds/luci/collections/luci/Makefile 21 | rm -rf ./package/diy-ziyong/theme 22 | rm -rf ./package/diy-ziyong/luci-app-wrtbwmon-zh 23 | rm -rf ./package/diy-ziyong/wrtbwmon 24 | # rm -rf ./package/diy-ziyong/adguardhome 25 | rm -rf ./feeds/luci/themes/luci-theme-argon 26 | rm -rf ./feeds/packages/net/adguardhome 27 | rm -rf ./feeds/packages/net/smartdns 28 | rm -rf ./feeds/packages/net/mosdns 29 | rm -rf ./feeds/packages/lang/golang 30 | svn export https://github.com/sbwml/packages_lang_golang/branches/19.x feeds/packages/lang/golang 31 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # OpenWrt24.10-X86-64云编译项目 2 | 3 | ## 固件来源 4 | 5 | P3TERX云编译脚本地址:[https://github.com/P3TERX/Actions-OpenWrt](https://github.com/P3TERX/Actions-OpenWrt) 6 | 7 | Lienol固件源码地址:[https://github.com/Lienol/openwrt](https://github.com/Lienol/openwrt) 8 | 9 | Project固件源码地址:[https://github.com/immortalwrt/immortalwrt](https://github.com/immortalwrt/immortalwrt) 10 | 11 | istoreOS源码地址: https://github.com/istoreos 12 | 13 | 由衷感谢所有为openwrt无私奉献的大佬们。 14 | 15 | ## 固件说明 16 | 17 | 源码内核版本,***6.6***版 18 | 19 | openwrt源码版本,***openwrt-24.10*** 20 | 21 | 支持IPV6 22 | 23 | 不定时更新,默认周更 24 | 25 | > `管理ip:192.168.1.1 密码:password` 26 | 27 | ### 固件分区默认16M+1G,分区一致可直接web升级,否则请使用DD写盘或重新写盘,首次刷入不建议保留配置,以免发生BUG。 28 | 29 | ## 固件下载 30 | 31 | ### 点击[Actions](https://github.com/firkerword/openwrt-Project/actions/workflows/openwrt-Project.yml) 或者[Releases](https://github.com/firkerword/openwrt-Project/releases) 选择需要的版本 32 | ![avatar](https://raw.githubusercontent.com/firkerword/openwrt-stable-version/main/boc/c.png) 33 | 34 | ## 固件截图: 35 | ![21.02](https://raw.githubusercontent.com/firkerword/openwrt-Project/main/boc/22.01.png) 36 | ![21.02](https://raw.githubusercontent.com/firkerword/openwrt-Project/main/boc/22.02.png) 37 | ![21.02](https://raw.githubusercontent.com/firkerword/openwrt-Project/main/boc/22.03.png) 38 | ### 其他 39 | 40 | 联系:[Tg频道订阅](https://t.me/zhinengchaoshenzhe) 41 | 42 | 稳定自用版云编译地址:[https://github.com/firkerword/openwrt-Exclusive](https://github.com/firkerword/openwrt-Exclusive) 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-midnight -------------------------------------------------------------------------------- /boc/01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firkerword/openwrt-Project/f7a779d5b84327c85d9bfff63631cf9e373f4a55/boc/01.png -------------------------------------------------------------------------------- /boc/02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firkerword/openwrt-Project/f7a779d5b84327c85d9bfff63631cf9e373f4a55/boc/02.png -------------------------------------------------------------------------------- /boc/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firkerword/openwrt-Project/f7a779d5b84327c85d9bfff63631cf9e373f4a55/boc/1.png -------------------------------------------------------------------------------- /boc/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firkerword/openwrt-Project/f7a779d5b84327c85d9bfff63631cf9e373f4a55/boc/2.png -------------------------------------------------------------------------------- /boc/22.01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firkerword/openwrt-Project/f7a779d5b84327c85d9bfff63631cf9e373f4a55/boc/22.01.png -------------------------------------------------------------------------------- /boc/22.02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firkerword/openwrt-Project/f7a779d5b84327c85d9bfff63631cf9e373f4a55/boc/22.02.png -------------------------------------------------------------------------------- /boc/22.03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firkerword/openwrt-Project/f7a779d5b84327c85d9bfff63631cf9e373f4a55/boc/22.03.png -------------------------------------------------------------------------------- /boc/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firkerword/openwrt-Project/f7a779d5b84327c85d9bfff63631cf9e373f4a55/boc/3.png -------------------------------------------------------------------------------- /boc/a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firkerword/openwrt-Project/f7a779d5b84327c85d9bfff63631cf9e373f4a55/boc/a.png -------------------------------------------------------------------------------- /boc/b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firkerword/openwrt-Project/f7a779d5b84327c85d9bfff63631cf9e373f4a55/boc/b.png -------------------------------------------------------------------------------- /boc/c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firkerword/openwrt-Project/f7a779d5b84327c85d9bfff63631cf9e373f4a55/boc/c.png -------------------------------------------------------------------------------- /boc/m.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firkerword/openwrt-Project/f7a779d5b84327c85d9bfff63631cf9e373f4a55/boc/m.jpg -------------------------------------------------------------------------------- /lienol1907.config: -------------------------------------------------------------------------------- 1 | CONFIG_TARGET_x86=y 2 | CONFIG_TARGET_x86_64=y 3 | CONFIG_TARGET_x86_64_DEVICE_generic=y 4 | CONFIG_TARGET_ROOTFS_PARTSIZE=1024 5 | CONFIG_VMDK_IMAGES=y 6 | CONFIG_EFI_IMAGES=y 7 | CONFIG_PACKAGE_ipv6helper=y 8 | CONFIG_PACKAGE_kmod-tun=y 9 | # CONFIG_PACKAGE_luci-app-timecontrol is not set 10 | CONFIG_PACKAGE_luci-app-autoreboot=y 11 | CONFIG_PACKAGE_luci-app-openclash=y 12 | CONFIG_PACKAGE_luci-app-passwall=y 13 | CONFIG_PACKAGE_luci-app-mosdns=y 14 | CONFIG_PACKAGE_luci-app-wrtbwmon=y 15 | CONFIG_PACKAGE_luci-app-wireguard=y 16 | CONFIG_PACKAGE_luci-app-nlbwmon=y 17 | CONFIG_PACKAGE_luci-app-openvpn-server=y 18 | CONFIG_PACKAGE_luci-app-nft-qos=y 19 | CONFIG_PACKAGE_luci-app-qos=y 20 | CONFIG_PACKAGE_luci-app-sqm=y 21 | CONFIG_PACKAGE_luci-app-ttyd=y 22 | CONFIG_PACKAGE_luci-app-serverchan=y 23 | CONFIG_PACKAGE_luci-app-turboacc=y 24 | CONFIG_PACKAGE_luci-app-poweroff=y 25 | CONFIG_PACKAGE_luci-app-filetransfer=y 26 | -------------------------------------------------------------------------------- /lienol1907.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Copyright (c) 2019-2020 P3TERX 4 | # 5 | # This is free software, licensed under the MIT License. 6 | # See /LICENSE for more information. 7 | # 8 | # https://github.com/P3TERX/Actions-OpenWrt 9 | # File name: diy-part1.sh 10 | # Description: OpenWrt DIY script part 1 (Before Update feeds) 11 | # 12 | 13 | sed -i 's/KERNEL_PATCHVER:=5.4/KERNEL_PATCHVER:=4.19/g' ./target/linux/x86/Makefile 14 | 15 | # Uncomment a feed source 16 | #sed -i 's/^#\(.*helloworld\)/\1/' feeds.conf.default 17 | 18 | # Add a feed source 19 | #echo 'src-git helloworld https://github.com/fw876/helloworld' >>feeds.conf.default 20 | #echo 'src-git passwall https://github.com/xiaorouji/openwrt-passwall' >>feeds.conf.default 21 | # git clone https://github.com/fw876/helloworld.git package/ssr 22 | git clone https://github.com/tty228/luci-app-serverchan.git package/luci-app-serverchan 23 | git clone https://github.com/sirpdboy/luci-app-autotimeset package/luci-app-autotimeset 24 | git clone https://github.com/xiaorouji/openwrt-passwall.git package/openwrt-passwall 25 | git clone -b luci https://github.com/xiaorouji/openwrt-passwall package/passwall 26 | find ./ | grep Makefile | grep v2ray-geodata | xargs rm -f 27 | find ./ | grep Makefile | grep mosdns | xargs rm -f 28 | git clone https://github.com/firker/mosdns package/mosdns 29 | git clone https://github.com/sbwml/v2ray-geodata package/v2ray-geodata 30 | svn co https://github.com/vernesong/OpenClash/trunk/luci-app-openclash package/luci-app-openclash 31 | svn co https://github.com/firker/diy-ziyong/trunk/luci-app-poweroff package/luci-app-poweroff 32 | svn co https://github.com/NueXini/NueXini_Packages/trunk/luci-app-openvpn-server package/luci-app-openvpn-server 33 | -------------------------------------------------------------------------------- /lienol19072.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Copyright (c) 2019-2020 P3TERX 4 | # 5 | # This is free software, licensed under the MIT License. 6 | # See /LICENSE for more information. 7 | # 8 | # https://github.com/P3TERX/Actions-OpenWrt 9 | # File name: diy-part2.sh 10 | # Description: OpenWrt DIY script part 2 (After Update feeds) 11 | # 12 | 13 | # Modify default IP 14 | #sed -i 's/192.168.1.1/192.168.50.5/g' package/base-files/files/bin/config_generate 15 | # 替换 16 | rm -rf ./feeds/packages/lang/golang 17 | svn export https://github.com/sbwml/packages_lang_golang/branches/19.x feeds/packages/lang/golang 18 | rm -rf feeds/packages/libs/libcap 19 | svn co https://github.com/openwrt/packages/branches/openwrt-21.02/libs/libcap/ feeds/packages/libs/libcap 20 | rm -rf feeds/packages/net/miniupnpd 21 | svn co https://github.com/coolsnowwolf/packages/trunk/net/miniupnpd feeds/packages/net/miniupnpd 22 | rm -rf feeds/luci/applications/luci-app-upnp 23 | svn co https://github.com/coolsnowwolf/luci/trunk/applications/luci-app-upnp feeds/luci/applications/luci-app-upnp 24 | -------------------------------------------------------------------------------- /openwrt-Project-R2S.config: -------------------------------------------------------------------------------- 1 | CONFIG_TARGET_rockchip=y 2 | CONFIG_TARGET_rockchip_armv8=y 3 | CONFIG_TARGET_rockchip_armv8_DEVICE_friendlyarm_nanopi-r2s=y 4 | CONFIG_PACKAGE_luci-app-adbyby-plus=y 5 | CONFIG_PACKAGE_luci-app-adguardhome=y 6 | CONFIG_PACKAGE_luci-app-arpbind=y 7 | CONFIG_PACKAGE_luci-app-autotimeset=y 8 | CONFIG_PACKAGE_luci-app-bypass=y 9 | CONFIG_PACKAGE_luci-app-ddns=y 10 | CONFIG_PACKAGE_luci-app-dockerman=y 11 | CONFIG_PACKAGE_luci-app-openclash=y 12 | CONFIG_PACKAGE_luci-app-passwall=y 13 | CONFIG_PACKAGE_luci-app-samba4=y 14 | CONFIG_PACKAGE_luci-app-store=y 15 | CONFIG_PACKAGE_luci-app-upnp=y 16 | CONFIG_PACKAGE_luci-theme-argon=y 17 | CONFIG_PACKAGE_luci-theme-bootstrap=y 18 | CONFIG_PACKAGE_luci-theme-bootstrap-mod=y 19 | CONFIG_PACKAGE_luci-theme-material=y 20 | CONFIG_PACKAGE_luci-theme-openwrt-2020=y 21 | # CONFIG_PACKAGE_kmod-usb-net-asix is not set 22 | # CONFIG_PACKAGE_kmod-usb-net-asix-ax88179 is not set 23 | CONFIG_TARGET_ROOTFS_PARTSIZE=512 24 | CONFIG_VMDK_IMAGES=y 25 | -------------------------------------------------------------------------------- /openwrt-Project.config: -------------------------------------------------------------------------------- 1 | CONFIG_DEFAULT_ipv6helper=y 2 | CONFIG_PACKAGE_luci-app-adbyby-plus=y 3 | CONFIG_PACKAGE_luci-app-adguardhome=y 4 | CONFIG_PACKAGE_luci-app-autotimeset=y 5 | CONFIG_PACKAGE_luci-app-arpbind=y 6 | CONFIG_PACKAGE_luci-app-argon-config=y 7 | CONFIG_PACKAGE_luci-app-quickstart=y 8 | CONFIG_PACKAGE_luci-app-ddns=y 9 | CONFIG_PACKAGE_luci-app-dockerman=y 10 | CONFIG_PACKAGE_luci-app-lucky=y 11 | CONFIG_PACKAGE_luci-app-openclash=y 12 | CONFIG_PACKAGE_luci-app-passwall=y 13 | CONFIG_PACKAGE_luci-app-ssr-plus=y 14 | CONFIG_PACKAGE_luci-app-samba4=y 15 | CONFIG_PACKAGE_luci-app-store=y 16 | CONFIG_PACKAGE_luci-app-smartdns=y 17 | # CONFIG_PACKAGE_luci-app-turboacc is not set 18 | CONFIG_PACKAGE_luci-app-upnp=y 19 | CONFIG_PACKAGE_luci-theme-argon=y 20 | CONFIG_PACKAGE_luci-theme-bootstrap=y 21 | CONFIG_PACKAGE_luci-theme-bootstrap-mod=y 22 | # CONFIG_TARGET_ROOTFS_EXT4FS is not set 23 | CONFIG_TARGET_ROOTFS_PARTSIZE=1024 24 | CONFIG_VMDK_IMAGES=y 25 | -------------------------------------------------------------------------------- /openwrt-Project.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #============================================================= 3 | # https://github.com/P3TERX/Actions-OpenWrt 4 | # File name: diy-part1.sh 5 | # Description: OpenWrt DIY script part 1 (Before Update feeds) 6 | # Lisence: MIT 7 | # Author: P3TERX 8 | # Blog: https://p3terx.com 9 | #============================================================= 10 | 11 | # sed -i 's/KERNEL_PATCHVER:=5.15/KERNEL_PATCHVER:=6.6/g' ./target/linux/x86/Makefile 12 | sed -i 's/KERNEL_PATCHVER:=6.1/KERNEL_PATCHVER:=6.6/g' ./target/linux/x86/Makefile 13 | 14 | # Uncomment a feed source 15 | # sed -i 's/^#\(.*helloworld\)/\1/' feeds.conf.default 16 | 17 | function merge_package(){ 18 | repo=`echo $1 | rev | cut -d'/' -f 1 | rev` 19 | pkg=`echo $2 | rev | cut -d'/' -f 1 | rev` 20 | # find package/ -follow -name $pkg -not -path "package/custom/*" | xargs -rt rm -rf 21 | git clone --depth=1 --single-branch $1 22 | mv $2 package/custom/ 23 | rm -rf $repo 24 | } 25 | function drop_package(){ 26 | find package/ -follow -name $1 -not -path "package/custom/*" | xargs -rt rm -rf 27 | } 28 | 29 | rm -rf package/custom; mkdir package/custom 30 | 31 | # Add a feed source 32 | sed -i '$a src-git nas https://github.com/linkease/nas-packages.git;master' feeds.conf.default 33 | sed -i '$a src-git nas_luci https://github.com/linkease/nas-packages-luci.git;main' feeds.conf.default 34 | # sed -i '$a src-git lienol https://github.com/Lienol/openwrt-package' feeds.conf.default 35 | # sed -i '$a src-git passwall https://github.com/xiaorouji/openwrt-passwall' feeds.conf.default 36 | # sed -i '$a src-git jerryk https://github.com/jerrykuku/openwrt-package' feeds.conf.default 37 | # git clone https://github.com/jerrykuku/luci-theme-argon.git package/luci-theme-argon 38 | # git clone https://github.com/QiuSimons/openwrt-mos.git package/openwrt-mos 39 | git clone https://github.com/fw876/helloworld.git package/ssr 40 | git clone -b 2305 https://github.com/firker/diy-ziyong.git package/diy-ziyong 41 | git clone https://github.com/nikkinikki-org/OpenWrt-nikki.git package/openwrt-nikki 42 | git clone https://github.com/xiaorouji/openwrt-passwall-packages.git package/openwrt-passwall 43 | git clone https://github.com/xiaorouji/openwrt-passwall.git package/passwall 44 | git clone https://github.com/linkease/istore.git package/istore 45 | git clone https://github.com/linkease/istore-ui.git package/istore-ui 46 | git clone -b lede https://github.com/pymumu/luci-app-smartdns.git package/luci-app-smartdns 47 | git clone https://github.com/immortalwrt/homeproxy.git package/luci-app-homeproxy 48 | # git clone https://github.com/v2rayA/v2raya-openwrt.git package/v2raya-openwrt 49 | merge_package https://github.com/messense/aliyundrive-webdav aliyundrive-webdav/openwrt applications/aliyundrive-webdav 50 | merge_package https://github.com/vernesong/OpenClash OpenClash/luci-app-openclash 51 | git clone https://github.com/firkerword/luci-app-lucky.git package/lucky 52 | find ./ | grep Makefile | grep v2ray-geodata | xargs rm -f 53 | find ./ | grep Makefile | grep mosdns | xargs rm -f 54 | git clone https://github.com/sbwml/luci-app-mosdns package/mosdns 55 | git clone https://github.com/sbwml/v2ray-geodata package/v2ray-geodata 56 | # svn co https://github.com/coolsnowwolf/luci/trunk/applications/luci-app-adbyby-plus package/luci-app-adbyby-plus 57 | # svn co https://github.com/messense/aliyundrive-webdav/trunk/openwrt package/aliyundrive-webdav 58 | # svn co https://github.com/kiddin9/openwrt-packages/trunk/adguardhome package/adguardhome 59 | merge_package master https://github.com/kiddin9/openwrt-packages openwrt-packages/luci-app-wrtbwmon 60 | merge_package master https://github.com/kiddin9/openwrt-packages openwrt-packages/wrtbwmon 61 | -------------------------------------------------------------------------------- /openwrt-Project2.sh: -------------------------------------------------------------------------------- 1 | ,#!/bin/bash 2 | #============================================================ 3 | # https://github.com/P3TERX/Actions-OpenWrt 4 | # File name: diy-part2.sh 5 | # Description: OpenWrt DIY script part 2 (After Update feeds) 6 | # Lisence: MIT 7 | # Author: P3TERX 8 | # Blog: https://p3terx.com 9 | #============================================================ 10 | # sed -i '/DTS_DIR:=$(LINUX_DIR)/a\BUILD_DATE_PREFIX := $(shell date +'%F')' ./include/image.mk 11 | # sed -i 's/IMG_PREFIX:=/IMG_PREFIX:=$(BUILD_DATE_PREFIX)-/g' ./include/image.mk 12 | 13 | # curl -fsSL https://raw.githubusercontent.com/siropboy/other/master/patch/poweroff/poweroff.htm > ./feeds/luci/modules/luci-mod-admin-full/luasrc/view/admin_system/poweroff.htm 14 | # curl -fsSL https://raw.githubusercontent.com/siropboy/other/master/patch/poweroff/system.lua > ./feeds/luci/modules/luci-mod-admin-full/luasrc/controller/admin/system.lua 15 | # curl -fsSL https://raw.githubusercontent.com/firkerword/KPR/main/logo.jpg > .package/luci-app-serverchan/root/usr/bin/serverchan/api/logo.jpg 16 | # Modify default IP 17 | # sed -i 's/192.168.1.1/192.168.50.5/g' package/base-files/files/bin/config_generate 18 | 19 | sed -i 's/luci-theme-bootstrap/luci-theme-argon/g' ./feeds/luci/collections/luci/Makefile 20 | rm -rf ./package/diy-ziyong/theme 21 | rm -rf ./package/diy-ziyong/luci-app-wrtbwmon-zh 22 | rm -rf ./package/diy-ziyong/wrtbwmon 23 | # rm -rf ./package/diy-ziyong/adguardhome 24 | rm -rf ./feeds/packages/net/adguardhome 25 | rm -rf ./feeds/packages/net/smartdns 26 | rm -rf ./feeds/packages/net/mosdns 27 | # rm -rf ./feeds/luci/applications/luci-app-passwall 28 | # rm -rf ./feeds/luci/applications/luci-app-ssr-plus 29 | # rm -rf ./feeds/luci/applications/luci-app-openclash 30 | # rm -rf ./feeds/luci/applications/luci-app-adbyby-plus 31 | rm -rf ./feeds/packages/lang/golang 32 | svn export https://github.com/sbwml/packages_lang_golang/branches/19.x feeds/packages/lang/golang 33 | -------------------------------------------------------------------------------- /openwrt-immortalwrt.config: -------------------------------------------------------------------------------- 1 | CONFIG_DEFAULT_ipv6helper=y 2 | CONFIG_PACKAGE_luci=y 3 | CONFIG_PACKAGE_default-settings-chn=y 4 | CONFIG_PACKAGE_luci-app-adbyby-plus=y 5 | CONFIG_PACKAGE_luci-app-adguardhome=y 6 | CONFIG_PACKAGE_luci-app-autotimeset=y 7 | CONFIG_PACKAGE_luci-app-argon-config=y 8 | CONFIG_PACKAGE_luci-app-ddns=y 9 | CONFIG_PACKAGE_luci-app-dockerman=y 10 | CONFIG_PACKAGE_luci-app-openvpn=y 11 | CONFIG_PACKAGE_luci-app-serverchan=y 12 | CONFIG_PACKAGE_luci-app-mosdns=y 13 | CONFIG_PACKAGE_luci-app-nikki=y 14 | CONFIG_PACKAGE_luci-app-passwall=y 15 | CONFIG_PACKAGE_luci-app-ssr-plus=y 16 | CONFIG_PACKAGE_luci-app-store=y 17 | CONFIG_PACKAGE_luci-app-samba4=y 18 | CONFIG_PACKAGE_luci-app-upnp=y 19 | # CONFIG_PACKAGE_luci-app-smartdns is not set 20 | CONFIG_PACKAGE_luci-theme-argon=y 21 | CONFIG_PACKAGE_luci-theme-bootstrap=y 22 | CONFIG_PACKAGE_luci-theme-bootstrap-mod=y 23 | # CONFIG_TARGET_ROOTFS_EXT4FS is not set 24 | CONFIG_TARGET_ROOTFS_PARTSIZE=1024 25 | CONFIG_VMDK_IMAGES=y 26 | -------------------------------------------------------------------------------- /openwrt-immortalwrt2.sh: -------------------------------------------------------------------------------- 1 | ,#!/bin/bash 2 | #============================================================ 3 | # https://github.com/P3TERX/Actions-OpenWrt 4 | # File name: diy-part2.sh 5 | # Description: OpenWrt DIY script part 2 (After Update feeds) 6 | # Lisence: MIT 7 | # Author: P3TERX 8 | # Blog: https://p3terx.com 9 | #============================================================ 10 | # sed -i '/DTS_DIR:=$(LINUX_DIR)/a\BUILD_DATE_PREFIX := $(shell date +'%F')' ./include/image.mk 11 | # sed -i 's/IMG_PREFIX:=/IMG_PREFIX:=$(BUILD_DATE_PREFIX)-/g' ./include/image.mk 12 | 13 | # curl -fsSL https://raw.githubusercontent.com/siropboy/other/master/patch/poweroff/poweroff.htm > ./feeds/luci/modules/luci-mod-admin-full/luasrc/view/admin_system/poweroff.htm 14 | # curl -fsSL https://raw.githubusercontent.com/siropboy/other/master/patch/poweroff/system.lua > ./feeds/luci/modules/luci-mod-admin-full/luasrc/controller/admin/system.lua 15 | # curl -fsSL https://raw.githubusercontent.com/firkerword/KPR/main/logo.jpg > .package/luci-app-serverchan/root/usr/bin/serverchan/api/logo.jpg 16 | # Modify default IP 17 | # sed -i 's/192.168.1.1/192.168.50.5/g' package/base-files/files/bin/config_generate 18 | 19 | sed -i 's/luci-theme-bootstrap/luci-theme-argon/g' ./feeds/luci/collections/luci/Makefile 20 | rm -rf ./package/diy-ziyong/theme 21 | rm -rf ./package/diy-ziyong/luci-app-wrtbwmon-zh 22 | rm -rf ./package/diy-ziyong/wrtbwmon 23 | # rm -rf ./package/diy-ziyong/adguardhome 24 | rm -rf ./feeds/packages/net/adguardhome 25 | rm -rf ./feeds/packages/net/smartdns 26 | rm -rf ./feeds/packages/net/mosdns 27 | rm -rf ./feeds/luci/applications/luci-app-passwall 28 | rm -rf ./feeds/luci/applications/luci-app-ssr-plus 29 | rm -rf ./feeds/luci/applications/luci-app-openclash 30 | rm -rf ./feeds/luci/applications/luci-app-smartdns 31 | # rm -rf ./feeds/luci/applications/luci-app-adbyby-plus 32 | rm -rf feeds/packages/lang/golang 33 | git clone https://github.com/sbwml/packages_lang_golang -b 24.x feeds/packages/lang/golang 34 | --------------------------------------------------------------------------------