js13kgames2017-muri/build.sh

10 lines
400 B
Bash
Raw Normal View History

2017-08-21 17:08:32 +02:00
#!/usr/bin/env bash
2017-08-21 21:15:28 +02:00
rm -f muri-src.zip muri.zip src/muri.min.js
uglifyjs --compress --mangle --no-dead-code --output src/muri.min.js src/*.js
(cd src && zip -q -9 ../muri.zip index.html muri.min.js assets/* assets/**/* vendor/*.min.js)
2017-08-21 21:19:21 +02:00
(cd src && zip -q -9 ../muri-src.zip ./* ./**/* ./**/**/* ../README)
2017-08-21 17:08:32 +02:00
filesize=`stat --printf="%s" muri.zip`
echo $filesize "byte ->" $((100*$filesize/13000)) "%"