2021-12-29 20:27:26 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# make Windows release
|
2022-03-13 21:56:22 +00:00
|
|
|
# this script shall be run from Arch Linux with MinGW installed!
|
2021-12-29 20:27:26 +00:00
|
|
|
|
|
|
|
if [ ! -e /tmp/furnace ]; then
|
|
|
|
ln -s "$PWD" /tmp/furnace || exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd /tmp/furnace
|
|
|
|
|
|
|
|
if [ ! -e winbuild ]; then
|
|
|
|
mkdir winbuild || exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd winbuild
|
|
|
|
|
2022-03-13 21:56:22 +00:00
|
|
|
# TODO: potential Arch-ism?
|
2024-06-17 07:30:46 +00:00
|
|
|
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" -DWITH_LOCALE=ON -DUSE_MOMO=ON -DUSE_BACKWARD=ON .. || exit 1
|
2021-12-29 20:27:26 +00:00
|
|
|
make -j8 || exit 1
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
mkdir -p release/windows || exit 1
|
|
|
|
cd release/windows
|
|
|
|
|
|
|
|
cp ../../LICENSE LICENSE.txt || exit 1
|
|
|
|
cp ../../winbuild/furnace.exe . || exit 1
|
2023-09-20 01:02:16 +00:00
|
|
|
cp ../../res/releaseReadme/stable-win.txt README.txt || exit 1
|
2021-12-29 20:27:26 +00:00
|
|
|
cp -r ../../papers papers || exit 1
|
2022-02-09 09:50:38 +00:00
|
|
|
cp -r ../../demos demos || exit 1
|
2022-06-06 23:18:45 +00:00
|
|
|
cp -r ../../instruments instruments || exit 1
|
2023-02-19 22:36:14 +00:00
|
|
|
cp -r ../../wavetables wavetables || exit 1
|
2024-06-13 23:04:21 +00:00
|
|
|
cp -r ../../po/locale locale || exit 1
|
2021-12-29 20:27:26 +00:00
|
|
|
|
2023-09-20 01:14:30 +00:00
|
|
|
cp ../../res/docpdf/manual.pdf . || exit 1
|
|
|
|
|
2023-05-25 03:15:49 +00:00
|
|
|
x86_64-w64-mingw32-strip -s furnace.exe || exit 1
|
|
|
|
|
2024-06-13 23:04:21 +00:00
|
|
|
zip -r furnace.zip LICENSE.txt furnace.exe README.txt manual.pdf papers demos instruments locale wavetables
|
2022-03-14 04:37:12 +00:00
|
|
|
|
|
|
|
furName=$(git describe --tags | sed "s/v0/0/")
|
|
|
|
|
|
|
|
mv furnace.zip furnace-"$furName"-win64.zip
|