/spacey

To get this branch, use:
bzr branch /bzr/spacey
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh

mkdir -p deploy/love

# make sure we have löve
cd deploy/love
if [ ! -e love-0.8.0-win-x86.zip ]; then
    wget https://bitbucket.org/rude/love/downloads/love-0.8.0-win-x86.zip
    unzip love-0.8.0-win-x86.zip || exit 1
fi
if [ ! -e love-0.8.0-macosx-ub.zip ]; then
    wget https://bitbucket.org/rude/love/downloads/love-0.8.0-macosx-ub.zip
    unzip love-0.8.0-macosx-ub.zip || exit 1
fi
cd ../..

# make the love file
V=`bzr version-info --custom --template={revno}`
echo "VERSION = '$V'" >version.lua
rm -f deploy/spacey.love
bzr ls -RV |zip -q@ deploy/spacey.love
bzr revert --no-backup version.lua

cd deploy

# package win32
rm -rf spacey-win32 spacey-win32.zip
mkdir spacey-win32
cat love/love-0.8.0-win-x86/love.exe spacey.love >spacey-win32/spacey.exe
cp love/love-0.8.0-win-x86/*.dll spacey-win32
# TODO: this is a spot I could copy a README, LICENSE, or VERSION file in.
zip -qr spacey-win32.zip spacey-win32

# package osx
rm -rf spacey.app spacey-macosx.zip
cp -r love/love.app spacey.app
cp spacey.love spacey.app/Contents/Resources/
cp ../Info.plist spacey.app/Contents/
zip -qry spacey-macosx.zip spacey.app

cd ..