fix furnace for 32-bit
This commit is contained in:
parent
a0896f949c
commit
df3ae12278
8 changed files with 51 additions and 9 deletions
31
scripts/release-win32.sh
Executable file
31
scripts/release-win32.sh
Executable file
|
|
@ -0,0 +1,31 @@
|
|||
#!/bin/bash
|
||||
# make Windows release
|
||||
# this script shall be run from Linux with MinGW installed!
|
||||
|
||||
if [ ! -e /tmp/furnace ]; then
|
||||
ln -s "$PWD" /tmp/furnace || exit 1
|
||||
fi
|
||||
|
||||
cd /tmp/furnace
|
||||
|
||||
if [ ! -e win32build ]; then
|
||||
mkdir win32build || exit 1
|
||||
fi
|
||||
|
||||
cd win32build
|
||||
|
||||
i686-w64-mingw32-cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="-O2" -DCMAKE_CXX_FLAGS="-O2 -Wall -Wextra -Wno-unused-parameter -Werror" -DBUILD_SHARED_LIBS=OFF .. || exit 1
|
||||
make -j8 || exit 1
|
||||
i686-w64-mingw32-strip -s furnace.exe || exit 1
|
||||
|
||||
cd ..
|
||||
|
||||
mkdir -p release/win32 || exit 1
|
||||
cd release/win32
|
||||
|
||||
cp ../../LICENSE LICENSE.txt || exit 1
|
||||
cp ../../win32build/furnace.exe . || exit 1
|
||||
cp ../../README.md README.txt || exit 1
|
||||
cp -r ../../papers papers || exit 1
|
||||
|
||||
zip -r furnace.zip LICENSE.txt furnace.exe README.txt papers
|
||||
Loading…
Add table
Add a link
Reference in a new issue