Skip to content

Commit

Permalink
chore: 修复upx过程
Browse files Browse the repository at this point in the history
  • Loading branch information
rehiy committed Feb 2, 2023
1 parent 4c97bc8 commit e9a9166
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,17 @@ build windows arm64 .exe

####################################################################

if type apt >/dev/null 2>&1; then
sudo apt install -y upx-ucl
fi

if type apk >/dev/null 2>&1; then
apk add upx
if ! type upx >/dev/null 2>&1; then
if type apt >/dev/null 2>&1; then
sudo apt install -y upx-ucl
fi
if type apk >/dev/null 2>&1; then
apk add upx
fi
fi

if type upx >/dev/null 2>&1; then
cd build
upx --best `ls .`
upx `ls .`
cd ..
fi

0 comments on commit e9a9166

Please sign in to comment.