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] =?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/*