From 0a93378cc847f92a9b50f90eac5cf3690c6d056c Mon Sep 17 00:00:00 2001 From: xianguo Date: Fri, 19 Jun 2026 14:12:30 +0800 Subject: [PATCH] Add mac launcher app --- .../Contents/Info.plist | 23 +++++++++++++++++++ .../Contents/MacOS/InternalDropLauncher | 4 ++++ Internal Drop Launcher.app/Contents/PkgInfo | 1 + launch-internal-drop.applescript | 8 +++++++ launch-internal-drop.command | 3 +++ 5 files changed, 39 insertions(+) create mode 100644 Internal Drop Launcher.app/Contents/Info.plist create mode 100755 Internal Drop Launcher.app/Contents/MacOS/InternalDropLauncher create mode 100644 Internal Drop Launcher.app/Contents/PkgInfo create mode 100644 launch-internal-drop.applescript create mode 100755 launch-internal-drop.command diff --git a/Internal Drop Launcher.app/Contents/Info.plist b/Internal Drop Launcher.app/Contents/Info.plist new file mode 100644 index 0000000..9234c55 --- /dev/null +++ b/Internal Drop Launcher.app/Contents/Info.plist @@ -0,0 +1,23 @@ + + + + + CFBundleExecutable + InternalDropLauncher + CFBundleIdentifier + local.privatedrop.launcher + CFBundleName + Internal Drop Launcher + CFBundleDisplayName + Internal Drop + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSMinimumSystemVersion + 10.13 + + diff --git a/Internal Drop Launcher.app/Contents/MacOS/InternalDropLauncher b/Internal Drop Launcher.app/Contents/MacOS/InternalDropLauncher new file mode 100755 index 0000000..e9b35f2 --- /dev/null +++ b/Internal Drop Launcher.app/Contents/MacOS/InternalDropLauncher @@ -0,0 +1,4 @@ +#!/bin/zsh +open -a Terminal "/Users/sin/Work/private/privatedrop/launch-internal-drop.command" +sleep 1 +open "http://localhost:10051" diff --git a/Internal Drop Launcher.app/Contents/PkgInfo b/Internal Drop Launcher.app/Contents/PkgInfo new file mode 100644 index 0000000..6f749b0 --- /dev/null +++ b/Internal Drop Launcher.app/Contents/PkgInfo @@ -0,0 +1 @@ +APPL???? diff --git a/launch-internal-drop.applescript b/launch-internal-drop.applescript new file mode 100644 index 0000000..576e9d2 --- /dev/null +++ b/launch-internal-drop.applescript @@ -0,0 +1,8 @@ +tell application "Terminal" + activate + do script "cd /Users/sin/Work/private/privatedrop && ./internal-drop" +end tell + +delay 1 + +do shell script "open http://localhost:10051" diff --git a/launch-internal-drop.command b/launch-internal-drop.command new file mode 100755 index 0000000..2df8814 --- /dev/null +++ b/launch-internal-drop.command @@ -0,0 +1,3 @@ +#!/bin/zsh +cd "/Users/sin/Work/private/privatedrop" || exit 1 +./internal-drop