-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
74df8a5
commit b4059d6
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ nosdl/ | |
release/ | ||
t/ | ||
winbuild/ | ||
winCbuild/ | ||
win32build/ | ||
xpbuild/ | ||
macbuild/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
# make Windows release | ||
# this script shall be run from Arch Linux with MinGW installed! | ||
|
||
if [ ! -e /tmp/furnace ]; then | ||
ln -s "$PWD" /tmp/furnace || exit 1 | ||
fi | ||
|
||
cd /tmp/furnace | ||
|
||
if [ ! -e winCbuild ]; then | ||
mkdir winCbuild || exit 1 | ||
fi | ||
|
||
cd winCbuild | ||
|
||
# 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" -DUSE_BACKWARD=ON -DCONSOLE_SUBSYSTEM=ON .. || exit 1 | ||
make -j8 || exit 1 | ||
|
||
cd .. | ||
|
||
mkdir -p release/winconsole || exit 1 | ||
cd release/winconsole | ||
|
||
cp ../../LICENSE LICENSE.txt || exit 1 | ||
cp ../../winCbuild/furnace.exe . || exit 1 | ||
cp ../../res/releaseReadme/stable-win.txt README.txt || exit 1 | ||
cp -r ../../papers papers || exit 1 | ||
cp -r ../../demos demos || exit 1 | ||
cp -r ../../instruments instruments || exit 1 | ||
cp -r ../../wavetables wavetables || exit 1 | ||
|
||
cp ../../res/docpdf/manual.pdf . || exit 1 | ||
|
||
x86_64-w64-mingw32-strip -s furnace.exe || exit 1 | ||
|
||
zip -r furnace.zip LICENSE.txt furnace.exe README.txt manual.pdf papers demos instruments wavetables | ||
|
||
furName=$(git describe --tags | sed "s/v0/0/") | ||
|
||
mv furnace.zip furnace-"$furName"-win64-console.zip |