comparison scripts/mac/build.elv @ 79:52cd37892cc9

elvish work
author Franklin Schmidt <fschmidt@gmail.com>
date Sat, 21 Jun 2025 13:42:32 -0600
parents scripts/mac/build.sh@b4ed3c726b4c
children
comparison
equal deleted inserted replaced
78:7a8afa4625e7 79:52cd37892cc9
1 #!/usr/bin/env elvish
2
3 cd (dirname (src)[name])/../..
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
17 cp ../scripts/install.sh mac/Luan_Editor.app/Contents/Resources
18 cp ../scripts/uninstall.sh mac/Luan_Editor.app/Contents/Resources
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
22 # brew install create-dmg
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"