Mercurial Hosting > editor
diff scripts/mac/build.sh @ 63:f9ce379de456
add mac/build.sh
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 05 Jun 2025 10:50:14 -0600 |
parents | |
children | a4a97e8c204f |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/mac/build.sh Thu Jun 05 10:50:14 2025 -0600 @@ -0,0 +1,36 @@ +#!/bin/bash +set -e + +cd "$(dirname $0)/../.." + +./build.sh + +cd build + +mkdir mac +mkdir mac/Luan_Editor.app +mkdir mac/Luan_Editor.app/Contents +mkdir mac/Luan_Editor.app/Contents/MacOS +mkdir mac/Luan_Editor.app/Contents/Resources +mkdir mac/Luan_Editor.app/Contents/Resources/CLI + +cp ../scripts/mac/Info.plist mac/Luan_Editor.app/Contents +cp ../scripts/mac/launcher mac/Luan_Editor.app/Contents/MacOS +cp ../scripts/mac/install.sh mac/Luan_Editor.app/Contents/Resources/CLI +cp ../scripts/mac/uninstall.sh mac/Luan_Editor.app/Contents/Resources/CLI +cp -r luan_editor/jars mac/Luan_Editor.app/Contents/Resources +cp -r luan_editor/dictionaries mac/Luan_Editor.app/Contents/Resources + +create-dmg \ + --volname "Luan Editor" \ + --window-pos 200 120 \ + --window-size 500 300 \ + --icon-size 100 \ + --icon "Luan_Editor.app" 100 100 \ + --app-drop-link 380 100 \ + "Luan_Editor.dmg" \ + "mac/" + +cp Luan_Editor.dmg ../website/src/download + +echo "finished mac build"