/ld27

To get this branch, use:
bzr branch http://9ix.org/bzr/ld27
2 by Josh C
builder
1
#!/bin/sh
2
3
mkdir -p deploy/love
4
5
# make sure we have löve
6
cd deploy/love
44 by Josh C
update build.sh for love 0.9
7
if [ ! -e love-0.9.1-win32.zip ]; then
8
    wget https://bitbucket.org/rude/love/downloads/love-0.9.1-win32.zip
9
    unzip love-0.9.1-win32.zip || exit 1
2 by Josh C
builder
10
fi
44 by Josh C
update build.sh for love 0.9
11
if [ ! -e love-0.9.1-macosx-x64.zip ]; then
12
    wget https://bitbucket.org/rude/love/downloads/love-0.9.1-macosx-x64.zip
13
    unzip love-0.9.1-macosx-x64.zip || exit 1
2 by Josh C
builder
14
fi
15
cd ../..
16
17
# make the love file
18
V=`bzr version-info --custom --template={revno}`
19
echo "VERSION = '$V'" >version.lua
33 by Josh C
name the game
20
rm -f deploy/decimaze.love
21
bzr ls -RV |zip -q@ deploy/decimaze.love
2 by Josh C
builder
22
bzr revert --no-backup version.lua
23
46 by Josh C
inculde lovebird in build if it's required
24
grep '^[^-]*require .lovebird.' main.lua && zip deploy/decimaze.love lovebird.lua
25
2 by Josh C
builder
26
cd deploy
27
28
# package win32
33 by Josh C
name the game
29
rm -rf decimaze-win32 decimaze-win32.zip
30
mkdir decimaze-win32
44 by Josh C
update build.sh for love 0.9
31
cat love/love-0.9.1-win32/love.exe decimaze.love >decimaze-win32/decimaze.exe
32
cp love/love-0.9.1-win32/*.dll decimaze-win32
2 by Josh C
builder
33
# TODO: this is a spot I could copy a README, LICENSE, or VERSION file in.
33 by Josh C
name the game
34
zip -qr decimaze-win32.zip decimaze-win32
2 by Josh C
builder
35
36
# package osx
33 by Josh C
name the game
37
rm -rf "Treasures of the Decimaze.app" decimaze-macosx.zip
38
cp -r love/love.app "Treasures of the Decimaze.app"
39
cp decimaze.love "Treasures of the Decimaze.app"/Contents/Resources/
40
cp ../Info.plist "Treasures of the Decimaze.app"/Contents/
41
zip -qry decimaze-macosx.zip "Treasures of the Decimaze.app"
2 by Josh C
builder
42
43
cd ..