Skip to content

Commit

Permalink
优化编译脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrohy committed Jan 25, 2022
1 parent 7e00fb3 commit 2189910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ PATCH_VERSION=`echo $V|cut -d . -f3`
EXE_VERSION_INFO="-product-version $VERSION -ver-major `echo $V|cut -d . -f1` -ver-minor `echo $V|cut -d . -f2` -ver-patch $PATCH_VERSION"
goversioninfo -skip-versioninfo -64 -icon *.ico -copyright "Copyright © 2022 Jrohy" -product-version $VERSION -product-name "cfw-updater" -description "Clash for Windows便携版更新工具" $EXE_VERSION_INFO

GOOS=windows GOARCH=amd64 go build -ldflags "$LDFLAGS" -o result/cfw-updater.exe .
GOOS=windows GOARCH=amd64 CC=x86_64-w64-mingw32-gcc go build -ldflags "$LDFLAGS" -o result/cfw-updater.exe .

rm -f resource.syso

Expand Down

0 comments on commit 2189910

Please sign in to comment.