-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/mickelson/attract
- Loading branch information
Showing
5 changed files
with
74 additions
and
13 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
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
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
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
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,60 @@ | ||
#!/bin/bash | ||
if [ "$1" == "" ]; then | ||
echo "Package version label not specified, aborting" | ||
exit 1 | ||
fi | ||
|
||
if [ ! -d .git ]; then | ||
echo "This script needs to be run from an Attract-Mode git repository" | ||
exit 1 | ||
fi | ||
|
||
echo "Preparing Windows packages with version label: $1" | ||
|
||
# Clean build area | ||
# | ||
if [ -f ./attract.exe ]; then | ||
rm ./attract.exe | ||
fi | ||
|
||
# Make sure we are up to date | ||
# | ||
git pull origin master | ||
|
||
# Set up staging area | ||
# | ||
if [ ! -d stage ]; then | ||
mkdir stage | ||
else | ||
rm -r stage/* | ||
fi | ||
|
||
cp -r *.md *.txt config/* stage/ | ||
cp -r ../extras/* stage/ | ||
|
||
# Unix to Windows line endings | ||
# | ||
sed -i 's/$/\r/' `find stage/ -name '*.*' | grep -e .md -e .txt -e .cfg -e .nut -e .nutr -e .msg -e .frag` | ||
|
||
# special case due to space in name | ||
sed -i 's/$/\r/' "stage/layouts/particle animation/layout.nut" | ||
|
||
# Build and zip 32-bit windows version | ||
# | ||
make clean | ||
make CROSS=1 TOOLCHAIN=i686-w64-mingw32.static WINDOWS_STATIC=1 -j 3 | ||
mv attract.exe stage/attract.exe | ||
cd stage | ||
zip -r attract-$1-win32.zip * | ||
mv attract-$1-win32.zip .. | ||
cd .. | ||
|
||
# Build and zip 64-bit windows version | ||
# | ||
make clean | ||
make CROSS=1 TOOLCHAIN=x86_64-w64-mingw32.static WINDOWS_STATIC=1 -j 3 | ||
mv attract.exe stage/attract.exe | ||
cd stage | ||
zip -r attract-$1-win64.zip * | ||
mv attract-$1-win64.zip .. | ||
cd .. |