-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathMakefile
70 lines (51 loc) · 2.79 KB
/
Makefile
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
.PHONY: all clean deploy deploy-test deploy-osx deploy-win dist dist-dev distclean watch serve lint pkg-osx pkg-win pkg-linux app-run
all: dist
deploy: dist
echo `date +"%Y-%m-%d_%H:%M:%S"` > dist/.timestamp
rm -f dist/js/*.map
rm -f dist/assets/styles/*.map
rsync -av --exclude .htaccess --exclude .well-known --delete dist/ -e 'ssh -A -J [email protected]:22' [email protected]:/var/www/webrtc/
ssh -A -J [email protected]:22 [email protected] 'sudo /root/sync-webrtc.sh'
deploy-test: dist-dev
echo `date +"%Y-%m-%d_%H:%M:%S"` > dist/.timestamp
rsync -av --exclude .htaccess --delete dist/ -e 'ssh -A -J [email protected]:22' [email protected]:/var/www/webrtc-test/
deploy-osx:
#rsync -avz --progress dist-electron/Sylk*.dmg dist-electron/Sylk*.zip dist-electron/latest-mac*yml -e 'ssh -A -J [email protected]:22' [email protected]:/var/www/download/Sylk/
#ssh -A -J [email protected]:22 [email protected] ssh [email protected] 'sudo /root/symlink-sylk.sh'
rsync -avz --progress dist-electron/Sylk*.dmg dist-electron/Sylk*.zip dist-electron/latest-mac*yml -e 'ssh -A -J [email protected]:22' [email protected]:/var/www/download/Sylk/
ssh -A -J [email protected]:22 [email protected] 'sudo /root/symlink-sylk.sh'
deploy-win:
#rsync -avz --progress dist-electron/Sylk*.exe dist-electron/latest.yml -e 'ssh -A -J [email protected]:22' [email protected]:/var/www/download/Sylk/
#ssh -A -J [email protected]:22 [email protected] 'sudo /root/symlink-sylk.sh'
rsync -avz --progress dist-electron/Sylk*.exe dist-electron/latest.yml -e 'ssh -A -J [email protected]:22' [email protected]:/var/www/download/Sylk/
ssh -A -J [email protected]:22 [email protected] 'sudo /root/symlink-sylk.sh'
deploy-linux:
#rsync -avz --progress dist-electron/Sylk*.AppImage dist-electron/latest-linux*yml -e 'ssh -A -J [email protected]:22' [email protected]:/var/www/download/Sylk/
#ssh -A -J [email protected]:22 [email protected] 'sudo /root/symlink-sylk.sh'
rsync -avz --progress dist-electron/Sylk*.AppImage dist-electron/latest-linux*yml -e 'ssh -A -J [email protected]:22' [email protected]:/var/www/download/Sylk/
ssh -A -J [email protected]:22 [email protected] 'sudo /root/symlink-sylk.sh'
dist:
npm run build
dist-dev:
npm run build-dev
clean:
rm -rf dist dist-electron app/www
distclean: clean
rm -rf node_modules app/node_modules
watch:
npm run dev
serve:
npm run serve
lint:
npm run lint
electron:
# TODO: use a different gulp task which doesn't browserify
npm run electron
pkg-osx: electron
npm run build-osx
pkg-win: electron
npm run build-win
pkg-linux: electron
npm run build-linux
app-run: electron
npm start