From 2cd8085f34f5822d072b3ae71f6252b8e0ecfdef Mon Sep 17 00:00:00 2001 From: tildearrow Date: Wed, 24 May 2023 22:15:49 -0500 Subject: [PATCH] update release scripts to strip before packing instead of after build this way I at least hope I can use addr2line to retrieve the address of a call in case of crash --- scripts/release-win32.sh | 3 ++- scripts/release-win64.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/release-win32.sh b/scripts/release-win32.sh index 9faf9c2fa..df603dbab 100755 --- a/scripts/release-win32.sh +++ b/scripts/release-win32.sh @@ -17,7 +17,6 @@ cd win32build # TODO: potential Arch-ism? i686-w64-mingw32-cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_C_FLAGS="-O2" -DCMAKE_CXX_FLAGS="-O2 -Wall -Wextra -Wno-unused-parameter -Wno-cast-function-type -Werror" -DBUILD_SHARED_LIBS=OFF -DSUPPORT_XP=ON .. || exit 1 make -j8 || exit 1 -#i686-w64-mingw32-strip -s furnace.exe || exit 1 cd .. @@ -32,6 +31,8 @@ cp -r ../../demos demos || exit 1 cp -r ../../instruments instruments || exit 1 cp -r ../../wavetables wavetables || exit 1 +i686-w64-mingw32-strip -s furnace.exe || exit 1 + zip -r furnace.zip LICENSE.txt furnace.exe README.txt papers demos instruments wavetables furName=$(git describe --tags | sed "s/v0/0/") diff --git a/scripts/release-win64.sh b/scripts/release-win64.sh index b349e571f..e1678eda1 100755 --- a/scripts/release-win64.sh +++ b/scripts/release-win64.sh @@ -17,7 +17,6 @@ cd winbuild # TODO: potential Arch-ism? x86_64-w64-mingw32-cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_C_FLAGS="-O2" -DCMAKE_CXX_FLAGS="-O2 -Wall -Wextra -Wno-unused-parameter -Wno-cast-function-type -Wno-deprecated-declarations -Werror" .. || exit 1 make -j8 || exit 1 -#x86_64-w64-mingw32-strip -s furnace.exe || exit 1 cd .. @@ -32,6 +31,8 @@ cp -r ../../demos demos || exit 1 cp -r ../../instruments instruments || exit 1 cp -r ../../wavetables wavetables || exit 1 +x86_64-w64-mingw32-strip -s furnace.exe || exit 1 + zip -r furnace.zip LICENSE.txt furnace.exe README.txt papers demos instruments wavetables furName=$(git describe --tags | sed "s/v0/0/")