-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (27 loc) · 1.31 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
# NW_PATH = `./build/getNWPath.sh`
NW_PATH = "/opt/homebrew-cask/Caskroom/nwjs/0.12.1/nwjs-v0.12.1-osx-x64/nwjs.app"
APPNAME= 'Lyrics-NW.app'
all:
test -d $(NW_PATH) || echo "Error: nw.js is not installed"
cp -r $(NW_PATH) ./$(APPNAME)
cp ./build/Info.plist ./$(APPNAME)/Contents
cp ./imgs/icon.icns ./$(APPNAME)/Contents/Resources/app.icns
mkdir -p ./$(APPNAME)/Contents/Resources/app.nw
cp -r ./package.json ./lyrics.js ./lyricsProviders.js ./lyrics.html ./style.css ./node_modules ./jquery-2.1.3.min.js ./$(APPNAME)/Contents/Resources/app.nw
link:
test -d $(NW_PATH) || echo "Error: nw.js is not installed"
mkdir -p ./$(APPNAME)
mkdir -p ./$(APPNAME)/Contents
ln -s $(NW_PATH)/Contents/Frameworks ./$(APPNAME)/Contents
cp $(NW_PATH)/Contents/PkgInfo ./$(APPNAME)/Contents
cp -r $(NW_PATH)/Contents/MacOS ./$(APPNAME)/Contents
cp ./build/Info.plist ./$(APPNAME)/Contents
mkdir -p ./$(APPNAME)/Contents/Resources
cp ./imgs/icon.icns ./$(APPNAME)/Contents/Resources/app.icns
mkdir -p ./$(APPNAME)/Contents/Resources/app.nw
cp -r ./package.json ./lyrics.js ./lyricsProviders.js ./lyrics.html ./style.css ./node_modules ./jquery-2.1.3.min.js ./$(APPNAME)/Contents/Resources/app.nw
clean:
rm -rf ./$(APPNAME)
install:
test -d $(APPNAME) || echo "Error: Run `make` or `make link` first"
cp -R ./$(APPNAME) /Applications