79
|
1 #!/usr/bin/env elvish
|
63
|
2
|
79
|
3 cd (dirname (src)[name])/../..
|
63
|
4
|
|
5 ./build.sh
|
|
6
|
|
7 cd build
|
|
8
|
|
9 mkdir mac
|
|
10 mkdir mac/Luan_Editor.app
|
|
11 mkdir mac/Luan_Editor.app/Contents
|
|
12 mkdir mac/Luan_Editor.app/Contents/MacOS
|
|
13 mkdir mac/Luan_Editor.app/Contents/Resources
|
|
14
|
|
15 cp ../scripts/mac/Info.plist mac/Luan_Editor.app/Contents
|
|
16 cp ../scripts/mac/launcher mac/Luan_Editor.app/Contents/MacOS
|
65
|
17 cp ../scripts/install.sh mac/Luan_Editor.app/Contents/Resources
|
|
18 cp ../scripts/uninstall.sh mac/Luan_Editor.app/Contents/Resources
|
63
|
19 cp -r luan_editor/jars mac/Luan_Editor.app/Contents/Resources
|
|
20 cp -r luan_editor/dictionaries mac/Luan_Editor.app/Contents/Resources
|
|
21
|
77
|
22 # brew install create-dmg
|
79
|
23 create-dmg ^
|
|
24 --volname "Luan Editor" ^
|
|
25 --window-pos 200 120 ^
|
|
26 --window-size 500 300 ^
|
|
27 --icon-size 100 ^
|
|
28 --icon "Luan_Editor.app" 100 100 ^
|
|
29 --app-drop-link 380 100 ^
|
|
30 "Luan_Editor.dmg" ^
|
63
|
31 "mac/"
|
|
32
|
|
33 cp Luan_Editor.dmg ../website/src/download
|
|
34
|
|
35 echo "finished mac build"
|