#!/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
scp -r index.html main.js bundle/ $1
echo "success!"