mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-06 13:27:43 +08:00
build: Remove source installation of upx
This commit is contained in:
parent
d6af9cd088
commit
ac922ae879
1 changed files with 1 additions and 9 deletions
10
ci/script.sh
10
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"
|
||||
|
|
Loading…
Add table
Reference in a new issue