-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (26 loc) · 1.29 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
NODE-WEBKIT=v0.6.2
.PHONY: admin
admin:
@mkdir -p bin
@rm -rf bin/2layer-admin.app
@echo downloading node-webkit engine…
curl -sSO http://s3.amazonaws.com/node-webkit/${NODE-WEBKIT}/node-webkit-${NODE-WEBKIT}-osx-ia32.zip
@echo unpacking, renaming and copying files…
@unzip -qq node-webkit-${NODE-WEBKIT}-osx-ia32.zip
@rm node-webkit-${NODE-WEBKIT}-osx-ia32.zip nwsnapshot
@mv node-webkit.app bin/2layer-admin.app
@mkdir bin/2layer-admin.app/Contents/Resources/app.nw/
# Build admin files
@grunt css lmd:admin
# Common files
@cd bin/2layer-admin.app/Contents/Resources/app.nw/ && ln -s ../../../../../index.html
@cd bin/2layer-admin.app/Contents/Resources/app.nw/ && ln -s ../../../../../index.css
@cd bin/2layer-admin.app/Contents/Resources/app.nw/ && ln -s ../../../../../favicon.ico
@cd bin/2layer-admin.app/Contents/Resources/app.nw/ && ln -s ../../../../../data
@cd bin/2layer-admin.app/Contents/Resources/app.nw/ && ln -s ../../../../../images
@cd bin/2layer-admin.app/Contents/Resources/app.nw/ && ln -s ../../../../../css
# Admin page specific files
@cd bin/2layer-admin.app/Contents/Resources/app.nw/ && ln -s ../../../../../app.nw/index.js
@cd bin/2layer-admin.app/Contents/Resources/app.nw/ && ln -s ../../../../../app.nw/package.json
@echo done!
@echo bin/2layer-admin.app is ready.