add justfile for automation

master
Fabien Freling 2020-01-26 18:04:04 +01:00
parent bd95bf871e
commit 3999155e30
1 changed files with 17 additions and 0 deletions

17
justfile Normal file
View File

@ -0,0 +1,17 @@
src_dir := "$PWD/game"
build_dir := "$PWD/build"
itchio := "damantisshrimp/taqin"
edit:
godot --path {{src_dir}} --editor
export-android:
mkdir -p {{build_dir}}/android
godot --path {{src_dir}} --export "Android" {{build_dir}}/android
export-html:
mkdir -p {{build_dir}}/html
godot --path {{src_dir}} --export "HTML5" {{build_dir}}/html/index.html
deploy-html: export-html
butler push {{build_dir}}/html {{itchio}}:html