summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar alecdwm 2016-03-20 17:01:20 +0100
committerGravatar alecdwm 2016-03-20 17:01:20 +0100
commite2624d7d78f65dfe9bb7489c881e3ce8e0e1f290 (patch)
treeb77cd10671c79cc5396c31cf111f3ca62cd7c7e6
parentaeca29dd19b514ce105b45067d8c84d274b28845 (diff)
Added makefile to automate packing for windows and osx
-rw-r--r--prototype/Makefile44
1 files changed, 44 insertions, 0 deletions
diff --git a/prototype/Makefile b/prototype/Makefile
new file mode 100644
index 0000000..0f436a5
--- /dev/null
+++ b/prototype/Makefile
@@ -0,0 +1,44 @@
+phony:
+ @echo -ne "\033[0;33mAvailable commands:\033[0m\n\n\
+make run\t- runs the game\n\
+make pack-win\t- packages the game for windows\n\
+make pack-osx\t- packages the game for osx\n"
+
+run:
+ @love .
+
+pack-win:
+ @echo "Building..."
+ @zip prototype.love *
+ @echo "Packing..."
+ @wget -q https://bitbucket.org/rude/love/downloads/love-0.10.1-win64.zip
+ @unzip -q love-0.10.1-win64.zip
+ @mv love-0.10.1-win64 prototype-win
+ @cat prototype-win/love.exe prototype.love > prototype-win/prototype.exe
+ @rm prototype-win/changes.txt
+ @rm prototype-win/game.ico
+ @rm prototype-win/license.txt
+ @rm prototype-win/love.exe
+ @rm prototype-win/love.ico
+ @rm prototype-win/readme.txt
+ @zip -qr prototype-win.zip prototype-win
+ @echo "Cleaning up..."
+ @rm -r prototype-win
+ @rm love-0.10.1-win64.zip
+ @rm prototype.love
+
+pack-osx:
+ @echo "Building..."
+ @zip prototype.love *
+ @echo "Packing..."
+ @wget -q https://bitbucket.org/rude/love/downloads/love-0.10.1-macosx-x64.zip
+ @unzip -q love-0.10.1-macosx-x64.zip
+ @mv love.app prototype.app
+ @mv prototype.love prototype.app/Contents/Resources/
+ @sed -i 's#<string>org.love2d.love</string>#<string>au.com.bytestack.prototype</string>#g' prototype.app/Contents/Info.plist
+ @sed -i 's#<string>LÖVE</string>#<string>prototype</string>#g' prototype.app/Contents/Info.plist
+ @sed -i '92,119d' prototype.app/Contents/Info.plist
+ @zip -qr prototype-mac.zip prototype.app
+ @echo "Cleaning up..."
+ @rm -r prototype.app
+ @rm love-0.10.1-macosx-x64.zip