针对不同CPU架构改用不同版本upx
This commit is contained in:
15
.github/workflows/update_clash_core.yaml
vendored
15
.github/workflows/update_clash_core.yaml
vendored
@@ -16,11 +16,11 @@ jobs:
|
|||||||
- name: Clone Repository
|
- name: Clone Repository
|
||||||
uses: actions/checkout@main
|
uses: actions/checkout@main
|
||||||
- name: Init Dependencies
|
- name: Init Dependencies
|
||||||
env:
|
|
||||||
DEBIAN_FRONTEND: noninteractive
|
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
wget https://github.com/upx/upx/releases/download/v3.96/upx-3.96-amd64_linux.tar.xz
|
||||||
sudo apt-get install -y upx-ucl
|
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
|
- name: Download Core
|
||||||
run: |
|
run: |
|
||||||
archs="386 amd64 armv5 armv7 armv8 mips-softfloat mipsle-hardfloat mipsle-softfloat"
|
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}
|
wget "${download_url}/${download_version}/clash-linux-${arch}-${download_version}.gz" -O - | gunzip -c > ./tmp/clash-linux-${arch}
|
||||||
chmod +x ./tmp/clash-linux-${arch}
|
chmod +x ./tmp/clash-linux-${arch}
|
||||||
if [ "${arch}" != "armv5" ];then
|
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
|
fi
|
||||||
done
|
done
|
||||||
|
rm -fr upx*
|
||||||
- name: Update
|
- name: Update
|
||||||
run: |
|
run: |
|
||||||
rm -fr ./bin/clash/*
|
rm -fr ./bin/clash/*
|
||||||
|
|||||||
15
.github/workflows/update_dotnet_core.yaml
vendored
15
.github/workflows/update_dotnet_core.yaml
vendored
@@ -16,11 +16,11 @@ jobs:
|
|||||||
- name: Clone Repository
|
- name: Clone Repository
|
||||||
uses: actions/checkout@main
|
uses: actions/checkout@main
|
||||||
- name: Init Dependencies
|
- name: Init Dependencies
|
||||||
env:
|
|
||||||
DEBIAN_FRONTEND: noninteractive
|
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
wget https://github.com/upx/upx/releases/download/v3.96/upx-3.96-amd64_linux.tar.xz
|
||||||
sudo apt-get install -y upx-ucl
|
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
|
- name: Download Core
|
||||||
run: |
|
run: |
|
||||||
archs="386 amd64 armv5 armv7 armv8 mips-softfloat mipsle-hardfloat mipsle-softfloat"
|
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}
|
wget "${download_url}/${download_version}/clash-linux-${arch}-${download_version}.gz" -O - | gunzip -c > ./tmp/clash-linux-${arch}
|
||||||
chmod +x ./tmp/clash-linux-${arch}
|
chmod +x ./tmp/clash-linux-${arch}
|
||||||
if [ "${arch}" != "armv5" ];then
|
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
|
fi
|
||||||
done
|
done
|
||||||
|
rm -fr upx*
|
||||||
- name: Update
|
- name: Update
|
||||||
run: |
|
run: |
|
||||||
rm -fr ./bin/clash.net/*
|
rm -fr ./bin/clash.net/*
|
||||||
|
|||||||
15
.github/workflows/update_meta_core.yaml
vendored
15
.github/workflows/update_meta_core.yaml
vendored
@@ -17,11 +17,11 @@ jobs:
|
|||||||
- name: Clone Repository
|
- name: Clone Repository
|
||||||
uses: actions/checkout@main
|
uses: actions/checkout@main
|
||||||
- name: Init Dependencies
|
- name: Init Dependencies
|
||||||
env:
|
|
||||||
DEBIAN_FRONTEND: noninteractive
|
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
wget https://github.com/upx/upx/releases/download/v3.96/upx-3.96-amd64_linux.tar.xz
|
||||||
sudo apt-get install -y upx-ucl
|
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
|
- name: Download Core
|
||||||
run: |
|
run: |
|
||||||
if [ "${download_tag}" = "Prerelease-Alpha" ] || [ "${download_tag}" = "Prerelease-Beta" ];then
|
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]}
|
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]}
|
chmod +x ./tmp/clash-linux-${new_name[i]}
|
||||||
if [ "${archs[i]}" != "armv5" ];then
|
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
|
fi
|
||||||
done
|
done
|
||||||
|
rm -fr upx*
|
||||||
- name: Update
|
- name: Update
|
||||||
run: |
|
run: |
|
||||||
rm -fr ./bin/clash.meta/*
|
rm -fr ./bin/clash.meta/*
|
||||||
|
|||||||
15
.github/workflows/update_prenium_core.yaml
vendored
15
.github/workflows/update_prenium_core.yaml
vendored
@@ -16,11 +16,11 @@ jobs:
|
|||||||
- name: Clone Repository
|
- name: Clone Repository
|
||||||
uses: actions/checkout@main
|
uses: actions/checkout@main
|
||||||
- name: Init Dependencies
|
- name: Init Dependencies
|
||||||
env:
|
|
||||||
DEBIAN_FRONTEND: noninteractive
|
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
wget https://github.com/upx/upx/releases/download/v3.96/upx-3.96-amd64_linux.tar.xz
|
||||||
sudo apt-get install -y upx-ucl
|
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
|
- name: Download Core
|
||||||
run: |
|
run: |
|
||||||
archs="386 amd64 armv5 armv7 armv8 mips-softfloat mipsle-hardfloat mipsle-softfloat"
|
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}
|
wget "${download_url}/${download_version}/clash-linux-${arch}-${download_version}.gz" -O - | gunzip -c > ./tmp/clash-linux-${arch}
|
||||||
chmod +x ./tmp/clash-linux-${arch}
|
chmod +x ./tmp/clash-linux-${arch}
|
||||||
if [ "${arch}" != "armv5" ];then
|
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
|
fi
|
||||||
done
|
done
|
||||||
|
rm -fr upx*
|
||||||
- name: Update
|
- name: Update
|
||||||
run: |
|
run: |
|
||||||
rm -fr ./bin/clashpre/*
|
rm -fr ./bin/clashpre/*
|
||||||
|
|||||||
Reference in New Issue
Block a user