add scripts/deploy_local.sh

This commit is contained in:
Colin McMillen 2019-10-03 20:42:18 -04:00
parent fa827a0f30
commit f8752567a8

10
scripts/deploy_local.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
cd $SNEJ_ROOT
echo "deploying to $1"
mkdir -p $1 || exit
mkdir -p bundle/
python3 scripts/assets.py stitch-sprites $SNEJ_ROOT/bundle/spritesheet
cp -r index.html main.js bundle/ $1
echo "success!"