Made a cute little build script for the *nix users out there
Posted: Tue Dec 24, 2013 10:28 pm
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:
EDIT: taught the script how to love
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"