63
|
1 #!/bin/bash
|
|
2 set -e
|
|
3
|
|
4 cd "$(dirname $0)/../.."
|
|
5
|
|
6 ./build.sh
|
|
7
|
|
8 cd build
|
|
9
|
|
10 mkdir mac
|
|
11 mkdir mac/Luan_Editor.app
|
|
12 mkdir mac/Luan_Editor.app/Contents
|
|
13 mkdir mac/Luan_Editor.app/Contents/MacOS
|
|
14 mkdir mac/Luan_Editor.app/Contents/Resources
|
|
15
|
|
16 cp ../scripts/mac/Info.plist mac/Luan_Editor.app/Contents
|
|
17 cp ../scripts/mac/launcher mac/Luan_Editor.app/Contents/MacOS
|
65
|
18 cp ../scripts/install.sh mac/Luan_Editor.app/Contents/Resources
|
|
19 cp ../scripts/uninstall.sh mac/Luan_Editor.app/Contents/Resources
|
63
|
20 cp -r luan_editor/jars mac/Luan_Editor.app/Contents/Resources
|
|
21 cp -r luan_editor/dictionaries mac/Luan_Editor.app/Contents/Resources
|
|
22
|
|
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" \
|
|
31 "mac/"
|
|
32
|
|
33 cp Luan_Editor.dmg ../website/src/download
|
|
34
|
|
35 echo "finished mac build"
|