Showcase your libraries, tools and other projects that help your fellow love users.
mr_pitchfork
Prole
Posts: 1 Joined: Tue Dec 24, 2013 10:24 pm
Post
by mr_pitchfork » 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:
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
Last edited by
mr_pitchfork on Wed Dec 25, 2013 4:17 pm, edited 1 time in total.
Doki Doki
Prole
Posts: 8 Joined: Tue Dec 17, 2013 6:58 pm
Post
by Doki Doki » Wed Dec 25, 2013 12:31 am
Arigatou gozaimasuu ~ !
Users browsing this forum: No registered users and 2 guests