From 6ab0c045a26cacc4cfb05389c73e9d1c4fcb8783 Mon Sep 17 00:00:00 2001 From: sbwml <984419930@qq.com> Date: Wed, 23 Nov 2022 15:17:11 +0800 Subject: [PATCH] ci: drop 18.06 i18n --- .github/workflows/i18n-luci-18.06.yml | 49 --------------------------- README.md | 2 +- install.sh | 11 ++---- 3 files changed, 3 insertions(+), 59 deletions(-) delete mode 100644 .github/workflows/i18n-luci-18.06.yml diff --git a/.github/workflows/i18n-luci-18.06.yml b/.github/workflows/i18n-luci-18.06.yml deleted file mode 100644 index 108cf45..0000000 --- a/.github/workflows/i18n-luci-18.06.yml +++ /dev/null @@ -1,49 +0,0 @@ -name: i18n-luci-18.06 - -on: - release: - types: - - published - -jobs: - build: - name: Build openwrt-18.06 luci-i18n package - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - arch: - - x86_64 - - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Building packages - uses: sbwml/immortalwrt-gh-action-sdk@master - env: - ARCH: ${{ matrix.arch }}-openwrt-18.06-k5.4 - FEEDNAME: packages_ci - PACKAGES: luci-app-alist - NO_REFRESH_CHECK: true - - - name: Move created packages to project dir - run: | - cp bin/packages/${{ matrix.arch }}/packages_ci/*i18n*zh-cn*.ipk . || true - for i in `ls *.ipk`; do mv -f $i `echo "openwrt-18.06_"$i`; done - - - name: Store packages - uses: actions/upload-artifact@v3 - if: github.event_name != 'release' - with: - name: ${{ matrix.arch}}-${{ github.sha}}-packages - path: "*.ipk" - - - name: Upload packages - uses: ncipollo/release-action@v1 - with: - token: ${{ secrets.workflow_token }} - allowUpdates: true - replacesArtifacts: true - artifacts: "*.ipk" diff --git a/README.md b/README.md index b39506d..d4e9f30 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ A file list program that supports multiple storage. -------------- -## How to install prebuilt packages (OpenWrt 18-22 & master) +## How to install prebuilt packages (OpenWrt 21,22,master) - Login OpenWrt terminal (SSH) diff --git a/install.sh b/install.sh index 8f9e69e..829afc7 100644 --- a/install.sh +++ b/install.sh @@ -37,10 +37,7 @@ CHECK() ( echo -e "\r\n${GREEN_COLOR}Checking platform ...${RES}\r\n" prebuilt="aarch64_cortex-a53 aarch64_cortex-a72 aarch64_generic arm_arm1176jzf-s_vfp arm_arm926ej-s arm_cortex-a15_neon-vfpv4 arm_cortex-a5_vfpv4 arm_cortex-a7 arm_cortex-a7_neon-vfpv4 arm_cortex-a8_vfpv3 arm_cortex-a9 arm_cortex-a9_neon arm_cortex-a9_vfpv3-d16 arm_fa526 arm_mpcore arm_xscale i386_pentium-mmx i386_pentium4 mips64_octeonplus mips_24kc mips_4kec mips_mips32 mipsel_24kc mipsel_24kc_24kf mipsel_74kc mipsel_mips32 x86_64" verif=$(expr match "$prebuilt" ".*\($platform\)") - if [ "$version" != 18 -a "$version" != 19 -a "$version" != 21 -a "$version" != 22 ]; then - echo -e "${RED_COLOR}Error! OpenWrt \"$(cat /etc/os-release | grep VERSION_ID | awk -F "[\"\"]" '{print $2}')\" version is not supported.${RES}" - exit 1; - elif [[ ! $verif ]]; then + if [[ ! $verif ]]; then echo -e "${RED_COLOR}Error! The current \"$platform\" platform is not currently supported.${RES}" exit 1; else @@ -62,11 +59,7 @@ DOWNLOAD() ( alist=$(cat $TMPDIR/releases.txt | grep "browser_download_url" | grep $platform.ipk | head -1 | awk '{print $2}' | sed 's/\"//g') luci_app=$(cat $TMPDIR/releases.txt | grep "browser_download_url" | grep luci-app-alist_ | head -1 | awk '{print $2}' | sed 's/\"//g') - if [ "$version" = 18 ]; then - luci_i18n=$(cat $TMPDIR/releases.txt | grep "browser_download_url" | grep openwrt-18.06_luci-i18n-alist-zh-cn | head -1 | awk '{print $2}' | sed 's/\"//g') - else - luci_i18n=$(cat $TMPDIR/releases.txt | grep "browser_download_url" | grep luci-i18n-alist-zh-cn | head -1 | awk '{print $2}' | sed 's/\"//g') - fi + luci_i18n=$(cat $TMPDIR/releases.txt | grep "browser_download_url" | grep luci-i18n-alist-zh-cn | head -1 | awk '{print $2}' | sed 's/\"//g') # download echo -e "${GREEN_COLOR}Downloading $alist ...${RES}"