build: use self-hosted package feeds
This commit is contained in:
2
.github/workflows/lo-test.yml
vendored
2
.github/workflows/lo-test.yml
vendored
@@ -200,7 +200,7 @@ jobs:
|
|||||||
make target/linux/compile -j$(($(nproc) + 1))
|
make target/linux/compile -j$(($(nproc) + 1))
|
||||||
make package/compile -j$(($(nproc) + 1)) IGNORE_ERRORS=y
|
make package/compile -j$(($(nproc) + 1)) IGNORE_ERRORS=y
|
||||||
make package/index
|
make package/index
|
||||||
sed "s/\-[a-z0-9]\{32\})/)/" bin/targets/*/*/packages/Packages bin/targets/*/*/packages/Packages.manifest
|
sed -i "s/\-[a-z0-9]\{32\})/)/" bin/targets/*/*/packages/Packages bin/targets/*/*/packages/Packages.manifest
|
||||||
gzip -f bin/targets/*/*/packages/Packages
|
gzip -f bin/targets/*/*/packages/Packages
|
||||||
mkdir -p ~/.ssh; echo ${{env.DEPLOY_SSHKEY}} | base64 -d > ~/.ssh/id_ed25519; chmod 600 ~/.ssh/id_ed25519
|
mkdir -p ~/.ssh; echo ${{env.DEPLOY_SSHKEY}} | base64 -d > ~/.ssh/id_ed25519; chmod 600 ~/.ssh/id_ed25519
|
||||||
rsync -ach --progress -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" \
|
rsync -ach --progress -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" \
|
||||||
|
|||||||
4
files/etc/opkg/distfeeds.conf
Normal file
4
files/etc/opkg/distfeeds.conf
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
src/gz immortalwrt_core https://imgxxx.net/DEVICE/core/
|
||||||
|
src/gz immortalwrt_base https://imgxxx.net/DEVICE/base/
|
||||||
|
src/gz immortalwrt_luci https://imgxxx.net/DEVICE/luci/
|
||||||
|
src/gz immortalwrt_packages https://imgxxx.net/DEVICE/packages/
|
||||||
@@ -9,13 +9,12 @@ sed -i "s/option sfe_flow '1'/option sfe_flow '0'/" package/ctcgfw/luci-app-turb
|
|||||||
sed -i "s/option sfe_bridge '1'/option sfe_bridge '0'/" package/ctcgfw/luci-app-turboacc/root/etc/config/turboacc
|
sed -i "s/option sfe_bridge '1'/option sfe_bridge '0'/" package/ctcgfw/luci-app-turboacc/root/etc/config/turboacc
|
||||||
sed -i "/INCLUDE_shortcut-fe=n/d" package/ctcgfw/luci-app-turboacc/Makefile
|
sed -i "/INCLUDE_shortcut-fe=n/d" package/ctcgfw/luci-app-turboacc/Makefile
|
||||||
|
|
||||||
sed '/Installed-Time/a\sed "s/\-[a-z0-9]\{32\})/)/" $(1)/usr/lib/opkg/status\' include/rootfs.mk
|
sed -i '/Installed-Time/a\sed -i "s/\\(\d\)-[a-z0-9]\{32\}/\1/" $(1)/usr/lib/opkg/status\' include/rootfs.mk
|
||||||
|
|
||||||
find . -type f -name nft-qos.config | xargs sed -i "s/option limit_enable '1'/option limit_enable '0'/"
|
find . -type f -name nft-qos.config | xargs sed -i "s/option limit_enable '1'/option limit_enable '0'/"
|
||||||
sed -i "/\/etc\/coremark\.sh/d" package/feeds/packages/coremark/Makefile
|
sed -i "/\/etc\/coremark\.sh/d" package/feeds/packages/coremark/Makefile
|
||||||
sed -i 's/192.168.1.1/192.168.2.1/' package/base-files/files/bin/config_generate
|
sed -i 's/192.168.1.1/192.168.2.1/' package/base-files/files/bin/config_generate
|
||||||
|
|
||||||
rm -rf files && mkdir files
|
rm -rf files
|
||||||
mkdir -p files/etc/dropbear
|
mv $GITHUB_WORKSPACE/files ./
|
||||||
mv $GITHUB_WORKSPACE/host_keys/* files/etc/dropbear/
|
|
||||||
chmod 600 files/etc/dropbear/*
|
chmod 600 files/etc/dropbear/*
|
||||||
|
sed -i "s/DEVICE/$DEVICE/" files/etc/opkg/distfeeds.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user