From 56152a87ab46a1b1639db4f8c52f43cc0bf0b422 Mon Sep 17 00:00:00 2001 From: RikudouPatrickstar <68163551+RikudouPatrickstar@users.noreply.github.com> Date: Thu, 2 Jun 2022 21:36:10 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E5=BA=93=E6=9D=A5=E6=BA=90URL=E3=80=81=E5=8F=96=E6=B6=88?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=86=85=E6=A0=B8=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/bin_update.yml | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/.github/workflows/bin_update.yml b/.github/workflows/bin_update.yml index ac15d6a..df8786d 100644 --- a/.github/workflows/bin_update.yml +++ b/.github/workflows/bin_update.yml @@ -83,27 +83,19 @@ jobs: run: | cd \bin source version - curl -kfSL -O https://cdn.jsdelivr.net/gh/alecthw/mmdb_china_ip_list@release/Country.mmdb - curl -kfSL -o cn_mini.mmdb https://cdn.jsdelivr.net/gh/Hackl0us/GeoIP2-CN@release/Country.mmdb - curl -kfSL -o china_ip_list.txt https://cdn.jsdelivr.net/gh/17mon/china_ip_list@master/china_ip_list.txt - curl -kfSL -O https://cdn.jsdelivr.net/gh/P3TERX/ca-certificates.crt@download/ca-certificates.crt - curl -kfSL -O https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/geosite.dat + curl -kfSL -O https://raw.githubusercontent.com/alecthw/mmdb_china_ip_list/release/Country.mmdb + curl -kfSL -o cn_mini.mmdb https://raw.githubusercontent.com/Hackl0us/GeoIP2-CN/release/Country.mmdb + curl -kfSL -o china_ip_list.txt https://raw.githubusercontent.com/17mon/china_ip_list/master/china_ip_list.txt + curl -kfSL -O https://raw.githubusercontent.com/P3TERX/ca-certificates.crt/download/ca-certificates.crt + curl -kfSL -O https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/geosite.dat sed -i '/GeoIP_v*/'d version echo GeoIP_v=`date '+%Y%m%d'` >> version echo IP数据库及根证书文件更新完成! - - - name: Update Core Version Info - run: | - chmod -R +x bin/clash*/ - sed -i "s/meta_v=.*/meta_v=$(./bin/clash.meta/clash-linux-amd64 -v 2>/dev/null | sed 's/ linux.*//;s/.* //')/" bin/version - sed -i "s/clashnet_v=.*/clashnet_v=$(./bin/clash.net/clash-linux-amd64 -v 2>/dev/null | sed 's/ linux.*//;s/.* //')/" bin/version - sed -i "s/clash_v=.*/clash_v=$(./bin/clash/clash-linux-amd64 -v 2>/dev/null | sed 's/ linux.*//;s/.* //')/" bin/version - sed -i "s/clashpre_v=.*/clashpre_v=$(./bin/clashpre/clash-linux-amd64 -v 2>/dev/null | sed 's/ linux.*//;s/.* //')/" bin/version - + - name: Commit and push run: | git config --global user.email "juewuy@gmail.com" && git config --global user.name "Bot" - git add . && git commit -m "自动更新最新Dashboard、地址库、根证书以及内核版本信息" || exit 0 + git add . && git commit -m "自动更新最新Dashboard、地址库、根证书" || exit 0 git push - name: Cleanup Workflow From 8cff44a6852f4241ddc96312c14ebc9620ea1bc8 Mon Sep 17 00:00:00 2001 From: RikudouPatrickstar <68163551+RikudouPatrickstar@users.noreply.github.com> Date: Thu, 2 Jun 2022 21:36:41 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9B=B4=E6=96=B0Clash?= =?UTF-8?q?=E5=86=85=E6=A0=B8=E7=9A=84workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/update_clash_core.yaml | 46 ++++++++++++++++++ .github/workflows/update_dotnet_core.yaml | 46 ++++++++++++++++++ .github/workflows/update_meta_core.yaml | 54 ++++++++++++++++++++++ .github/workflows/update_prenium_core.yaml | 46 ++++++++++++++++++ 4 files changed, 192 insertions(+) create mode 100644 .github/workflows/update_clash_core.yaml create mode 100644 .github/workflows/update_dotnet_core.yaml create mode 100644 .github/workflows/update_meta_core.yaml create mode 100644 .github/workflows/update_prenium_core.yaml diff --git a/.github/workflows/update_clash_core.yaml b/.github/workflows/update_clash_core.yaml new file mode 100644 index 0000000..a0bd4bf --- /dev/null +++ b/.github/workflows/update_clash_core.yaml @@ -0,0 +1,46 @@ +name: Update Clash Core +on: + workflow_dispatch: + inputs: + version: + description: 'version of Clash, such as v1.10.6' + required: true + type: string +env: + download_version: ${{ github.event.inputs.version }} + download_url: https://github.com/Dreamacro/clash/releases/download +jobs: + Update: + runs-on: ubuntu-latest + steps: + - name: Clone Repository + uses: actions/checkout@main + - name: Init Dependencies + env: + DEBIAN_FRONTEND: noninteractive + run: | + sudo apt-get update + sudo apt-get install -y upx-ucl + - name: Download Core + run: | + archs="386 amd64 armv5 armv7 armv8 mips-softfloat mipsle-hardfloat mipsle-softfloat" + mkdir tmp + for arch in ${archs};do + wget "${download_url}/${download_version}/clash-linux-${arch}-${download_version}.gz" -O - | gunzip -c > ./tmp/clash-linux-${arch} + chmod +x ./tmp/clash-linux-${arch} + if [ "${arch}" != "armv5" ];then + upx ./tmp/clash-linux-${arch} + fi + done + - name: Update + run: | + rm -fr ./bin/clash/* + cp ./tmp/* ./bin/clash/ + rm -fr ./tmp + sed -i "s/clash_v=.*/clash_v=$(./bin/clash/clash-linux-amd64 -v 2>/dev/null | sed 's/ linux.*//;s/.* //')/" bin/version + - name: Commit and push + run: | + git config --global user.email "juewuy@gmail.com" && git config --global user.name "Bot" + git add . && git commit -m "更新Clash内核至${download_version}" || exit 0 + git push + diff --git a/.github/workflows/update_dotnet_core.yaml b/.github/workflows/update_dotnet_core.yaml new file mode 100644 index 0000000..d751ea2 --- /dev/null +++ b/.github/workflows/update_dotnet_core.yaml @@ -0,0 +1,46 @@ +name: Update DotNet Core +on: + workflow_dispatch: + inputs: + version: + description: 'version of Clash DotNet, such as v1.7.6' + required: true + type: string +env: + download_version: ${{ github.event.inputs.version }} + download_url: https://github.com/ClashDotNetFramework/experimental-clash/releases/download +jobs: + Update: + runs-on: ubuntu-latest + steps: + - name: Clone Repository + uses: actions/checkout@main + - name: Init Dependencies + env: + DEBIAN_FRONTEND: noninteractive + run: | + sudo apt-get update + sudo apt-get install -y upx-ucl + - name: Download Core + run: | + archs="386 amd64 armv5 armv7 armv8 mips-softfloat mipsle-hardfloat mipsle-softfloat" + mkdir tmp + for arch in ${archs};do + wget "${download_url}/${download_version}/clash-linux-${arch}-${download_version}.gz" -O - | gunzip -c > ./tmp/clash-linux-${arch} + chmod +x ./tmp/clash-linux-${arch} + if [ "${arch}" != "armv5" ];then + upx ./tmp/clash-linux-${arch} + fi + done + - name: Update + run: | + rm -fr ./bin/clash.net/* + cp ./tmp/* ./bin/clash.net/ + rm -fr ./tmp + sed -i "s/clashnet_v=.*/clashnet_v=$(./bin/clash.net/clash-linux-amd64 -v 2>/dev/null | sed 's/ linux.*//;s/.* //')/" bin/version + - name: Commit and push + run: | + git config --global user.email "juewuy@gmail.com" && git config --global user.name "Bot" + git add . && git commit -m "更新DotNet内核至${download_version}" || exit 0 + git push + diff --git a/.github/workflows/update_meta_core.yaml b/.github/workflows/update_meta_core.yaml new file mode 100644 index 0000000..864226c --- /dev/null +++ b/.github/workflows/update_meta_core.yaml @@ -0,0 +1,54 @@ +name: Update Meta Core +on: + workflow_dispatch: + inputs: + tag: + description: 'tag of Clash Meta, such as Prerelease-Alpha, Prerelease-Beta, v1.11.1' + required: true + type: string +env: + download_tag: ${{ github.event.inputs.tag }} + download_version: '' + download_url: https://github.com/MetaCubeX/Clash.Meta/releases/download +jobs: + Update: + runs-on: ubuntu-latest + steps: + - name: Clone Repository + uses: actions/checkout@main + - name: Init Dependencies + env: + DEBIAN_FRONTEND: noninteractive + run: | + sudo apt-get update + sudo apt-get install -y upx-ucl + - name: Download Core + run: | + if [ "${download_tag}" = "Prerelease-Alpha" ] || [ "${download_tag}" = "Prerelease-Beta" ];then + download_version=$(curl -sL https://api.github.com/repos/MetaCubeX/Clash.Meta/releases/tags/${download_tag} | grep linux-arm64 | head -n 1 | sed 's_.gz.*__;s_.*arm64-__') + else + download_version=${download_tag} + fi + echo "download_version=${download_version}" >> ${GITHUB_ENV} + archs=(amd64v1 armv5 armv7 arm64 mips-softfloat mipsle-hardfloat mipsle-softfloat) + new_name=(amd64 armv5 armv7 armv8 mips-softfloat mipsle-hardfloat mipsle-softfloat) + mkdir tmp + for((i=0;i<7;i++));do + wget "${download_url}/${download_tag}/Clash.Meta-linux-${archs[i]}-${download_version}.gz" -O - | gunzip -c > ./tmp/clash-linux-${new_name[i]} + chmod +x ./tmp/clash-linux-${new_name[i]} + if [ "${archs[i]}" != "armv5" ];then + upx ./tmp/clash-linux-${new_name[i]} + fi + done + - name: Update + run: | + rm -fr ./bin/clash.meta/* + cp ./tmp/* ./bin/clash.meta/ + rm -fr ./tmp + sed -i "s/meta_v=.*/meta_v=$(./bin/clash.meta/clash-linux-amd64 -v 2>/dev/null | sed 's/ linux.*//;s/.* //')/" bin/version + - name: Commit and push + run: | + git config --global user.email "juewuy@gmail.com" && git config --global user.name "Bot" + git add . && git commit -m "更新Meta内核至${download_version}" || exit 0 + git push + diff --git a/.github/workflows/update_prenium_core.yaml b/.github/workflows/update_prenium_core.yaml new file mode 100644 index 0000000..ae223bd --- /dev/null +++ b/.github/workflows/update_prenium_core.yaml @@ -0,0 +1,46 @@ +name: Update Premium Core +on: + workflow_dispatch: + inputs: + version: + description: 'version of Clash Premium, such as 2022.05.18' + required: true + type: string +env: + download_version: ${{ github.event.inputs.version }} + download_url: https://release.dreamacro.workers.dev +jobs: + Update: + runs-on: ubuntu-latest + steps: + - name: Clone Repository + uses: actions/checkout@main + - name: Init Dependencies + env: + DEBIAN_FRONTEND: noninteractive + run: | + sudo apt-get update + sudo apt-get install -y upx-ucl + - name: Download Core + run: | + archs="386 amd64 armv5 armv7 armv8 mips-softfloat mipsle-hardfloat mipsle-softfloat" + mkdir tmp + for arch in ${archs};do + wget "${download_url}/${download_version}/clash-linux-${arch}-${download_version}.gz" -O - | gunzip -c > ./tmp/clash-linux-${arch} + chmod +x ./tmp/clash-linux-${arch} + if [ "${arch}" != "armv5" ];then + upx ./tmp/clash-linux-${arch} + fi + done + - name: Update + run: | + rm -fr ./bin/clashpre/* + cp ./tmp/* ./bin/clashpre/ + rm -fr ./tmp + sed -i "s/clashpre_v=.*/clashpre_v=$(./bin/clashpre/clash-linux-amd64 -v 2>/dev/null | sed 's/ linux.*//;s/.* //')/" bin/version + - name: Commit and push + run: | + git config --global user.email "juewuy@gmail.com" && git config --global user.name "Bot" + git add . && git commit -m "更新Premium内核至${download_version}" || exit 0 + git push + From 82de94101714f19919d30242411285d6576b6efb Mon Sep 17 00:00:00 2001 From: RikudouPatrickstar <68163551+RikudouPatrickstar@users.noreply.github.com> Date: Thu, 2 Jun 2022 22:35:19 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E9=92=88=E5=AF=B9=E4=B8=8D=E5=90=8CCPU?= =?UTF-8?q?=E6=9E=B6=E6=9E=84=E6=94=B9=E7=94=A8=E4=B8=8D=E5=90=8C=E7=89=88?= =?UTF-8?q?=E6=9C=ACupx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/update_clash_core.yaml | 15 ++++++++++----- .github/workflows/update_dotnet_core.yaml | 15 ++++++++++----- .github/workflows/update_meta_core.yaml | 15 ++++++++++----- .github/workflows/update_prenium_core.yaml | 15 ++++++++++----- 4 files changed, 40 insertions(+), 20 deletions(-) diff --git a/.github/workflows/update_clash_core.yaml b/.github/workflows/update_clash_core.yaml index a0bd4bf..020911e 100644 --- a/.github/workflows/update_clash_core.yaml +++ b/.github/workflows/update_clash_core.yaml @@ -16,11 +16,11 @@ jobs: - name: Clone Repository uses: actions/checkout@main - name: Init Dependencies - env: - DEBIAN_FRONTEND: noninteractive run: | - sudo apt-get update - sudo apt-get install -y upx-ucl + wget https://github.com/upx/upx/releases/download/v3.96/upx-3.96-amd64_linux.tar.xz + wget https://github.com/upx/upx/releases/download/v3.93/upx-3.93-amd64_linux.tar.xz + tar xf upx-3.96-amd64_linux.tar.xz + tar xf upx-3.93-amd64_linux.tar.xz - name: Download Core run: | archs="386 amd64 armv5 armv7 armv8 mips-softfloat mipsle-hardfloat mipsle-softfloat" @@ -29,9 +29,14 @@ jobs: wget "${download_url}/${download_version}/clash-linux-${arch}-${download_version}.gz" -O - | gunzip -c > ./tmp/clash-linux-${arch} chmod +x ./tmp/clash-linux-${arch} if [ "${arch}" != "armv5" ];then - upx ./tmp/clash-linux-${arch} + if [ "${arch}" = "mips-softfloat" ];then + ./upx-3.93-amd64_linux/upx ./tmp/clash-linux-${arch} + else + ./upx-3.96-amd64_linux/upx ./tmp/clash-linux-${arch} + fi fi done + rm -fr upx* - name: Update run: | rm -fr ./bin/clash/* diff --git a/.github/workflows/update_dotnet_core.yaml b/.github/workflows/update_dotnet_core.yaml index d751ea2..5945eba 100644 --- a/.github/workflows/update_dotnet_core.yaml +++ b/.github/workflows/update_dotnet_core.yaml @@ -16,11 +16,11 @@ jobs: - name: Clone Repository uses: actions/checkout@main - name: Init Dependencies - env: - DEBIAN_FRONTEND: noninteractive run: | - sudo apt-get update - sudo apt-get install -y upx-ucl + wget https://github.com/upx/upx/releases/download/v3.96/upx-3.96-amd64_linux.tar.xz + wget https://github.com/upx/upx/releases/download/v3.93/upx-3.93-amd64_linux.tar.xz + tar xf upx-3.96-amd64_linux.tar.xz + tar xf upx-3.93-amd64_linux.tar.xz - name: Download Core run: | archs="386 amd64 armv5 armv7 armv8 mips-softfloat mipsle-hardfloat mipsle-softfloat" @@ -29,9 +29,14 @@ jobs: wget "${download_url}/${download_version}/clash-linux-${arch}-${download_version}.gz" -O - | gunzip -c > ./tmp/clash-linux-${arch} chmod +x ./tmp/clash-linux-${arch} if [ "${arch}" != "armv5" ];then - upx ./tmp/clash-linux-${arch} + if [ "${arch}" = "mips-softfloat" ];then + ./upx-3.93-amd64_linux/upx ./tmp/clash-linux-${arch} + else + ./upx-3.96-amd64_linux/upx ./tmp/clash-linux-${arch} + fi fi done + rm -fr upx* - name: Update run: | rm -fr ./bin/clash.net/* diff --git a/.github/workflows/update_meta_core.yaml b/.github/workflows/update_meta_core.yaml index 864226c..c779213 100644 --- a/.github/workflows/update_meta_core.yaml +++ b/.github/workflows/update_meta_core.yaml @@ -17,11 +17,11 @@ jobs: - name: Clone Repository uses: actions/checkout@main - name: Init Dependencies - env: - DEBIAN_FRONTEND: noninteractive run: | - sudo apt-get update - sudo apt-get install -y upx-ucl + wget https://github.com/upx/upx/releases/download/v3.96/upx-3.96-amd64_linux.tar.xz + wget https://github.com/upx/upx/releases/download/v3.93/upx-3.93-amd64_linux.tar.xz + tar xf upx-3.96-amd64_linux.tar.xz + tar xf upx-3.93-amd64_linux.tar.xz - name: Download Core run: | if [ "${download_tag}" = "Prerelease-Alpha" ] || [ "${download_tag}" = "Prerelease-Beta" ];then @@ -37,9 +37,14 @@ jobs: wget "${download_url}/${download_tag}/Clash.Meta-linux-${archs[i]}-${download_version}.gz" -O - | gunzip -c > ./tmp/clash-linux-${new_name[i]} chmod +x ./tmp/clash-linux-${new_name[i]} if [ "${archs[i]}" != "armv5" ];then - upx ./tmp/clash-linux-${new_name[i]} + if [ "${archs[i]}" = "mips-softfloat" ];then + ./upx-3.93-amd64_linux/upx ./tmp/clash-linux-${new_name[i]} + else + ./upx-3.96-amd64_linux/upx ./tmp/clash-linux-${new_name[i]} + fi fi done + rm -fr upx* - name: Update run: | rm -fr ./bin/clash.meta/* diff --git a/.github/workflows/update_prenium_core.yaml b/.github/workflows/update_prenium_core.yaml index ae223bd..ada90ad 100644 --- a/.github/workflows/update_prenium_core.yaml +++ b/.github/workflows/update_prenium_core.yaml @@ -16,11 +16,11 @@ jobs: - name: Clone Repository uses: actions/checkout@main - name: Init Dependencies - env: - DEBIAN_FRONTEND: noninteractive run: | - sudo apt-get update - sudo apt-get install -y upx-ucl + wget https://github.com/upx/upx/releases/download/v3.96/upx-3.96-amd64_linux.tar.xz + wget https://github.com/upx/upx/releases/download/v3.93/upx-3.93-amd64_linux.tar.xz + tar xf upx-3.96-amd64_linux.tar.xz + tar xf upx-3.93-amd64_linux.tar.xz - name: Download Core run: | archs="386 amd64 armv5 armv7 armv8 mips-softfloat mipsle-hardfloat mipsle-softfloat" @@ -29,9 +29,14 @@ jobs: wget "${download_url}/${download_version}/clash-linux-${arch}-${download_version}.gz" -O - | gunzip -c > ./tmp/clash-linux-${arch} chmod +x ./tmp/clash-linux-${arch} if [ "${arch}" != "armv5" ];then - upx ./tmp/clash-linux-${arch} + if [ "${arch}" = "mips-softfloat" ];then + ./upx-3.93-amd64_linux/upx ./tmp/clash-linux-${arch} + else + ./upx-3.96-amd64_linux/upx ./tmp/clash-linux-${arch} + fi fi done + rm -fr upx* - name: Update run: | rm -fr ./bin/clashpre/* From 97950d39c3da3c3cdd5fd00e5fcb7facc4d220ec Mon Sep 17 00:00:00 2001 From: RikudouPatrickstar <68163551+RikudouPatrickstar@users.noreply.github.com> Date: Thu, 2 Jun 2022 22:57:32 +0800 Subject: [PATCH 4/4] =?UTF-8?q?mips=20mipsle=E5=9D=87=E6=94=B9=E7=94=A83.9?= =?UTF-8?q?3=E7=89=88upx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/update_clash_core.yaml | 2 +- .github/workflows/update_dotnet_core.yaml | 2 +- .github/workflows/update_meta_core.yaml | 2 +- .github/workflows/update_prenium_core.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update_clash_core.yaml b/.github/workflows/update_clash_core.yaml index 020911e..6d993ae 100644 --- a/.github/workflows/update_clash_core.yaml +++ b/.github/workflows/update_clash_core.yaml @@ -29,7 +29,7 @@ jobs: wget "${download_url}/${download_version}/clash-linux-${arch}-${download_version}.gz" -O - | gunzip -c > ./tmp/clash-linux-${arch} chmod +x ./tmp/clash-linux-${arch} if [ "${arch}" != "armv5" ];then - if [ "${arch}" = "mips-softfloat" ];then + if [[ ${arch} == mips* ]];then ./upx-3.93-amd64_linux/upx ./tmp/clash-linux-${arch} else ./upx-3.96-amd64_linux/upx ./tmp/clash-linux-${arch} diff --git a/.github/workflows/update_dotnet_core.yaml b/.github/workflows/update_dotnet_core.yaml index 5945eba..7641078 100644 --- a/.github/workflows/update_dotnet_core.yaml +++ b/.github/workflows/update_dotnet_core.yaml @@ -29,7 +29,7 @@ jobs: wget "${download_url}/${download_version}/clash-linux-${arch}-${download_version}.gz" -O - | gunzip -c > ./tmp/clash-linux-${arch} chmod +x ./tmp/clash-linux-${arch} if [ "${arch}" != "armv5" ];then - if [ "${arch}" = "mips-softfloat" ];then + if [[ ${arch} == mips* ]];then ./upx-3.93-amd64_linux/upx ./tmp/clash-linux-${arch} else ./upx-3.96-amd64_linux/upx ./tmp/clash-linux-${arch} diff --git a/.github/workflows/update_meta_core.yaml b/.github/workflows/update_meta_core.yaml index c779213..8a281a5 100644 --- a/.github/workflows/update_meta_core.yaml +++ b/.github/workflows/update_meta_core.yaml @@ -37,7 +37,7 @@ jobs: wget "${download_url}/${download_tag}/Clash.Meta-linux-${archs[i]}-${download_version}.gz" -O - | gunzip -c > ./tmp/clash-linux-${new_name[i]} chmod +x ./tmp/clash-linux-${new_name[i]} if [ "${archs[i]}" != "armv5" ];then - if [ "${archs[i]}" = "mips-softfloat" ];then + if [[ ${archs[i]} = mips* ]];then ./upx-3.93-amd64_linux/upx ./tmp/clash-linux-${new_name[i]} else ./upx-3.96-amd64_linux/upx ./tmp/clash-linux-${new_name[i]} diff --git a/.github/workflows/update_prenium_core.yaml b/.github/workflows/update_prenium_core.yaml index ada90ad..8ae65ff 100644 --- a/.github/workflows/update_prenium_core.yaml +++ b/.github/workflows/update_prenium_core.yaml @@ -29,7 +29,7 @@ jobs: wget "${download_url}/${download_version}/clash-linux-${arch}-${download_version}.gz" -O - | gunzip -c > ./tmp/clash-linux-${arch} chmod +x ./tmp/clash-linux-${arch} if [ "${arch}" != "armv5" ];then - if [ "${arch}" = "mips-softfloat" ];then + if [[ ${arch} == mips* ]];then ./upx-3.93-amd64_linux/upx ./tmp/clash-linux-${arch} else ./upx-3.96-amd64_linux/upx ./tmp/clash-linux-${arch}