mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2025-09-19 20:26:26 +08:00
remove upx (#750)
Update build.sh Signed-off-by: Pikachu Ren <40362270+PIKACHUIM@users.noreply.github.com>
This commit is contained in:
10
build.sh
10
build.sh
@ -121,8 +121,8 @@ BuildDev() {
|
|||||||
xgo -targets=windows/amd64,darwin/amd64,darwin/arm64 -out "$appName" -ldflags="$ldflags" -tags=jsoniter .
|
xgo -targets=windows/amd64,darwin/amd64,darwin/arm64 -out "$appName" -ldflags="$ldflags" -tags=jsoniter .
|
||||||
mv "$appName"-* dist
|
mv "$appName"-* dist
|
||||||
cd dist
|
cd dist
|
||||||
cp ./"$appName"-windows-amd64.exe ./"$appName"-windows-amd64-upx.exe
|
# cp ./"$appName"-windows-amd64.exe ./"$appName"-windows-amd64-upx.exe
|
||||||
upx -9 ./"$appName"-windows-amd64-upx.exe
|
# upx -9 ./"$appName"-windows-amd64-upx.exe
|
||||||
find . -type f -print0 | xargs -0 md5sum >md5.txt
|
find . -type f -print0 | xargs -0 md5sum >md5.txt
|
||||||
cat md5.txt
|
cat md5.txt
|
||||||
}
|
}
|
||||||
@ -188,9 +188,9 @@ BuildRelease() {
|
|||||||
BuildWinArm64 ./build/"$appName"-windows-arm64.exe
|
BuildWinArm64 ./build/"$appName"-windows-arm64.exe
|
||||||
xgo -out "$appName" -ldflags="$ldflags" -tags=jsoniter .
|
xgo -out "$appName" -ldflags="$ldflags" -tags=jsoniter .
|
||||||
# why? Because some target platforms seem to have issues with upx compression
|
# why? Because some target platforms seem to have issues with upx compression
|
||||||
upx -9 ./"$appName"-linux-amd64
|
# upx -9 ./"$appName"-linux-amd64
|
||||||
cp ./"$appName"-windows-amd64.exe ./"$appName"-windows-amd64-upx.exe
|
# cp ./"$appName"-windows-amd64.exe ./"$appName"-windows-amd64-upx.exe
|
||||||
upx -9 ./"$appName"-windows-amd64-upx.exe
|
# upx -9 ./"$appName"-windows-amd64-upx.exe
|
||||||
mv "$appName"-* build
|
mv "$appName"-* build
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user