mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-02-09 01:59:16 +08:00
2
.github/workflows/build-nightly-release.yml
vendored
2
.github/workflows/build-nightly-release.yml
vendored
@@ -44,7 +44,7 @@ jobs:
|
||||
fi
|
||||
|
||||
if [[ "$compile_target" == "mips-"* || "$compile_target" == "mipsel-"* || "$compile_target" == "mips64-"* || "$compile_target" == "mips64el-"* ]]; then
|
||||
wget -q https://github.com/upx/upx/releases/download/v4.0.2/upx-4.0.2-amd64_linux.tar.xz -O /tmp/upx-4.0.2.tar.xz&&mkdir -p /tmp/upx&&xz -d -c /tmp/upx-4.0.2.tar.xz | tar -x -C /tmp/upx; chmod +x /tmp/upx/upx-4.0.2-amd64_linux/upx&&export PATH=/tmp/upx/upx-4.0.2-amd64_linux:$PATH;
|
||||
sudo apt-get update -y && sudo apt-get install -y upx;
|
||||
if [[ "$?" == "0" ]]; then
|
||||
compile_compress="-u"
|
||||
fi
|
||||
|
||||
2
.github/workflows/build-release.yml
vendored
2
.github/workflows/build-release.yml
vendored
@@ -55,7 +55,7 @@ jobs:
|
||||
fi
|
||||
|
||||
if [[ "$compile_target" == "mips-"* || "$compile_target" == "mipsel-"* || "$compile_target" == "mips64-"* || "$compile_target" == "mips64el-"* ]]; then
|
||||
wget -q https://github.com/upx/upx/releases/download/v4.0.2/upx-4.0.2-amd64_linux.tar.xz -O /tmp/upx-4.0.2.tar.xz&&mkdir -p /tmp/upx&&xz -d -c /tmp/upx-4.0.2.tar.xz | tar -x -C /tmp/upx; chmod +x /tmp/upx/upx-4.0.2-amd64_linux/upx&&export PATH=/tmp/upx/upx-4.0.2-amd64_linux:$PATH;
|
||||
sudo apt-get update -y && sudo apt-get install -y upx;
|
||||
if [[ "$?" == "0" ]]; then
|
||||
compile_compress="-u"
|
||||
fi
|
||||
|
||||
@@ -38,7 +38,7 @@ fi
|
||||
|
||||
if [[ "${use_upx}" = true ]]; then
|
||||
if [[ -z "$upx" ]] && command -v upx &> /dev/null; then
|
||||
upx="upx --lzma --best"
|
||||
upx="upx -9"
|
||||
fi
|
||||
|
||||
if [[ "x$upx" == "x" ]]; then
|
||||
|
||||
@@ -38,7 +38,7 @@ fi
|
||||
|
||||
if [[ "${use_upx}" = true ]]; then
|
||||
if [[ -z "$upx" ]] && command -v upx &> /dev/null; then
|
||||
upx="upx --lzma --best"
|
||||
upx="upx -9"
|
||||
fi
|
||||
|
||||
if [[ "x$upx" == "x" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user