changeset 79:52cd37892cc9 default tip

elvish work
author Franklin Schmidt <fschmidt@gmail.com>
date Sat, 21 Jun 2025 13:42:32 -0600
parents 7a8afa4625e7
children
files scripts/mac/build.elv
diffstat 1 files changed, 35 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/scripts/mac/build.elv	Sat Jun 21 13:42:32 2025 -0600
@@ -0,0 +1,35 @@
+#!/usr/bin/env elvish
+
+cd (dirname (src)[name])/../..
+
+./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
+
+cp ../scripts/mac/Info.plist mac/Luan_Editor.app/Contents
+cp ../scripts/mac/launcher mac/Luan_Editor.app/Contents/MacOS
+cp ../scripts/install.sh mac/Luan_Editor.app/Contents/Resources
+cp ../scripts/uninstall.sh mac/Luan_Editor.app/Contents/Resources
+cp -r luan_editor/jars mac/Luan_Editor.app/Contents/Resources
+cp -r luan_editor/dictionaries mac/Luan_Editor.app/Contents/Resources
+
+# brew install create-dmg
+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"