From 07d5e571d6080eea7ec5325e78b1fed2e180da7b Mon Sep 17 00:00:00 2001 From: minjaesong Date: Wed, 5 Jul 2023 01:11:06 +0900 Subject: [PATCH] windows build: smaller exe file --- buildapp/build_app_windows_x86.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buildapp/build_app_windows_x86.sh b/buildapp/build_app_windows_x86.sh index c7954f2fa..dc0bdd52b 100755 --- a/buildapp/build_app_windows_x86.sh +++ b/buildapp/build_app_windows_x86.sh @@ -21,7 +21,8 @@ then echo 'Mingw32 not found; please install mingw64-cross-gcc (or similar) to your system' >&2; exit 1; fi -x86_64-w64-mingw32-gcc -o $DESTDIR/Terrarum.exe $SRCFILES/Terrarum.c || { echo 'Building EXE failed' >&2; exit 1; } +x86_64-w64-mingw32-gcc -Os -s -o $DESTDIR/Terrarum.exe $SRCFILES/Terrarum.c || { echo 'Building EXE failed' >&2; exit 1; } +# TODO add icon to the exe # Copy over a Java runtime mkdir $DESTDIR/out