README: 20210215
This commit is contained in:
parent
102760fc1a
commit
54a8e6cd54
38
README.md
38
README.md
|
@ -3,9 +3,9 @@
|
||||||
![GitHub Stars](https://img.shields.io/github/stars/Hyy2001X/AutoBuild-Actions.svg?style=flat-square&label=Stars&logo=github)
|
![GitHub Stars](https://img.shields.io/github/stars/Hyy2001X/AutoBuild-Actions.svg?style=flat-square&label=Stars&logo=github)
|
||||||
![GitHub Forks](https://img.shields.io/github/forks/Hyy2001X/AutoBuild-Actions.svg?style=flat-square&label=Forks&logo=github)
|
![GitHub Forks](https://img.shields.io/github/forks/Hyy2001X/AutoBuild-Actions.svg?style=flat-square&label=Forks&logo=github)
|
||||||
|
|
||||||
**自动编译:本项目将在每天 19:00 自动编译固件**
|
**自动编译:本项目将在每天 19:00 启动自动编译**
|
||||||
|
|
||||||
测试通过的设备: `d-team_newifi-d2`、`phicomm_k2p`、以及一些使用 bin 格式固件的路由器
|
当前测试通过的设备: `d-team_newifi-d2`、`phicomm_k2p`、以及一些使用 bin 格式固件的设备
|
||||||
|
|
||||||
## Github Actions 部署指南(STEP 1):
|
## Github Actions 部署指南(STEP 1):
|
||||||
|
|
||||||
|
@ -13,9 +13,9 @@
|
||||||
|
|
||||||
`Note`项填写你中意的名称,`Select scopes`不懂就**全部打勾**,操作完成后点击下方`Generate token`
|
`Note`项填写你中意的名称,`Select scopes`不懂就**全部打勾**,操作完成后点击下方`Generate token`
|
||||||
|
|
||||||
2. 复制页面中生成的 **Token**,并**保存**到本地
|
2. 复制页面中生成的 **Token**,并保存到本地
|
||||||
|
|
||||||
**一定要第一时间保存到本地,为了安全起见, Token 值只会显示一次!**
|
**一定要保存到本地,Github 为了安全起见, Token 值只会显示一次!**
|
||||||
|
|
||||||
3. ***Fork*** 我的`AutoBuild-Actions`仓库,然后进入你的`AutoBuild-Actions`仓库进行之后的设置
|
3. ***Fork*** 我的`AutoBuild-Actions`仓库,然后进入你的`AutoBuild-Actions`仓库进行之后的设置
|
||||||
|
|
||||||
|
@ -23,19 +23,19 @@
|
||||||
|
|
||||||
其中`Name`项填写`RELEASE_TOKEN`,然后将你的 **Token** 粘贴到`Value`项,完成后点击`Add secert`
|
其中`Name`项填写`RELEASE_TOKEN`,然后将你的 **Token** 粘贴到`Value`项,完成后点击`Add secert`
|
||||||
|
|
||||||
**注意: 以上操作只需操作一次!**
|
**注意: Github Actions 部署只需操作一次!**
|
||||||
|
|
||||||
## 客制化固件(STEP 2):
|
## 客制化固件(STEP 2):
|
||||||
|
|
||||||
1. 进入你的`AutoBuild-Actions`仓库,下方所有操作都将在你的`AutoBuild-Actions`仓库下进行
|
1. 进入你的`AutoBuild-Actions`仓库,**下方所有操作都将在你的`AutoBuild-Actions`仓库下进行**
|
||||||
|
|
||||||
2. 把本地的 '.config' 文件重命名并上传到仓库根目录或者直接修改
|
2. 把本地的 '.config' 文件重命名并上传到**仓库根目录**或者直接修改`NEWIFI_D2-NIGHTLY.config`
|
||||||
|
|
||||||
3. 编辑`.github/workflows/AutoBuild.yml`文件,修改`第 27 行`为你上传的 '.config' 文件名称
|
3. 编辑`.github/workflows/AutoBuild.yml`文件,修改`第 27 行`为你上传的 '.config' 文件名称
|
||||||
|
|
||||||
4. 按需编辑`Scripts/AutoBuild_DiyScript.sh`文件
|
4. 按照你的需求编辑`Scripts/AutoBuild_DiyScript.sh`文件(可以跳过此步骤)
|
||||||
|
|
||||||
**Diy_Core 下的名词解释:**
|
**Diy_Core() 函数中的名词解释:**
|
||||||
```
|
```
|
||||||
Author 作者名称,这个名称将在 OpenWrt 首页显示
|
Author 作者名称,这个名称将在 OpenWrt 首页显示
|
||||||
|
|
||||||
|
@ -49,9 +49,9 @@
|
||||||
|
|
||||||
INCLUDE_Passwall 添加 Lienol 的 openwrt-passwall 仓库到源码目录
|
INCLUDE_Passwall 添加 Lienol 的 openwrt-passwall 仓库到源码目录
|
||||||
|
|
||||||
INCLUDE_HelloWorld 添加 jerrykuku 的 luci-app-vssr 仓库到源码目录
|
INCLUDE_HelloWorld 添加 jerrykuku 的 luci-app-vssr 仓库到源码目录 [Not tested]
|
||||||
|
|
||||||
INCLUDE_Bypass 添加 garypang13 的 luci-app-bypass 仓库到源码目录
|
INCLUDE_Bypass 添加 garypang13 的 luci-app-bypass 仓库到源码目录,可能与 SSR Plus+ 存在冲突 [Not tested]
|
||||||
|
|
||||||
INCLUDE_Latest_Xray 启用后,将自动更新 v2ray v2ray-plugin xray 到最新版本
|
INCLUDE_Latest_Xray 启用后,将自动更新 v2ray v2ray-plugin xray 到最新版本
|
||||||
|
|
||||||
|
@ -73,24 +73,32 @@
|
||||||
[更新 Makefile] Update_Makefile 软件包名 软件包路径 (仅支持部分软件包,自行测试)
|
[更新 Makefile] Update_Makefile 软件包名 软件包路径 (仅支持部分软件包,自行测试)
|
||||||
|
|
||||||
```
|
```
|
||||||
5. **手动启动编译**: 点击右上方 ***Star*** 即可开始编译,最好先同步我的改动~~以获得更多特性(bug)~~
|
5. **开始编译**: 点击右上方 ***Star***即可启动编译,最好同步我的最新改动以获得更多特性~~(BUG)~~
|
||||||
|
|
||||||
## 使用一键更新固件脚本:
|
## 使用一键更新固件脚本:
|
||||||
|
|
||||||
首先需要打开 Openwrt 主页,点击`系统`-`TTYD 终端`或者在浏览器输入`192.168.1.1:7681`,按需输入下方指令:
|
首先需要打开 Openwrt 主页,点击`系统`-`TTYD 终端`或者在浏览器输入`192.168.1.1:7681`,按需输入下方指令:
|
||||||
|
|
||||||
检查更新(保留配置): `bash /bin/AutoUpdate.sh`
|
检查并更新固件(保留配置): `bash /bin/AutoUpdate.sh`
|
||||||
|
|
||||||
检查更新(不保留配置): `bash /bin/AutoUpdate.sh -n`
|
检查并更新固件(不保留配置): `bash /bin/AutoUpdate.sh -n`
|
||||||
|
|
||||||
更新到最新稳定版(保留配置): `bash /bin/AutoUpdate.sh -s`
|
更新到最新稳定版(保留配置): `bash /bin/AutoUpdate.sh -s`
|
||||||
|
|
||||||
更新到最新稳定版(不保留配置): `bash /bin/AutoUpdate.sh -sn`
|
更新到最新稳定版(不保留配置): `bash /bin/AutoUpdate.sh -sn`
|
||||||
|
|
||||||
|
列出部分系统参数(用于反馈问题): `bash /bin/AutoUpdate.sh -l`
|
||||||
|
|
||||||
|
切换换检查更新/下载通道: `bash /bin/AutoUpdate.sh -c [地址]`
|
||||||
|
|
||||||
|
**注意: 一键更新固件需要在 Diy-Core() 函数中启用`INCLUDE_AutoUpdate`**
|
||||||
|
|
||||||
## 使用一键扩展内部空间\挂载 Samba 共享脚本:
|
## 使用一键扩展内部空间\挂载 Samba 共享脚本:
|
||||||
|
|
||||||
同上方操作,打开`TTYD 终端`,输入`bash /bin/AutoBuild_Tools.sh`
|
同上方操作,打开`TTYD 终端`,输入`bash /bin/AutoBuild_Tools.sh`
|
||||||
|
|
||||||
|
**注意: 使用此脚本需要在 Diy-Core() 函数中启用`INCLUDE_AutoBuild_Tools`**
|
||||||
|
|
||||||
## 鸣谢
|
## 鸣谢
|
||||||
|
|
||||||
- [Lean's Openwrt](https://github.com/coolsnowwolf/lede)
|
- [Lean's Openwrt](https://github.com/coolsnowwolf/lede)
|
||||||
|
@ -99,4 +107,4 @@
|
||||||
|
|
||||||
- [P3TERX's Blog](https://p3terx.com/archives/build-openwrt-with-github-actions.html)
|
- [P3TERX's Blog](https://p3terx.com/archives/build-openwrt-with-github-actions.html)
|
||||||
|
|
||||||
- 测试人员: [CurssedCoffin](https://github.com/CurssedCoffin) [Licsber](https://github.com/Licsber)
|
- 开发前期测试人员: [CurssedCoffin](https://github.com/CurssedCoffin) [Licsber](https://github.com/Licsber)
|
||||||
|
|
Loading…
Reference in New Issue