comparison build.sh @ 63:f9ce379de456 default tip

add mac/build.sh
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 05 Jun 2025 10:50:14 -0600
parents 8a1dd22beed0
children
comparison
equal deleted inserted replaced
62:8a1dd22beed0 63:f9ce379de456
1 #!/bin/bash 1 #!/bin/bash
2 set -e
2 3
3 set -e 4 cd "$(dirname $0)"
4 5
5 . luan string: 6 . luan string:
6 7
7 rm -rf build 8 rm -rf build
8 mkdir -p build/luan_editor/jars 9 mkdir -p build/luan_editor/jars
27 28
28 tar -cf ../website/src/download/luan_editor.tar luan_editor 29 tar -cf ../website/src/download/luan_editor.tar luan_editor
29 30
30 luan_editor/install.sh || sudo luan_editor/install.sh 31 luan_editor/install.sh || sudo luan_editor/install.sh
31 32
32 mkdir mac 33 echo "finished build"
33 mkdir mac/Luan_Editor.app
34 mkdir mac/Luan_Editor.app/Contents
35 mkdir mac/Luan_Editor.app/Contents/MacOS
36 mkdir mac/Luan_Editor.app/Contents/Resources
37 mkdir mac/Luan_Editor.app/Contents/Resources/CLI
38
39 cp ../scripts/mac/Info.plist mac/Luan_Editor.app/Contents
40 cp ../scripts/mac/launcher mac/Luan_Editor.app/Contents/MacOS
41 cp ../scripts/mac/install.sh mac/Luan_Editor.app/Contents/Resources/CLI
42 cp ../scripts/mac/uninstall.sh mac/Luan_Editor.app/Contents/Resources/CLI
43 cp -r luan_editor/jars mac/Luan_Editor.app/Contents/Resources
44 cp -r luan_editor/dictionaries mac/Luan_Editor.app/Contents/Resources
45
46 create-dmg \
47 --volname "Luan Editor" \
48 --window-pos 200 120 \
49 --window-size 500 300 \
50 --icon-size 100 \
51 --icon "Luan_Editor.app" 100 100 \
52 --app-drop-link 380 100 \
53 "Luan_Editor.dmg" \
54 "mac/"
55
56 cp Luan_Editor.dmg ../website/src/download
57
58 echo done