Page 1 of 1

Made a cute little build script for the *nix users out there

Posted: Tue Dec 24, 2013 10:28 pm
by mr_pitchfork
I like to name this build.sh on my system. Just run ./build.sh to test your game without saving the build file. To deploy and name your game, run ./build.sh deploy GameName. If you don't specify a name, your game will be called "untitled".

Here is the script:

Code: Select all

#!/bin/bash

arg=$1
arg_flag="deploy"
name=$2
datetime=$(date +%Y%m%d)
: ${name:="untitled"}
name=$name$datetime

zip -9 -q -r "$name".love .
if [ "$arg" != "$arg_flag" ]; then
	love "$name".love
	rm -r "$name".love;
fi
echo "<3"
EDIT: taught the script how to love

Re: Made a cute little build script for the *nix users out t

Posted: Wed Dec 25, 2013 12:31 am
by Doki Doki
Arigatou gozaimasuu ~ ! :ultrahappy: