Browse Source

re-add mac launcher script

pull/589/head
Jason Dove 4 years ago
parent
commit
135628441a
  1. 4
      scripts/macOS/Info.plist
  2. 1
      scripts/macOS/bundle.sh
  3. 9
      scripts/macOS/launcher.sh

4
scripts/macOS/Info.plist

@ -5,8 +5,8 @@
<key>CFBundleDisplayName</key> <key>CFBundleDisplayName</key>
<string>ErsatzTV</string> <string>ErsatzTV</string>
<key>CFBundleExecutable</key> <key>CFBundleExecutable</key>
<string>ErsatzTV</string> <string>launcher.sh</string>
<key>CFBundleIconFile</key> <key>CFBundleIconFile</key>
<string>ErsatzTV.icns</string> <string>ErsatzTV.icns</string>
<key>CFBundleIdentifier</key> <key>CFBundleIdentifier</key>
<string>com.jasongdove.ersatztv</string> <string>com.jasongdove.ersatztv</string>

1
scripts/macOS/bundle.sh

@ -23,3 +23,4 @@ mkdir "$APP_NAME/Contents/Resources"
cp "$INFO_PLIST" "$APP_NAME/Contents/Info.plist" cp "$INFO_PLIST" "$APP_NAME/Contents/Info.plist"
cp "$ICON_SOURCE" "$APP_NAME/Contents/Resources/$ICON_FILE" cp "$ICON_SOURCE" "$APP_NAME/Contents/Resources/$ICON_FILE"
cp -a "$PUBLISH_OUTPUT_DIRECTORY" "$APP_NAME/Contents/MacOS" cp -a "$PUBLISH_OUTPUT_DIRECTORY" "$APP_NAME/Contents/MacOS"
cp "$SCRIPT_FOLDER/launcher.sh" "$APP_NAME/Contents/MacOS/"

9
scripts/macOS/launcher.sh

@ -0,0 +1,9 @@
#! /bin/sh
# Set the working directory
DIR=$(cd "$(dirname "$0")"; pwd)
# Run the application
echo "running from $DIR"
open -a Terminal $DIR/ErsatzTV
Loading…
Cancel
Save