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/*