Skip to content

Commit

Permalink
Change to R3G
Browse files Browse the repository at this point in the history
  • Loading branch information
upbit authored Jun 12, 2020
1 parent d185237 commit 3ed4870
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions .github/workflows/build-padavan.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#修改TNAME: K2P-5.0 中的K2P-5.0为你需要编译的型号,注意名称要与configs/templates/目录下的名字相同
name: Build Padavan

on:
Expand All @@ -7,12 +6,10 @@ on:
push:
tags:
- 'v*'
# branches:
# - master
# schedule:
# - cron: 0 8 * * 5
watch:
types: [started]
# watch:
# types: [started]

jobs:
build:
Expand All @@ -38,7 +35,7 @@ jobs:
mkdir -p /opt/images/
- name: Build Firmware
env:
TNAME: K2P-5.0
TNAME: MI-R3G
run: |
cd /opt/rt-n56u/trunk
if [ ! -f configs/templates/$TNAME.config ] ; then
Expand Down Expand Up @@ -76,9 +73,9 @@ jobs:
echo "CONFIG_FIRMWARE_INCLUDE_FRPC=n" >> .config #内网穿透FRPC
echo "CONFIG_FIRMWARE_INCLUDE_FRPS=n" >> .config #内网穿透FRPS
echo "CONFIG_FIRMWARE_INCLUDE_TUNSAFE=n" >> .config #TUNSAFE
echo "CONFIG_FIRMWARE_INCLUDE_ALIDDNS=y" >> .config #阿里DDNS
echo "CONFIG_FIRMWARE_INCLUDE_SMARTDNS=y" >> .config #smartdns
echo "CONFIG_FIRMWARE_INCLUDE_SMARTDNSBIN=y" >> .config #smartdns二进制文件
echo "CONFIG_FIRMWARE_INCLUDE_ALIDDNS=n" >> .config #阿里DDNS
echo "CONFIG_FIRMWARE_INCLUDE_SMARTDNS=n" >> .config #smartdns
echo "CONFIG_FIRMWARE_INCLUDE_SMARTDNSBIN=n" >> .config #smartdns二进制文件
echo "CONFIG_FIRMWARE_INCLUDE_V2RAY=n" >> .config #集成v2ray执行文件(3.8M左右),如果不集成,会从网上下载下来执行,不影响正常使用
echo "CONFIG_FIRMWARE_INCLUDE_TROJAN=n" >> .config #集成trojan执行文件(1.1M左右),如果不集成,会从网上下载下来执行,不影响正常使用
echo "CONFIG_FIRMWARE_INCLUDE_KOOLPROXY=y" >> .config #KP广告过滤
Expand All @@ -94,6 +91,19 @@ jobs:
#格式如下:
#sed -i '/自定义项/d' .config
#echo "自定义项=y" >> .config
sed -i '/CONFIG_FIRMWARE_INCLUDE_XFRM/d' .config
echo "CONFIG_FIRMWARE_INCLUDE_XFRM=y" >> .config
sed -i '/CONFIG_FIRMWARE_INCLUDE_QOS/d' .config
echo "CONFIG_FIRMWARE_INCLUDE_QOS=y" >> .config
sed -i '/CONFIG_FIRMWARE_INCLUDE_NFSD/d' .config
echo "CONFIG_FIRMWARE_INCLUDE_NFSD=y" >> .config
sed -i '/CONFIG_FIRMWARE_INCLUDE_NFSC/d' .config
echo "CONFIG_FIRMWARE_INCLUDE_NFSC=y" >> .config
sed -i '/CONFIG_FIRMWARE_INCLUDE_LPRD/d' .config
echo "CONFIG_FIRMWARE_INCLUDE_LPRD=y" >> .config
sed -i '/CONFIG_FIRMWARE_INCLUDE_FTPD/d' .config
echo "CONFIG_FIRMWARE_INCLUDE_FTPD=n" >> .config
#########################################################################################
sudo ./clear_tree
sudo ./build_firmware_modify $TNAME 0
Expand Down

0 comments on commit 3ed4870

Please sign in to comment.