-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrelease.sh
executable file
·41 lines (38 loc) · 1.07 KB
/
release.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
39
40
41
#!/bin/bash
# relies on node.js and zip
echo "MAKE SURE YOU DID A _RELEASE_ BUILD"
read version
cd SERVWeb/js
rm -f JS*min.js
rm -f opsMap*min.js
rm -f Calendar*min.js
rm -f ControllerLog*min.js
echo "Enter the version number (MUST match the version in SERVGlobal.cs): "
read version
echo OK, minifying to version $version
uglifyjs JS.js -o JS.$version.min.js
uglifyjs Calendar.js -o Calendar.$version.min.js
uglifyjs opsMap.js -o opsMap.$version.min.js
uglifyjs ControllerLog.js -o ControllerLog.$version.min.js
cd ..
cd css
cp style.css style.$version.css
cd ..
cd ..
Echo zipping and archiving release
rm SERVWeb.zip
zip -r -9 SERVWeb.zip SERVWeb
cp SERVWeb.zip RelArchive/SERVWeb.$version.zip
echo removing minified JS files . . .
cd SERVWeb/js
rm -f JS*min.js
rm -f opsMap*min.js
rm -f Calendar*min.js
rm -f ControllerLog*min.js
cd ..
cd css
rm style.$version.css
#echo To go LIVE - Wait for Dropbox to sync and press return or to ABORT ctrl+c. . .
#read bla
#ssh -i ~/Dropbox/Dev/Resources/AmazonAWSKeys/SERV-EU.pem [email protected] "sudo /root/installSERV.sh"
echo Done . . .