/ld26

To get this branch, use:
bzr branch http://9ix.org/bzr/ld26

« back to all changes in this revision

Viewing changes to build.sh

  • Committer: Josh C
  • Date: 2013-04-27 16:36:06 UTC
  • Revision ID: josh@9ix.org-20130427163606-0eef0f5v9wbzoi0j
zoetrope 1.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
20
 
rm -f deploy/sailaway.love
21
 
bzr ls -RV |zip -q@ deploy/sailaway.love
22
 
bzr revert --no-backup version.lua
23
 
 
24
 
cd deploy
25
 
 
26
 
# package win32
27
 
rm -rf sailaway-win32 sailaway-win32.zip
28
 
mkdir sailaway-win32
29
 
cat love/love-0.8.0-win-x86/love.exe sailaway.love >sailaway-win32/sailaway.exe
30
 
cp love/love-0.8.0-win-x86/*.dll sailaway-win32
31
 
# TODO: this is a spot I could copy a README, LICENSE, or VERSION file in.
32
 
zip -qr sailaway-win32.zip sailaway-win32
33
 
 
34
 
# package osx
35
 
rm -rf "Sail Away.app" sailaway-macosx.zip
36
 
cp -r love/love.app "Sail Away.app"
37
 
cp sailaway.love "Sail Away.app"/Contents/Resources/
38
 
cp ../Info.plist "Sail Away.app"/Contents/
39
 
zip -qry sailaway-macosx.zip "Sail Away.app"
40
 
 
41
 
cd ..