/zoeplat

To get this branch, use:
bzr branch http://9ix.org/bzr/zoeplat
9 by Josh C
build script to build .love file
1
#!/bin/sh
2
42 by Josh C
automated build script - pull love win/mac & assemble the parts
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
9 by Josh C
build script to build .love file
18
V=`bzr version-info --custom --template={revno}`
41 by Josh C
update version when building
19
echo "VERSION = '$V'" >version.lua
42 by Josh C
automated build script - pull love win/mac & assemble the parts
20
rm -f deploy/zoeplat.love
21
bzr ls -RV |zip -q@ deploy/zoeplat.love
41 by Josh C
update version when building
22
bzr revert version.lua
42 by Josh C
automated build script - pull love win/mac & assemble the parts
23
24
cd deploy
25
26
# package win32
27
rm -rf zoeplat-win32 zoeplat-win32.zip
28
mkdir zoeplat-win32
29
cat love/love-0.8.0-win-x86/love.exe zoeplat.love >zoeplat-win32/zoeplat.exe
30
cp love/love-0.8.0-win-x86/*.dll zoeplat-win32
31
# TODO: this is a spot I could copy a README, LICENSE, or VERSION file in.
32
zip -qr zoeplat-win32.zip zoeplat-win32
33
34
# package osx
35
rm -rf zoeplat.app zoeplat-macosx.zip
36
cp -r love/love.app zoeplat.app
37
cp zoeplat.love zoeplat.app/Contents/Resources/
43 by Josh C
clean plist for osx
38
cp ../Info.plist zoeplat.app/Contents/
42 by Josh C
automated build script - pull love win/mac & assemble the parts
39
zip -qry zoeplat-macosx.zip zoeplat.app
40
41
cd ..