From ac922ae879cbebe88fc583eadf438a5d6faabb17 Mon Sep 17 00:00:00 2001 From: wanghe-fit2cloud Date: Mon, 12 May 2025 15:51:55 +0800 Subject: [PATCH] build: Remove source installation of upx --- ci/script.sh | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/ci/script.sh b/ci/script.sh index 4e49a58ea..201e63a36 100755 --- a/ci/script.sh +++ b/ci/script.sh @@ -58,15 +58,7 @@ compress_binary() { fi sudo apt-get update - sudo apt-get install -y upx-ucl || { - echo "Failed to install upx via apt, trying source build" - git clone https://github.com/upx/upx.git - cd upx - git checkout v4.2.2 - make - sudo cp src/upx /usr/local/bin/ - cd .. - } + sudo apt-get install -y upx-ucl fi upx --best --lzma "$binary_path" && echo "[ok] Compressed: $binary_path" || echo "[warn] Failed to compress: $binary_path"