bzr branch
http://9ix.org/bzr/traderous
2
by Josh C
build system |
1 |
#!/bin/sh |
2 |
||
3 |
mkdir -p deploy/love |
|
4 |
||
5 |
# make sure we have löve |
|
6 |
cd deploy/love |
|
7 |
if [ ! -e love-0.8.0-win-x86.zip ]; then |
|
8 |
wget https://bitbucket.org/rude/love/downloads/love-0.8.0-win-x86.zip |
|
9 |
unzip love-0.8.0-win-x86.zip || exit 1 |
|
10 |
fi |
|
11 |
if [ ! -e love-0.8.0-macosx-ub.zip ]; then |
|
12 |
wget https://bitbucket.org/rude/love/downloads/love-0.8.0-macosx-ub.zip |
|
13 |
unzip love-0.8.0-macosx-ub.zip || exit 1 |
|
14 |
fi |
|
15 |
cd ../.. |
|
16 |
||
17 |
# make the love file |
|
18 |
V=`bzr version-info --custom --template={revno}` |
|
19 |
echo "VERSION = '$V'" >version.lua |
|
96
by Josh C
name the game! |
20 |
rm -f deploy/traderous.love |
97
by Josh C
exclude xcfs from packaging |
21 |
bzr ls -RV |zip -q@ deploy/traderous.love --exclude \*.xcf |
2
by Josh C
build system |
22 |
bzr revert --no-backup version.lua |
23 |
||
24 |
cd deploy |
|
25 |
||
26 |
# package win32 |
|
96
by Josh C
name the game! |
27 |
rm -rf traderous-win32 traderous-win32.zip |
28 |
mkdir traderous-win32 |
|
29 |
cat love/love-0.8.0-win-x86/love.exe traderous.love >traderous-win32/traderous.exe |
|
30 |
cp love/love-0.8.0-win-x86/*.dll traderous-win32 |
|
2
by Josh C
build system |
31 |
# TODO: this is a spot I could copy a README, LICENSE, or VERSION file in. |
96
by Josh C
name the game! |
32 |
zip -qr traderous-win32.zip traderous-win32 |
2
by Josh C
build system |
33 |
|
34 |
# package osx |
|
96
by Josh C
name the game! |
35 |
rm -rf traderous.app traderous-macosx.zip |
36 |
cp -r love/love.app traderous.app |
|
37 |
cp traderous.love traderous.app/Contents/Resources/ |
|
38 |
cp ../Info.plist traderous.app/Contents/ |
|
39 |
zip -qry traderous-macosx.zip traderous.app |
|
2
by Josh C
build system |
40 |
|
41 |
cd .. |