KFERMercer / OpenWrt-CI

OpenWrt CI 在线集成自动编译环境
MIT License
1.41k stars 5.92k forks source link

如何在编译中加入OpenClash或直接加入ipk与文件 #39

Closed HinataKato closed 4 years ago

HinataKato commented 4 years ago

https://github.com/vernesong/OpenClash 需要先编译工具po2lmo,试过直接在Action的任务里面 git clone 然后EOF回环里面加luci-app-openclash,并不会编译出来

HinataKato commented 4 years ago

已解决 加入

后在下面的EOF回环里面加入 CONFIG_PACKAGE_luci-app-openclash=y

KFERMercer commented 4 years ago

看了下, 确实需要提前编好po2lmo

jif739519 commented 4 years ago
name: 编译po2lmo
run: |
mkdir package/luci-app-openclash
cd package/luci-app-openclash
git init
git remote add -f origin https://github.com/vernesong/OpenClash.git
git config core.sparsecheckout true
echo "luci-app-openclash" >> .git/info/sparse-checkout
git pull origin master
git branch --set-upstream-to=origin/master master
pushd luci-app-openclash/tools/po2lmo
make && sudo make install
popd
后在下面的EOF回环里面加入
CONFIG_PACKAGE_luci-app-openclash=y

大佬,求帮助。 上面这些代码应该加在下面这个文件的什么位置? https://github.com/KFERMercer/OpenWrt-CI/blob/master/openwrt-ci.yml