diff 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
line wrap: on
line diff
--- a/build.sh	Wed Jun 04 23:39:10 2025 -0600
+++ b/build.sh	Thu Jun 05 10:50:14 2025 -0600
@@ -1,6 +1,7 @@
 #!/bin/bash
+set -e
 
-set -e
+cd "$(dirname $0)"
 
 . luan string:
 
@@ -29,30 +30,4 @@
 
 luan_editor/install.sh || sudo luan_editor/install.sh
 
-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 done
+echo "finished build"