-
Notifications
You must be signed in to change notification settings - Fork 109
/
Copy pathbuild.sh
38 lines (32 loc) · 1.11 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
cat \
source/game.js \
source/random.js \
source/renderer.js \
source/entity.js \
source/entity-player.js \
source/entity-cpu.js \
source/entity-plasma.js \
source/entity-spider.js \
source/entity-sentry.js \
source/entity-particle.js \
source/entity-health.js \
source/entity-explosion.js \
source/sonantx-reduced.js \
source/music-dark-meat-beat.js \
source/sound-effects.js \
source/audio.js \
source/terminal.js \
source/main.js \
> build/underrun.js
node shrinkit.js build/underrun.js > build/underrun.compact.js
./node_modules/uglify-es/bin/uglifyjs build/underrun.compact.js \
--compress --screw-ie8 --mangle toplevel -c --beautify --mangle-props regex='/^_/;' \
-o build/underrun.min.beauty.js
./node_modules/uglify-es/bin/uglifyjs build/underrun.compact.js \
--compress --screw-ie8 --mangle toplevel --mangle-props regex='/^_/;' \
-o build/underrun.min.js
rm build/underrun.zip
sed -e '/GAME_SOURCE/{r build/underrun.min.js' -e 'd}' source/html-template.html > underrun.html
zip -9 build/underrun.zip m/q2.png m/l1.png m/l2.png m/l3.png underrun.html
ls -la build/
mv underrun.html build/underrun.html