#!/bin/bash
rm -rf dist
mkdir -p dist/static
cp index.html dist/
cp 403.html dist/
cp -r shell dist/
cp -r python dist/
cp -r rescue dist/
cp -r rest-api dist/
cp static/*.css dist/static/
cp static/*.bin dist/static/
cp static/*.img dist/static/
cp static/*.png dist/static/
cp static/*min*.js dist/static/
cd static
find ./ -name '*.js' ! -name '*.min.*' -exec garble $PWD/{} $PWD/../dist/static/{} on \;
