diff --git a/scripts/macOS/Info.plist b/scripts/macOS/Info.plist index 64e7c1c82..978c8472f 100644 --- a/scripts/macOS/Info.plist +++ b/scripts/macOS/Info.plist @@ -5,8 +5,8 @@ CFBundleDisplayName ErsatzTV CFBundleExecutable - ErsatzTV - CFBundleIconFile + launcher.sh + CFBundleIconFile ErsatzTV.icns CFBundleIdentifier com.jasongdove.ersatztv diff --git a/scripts/macOS/bundle.sh b/scripts/macOS/bundle.sh index c5d06329a..3b7239ebf 100755 --- a/scripts/macOS/bundle.sh +++ b/scripts/macOS/bundle.sh @@ -23,3 +23,4 @@ mkdir "$APP_NAME/Contents/Resources" cp "$INFO_PLIST" "$APP_NAME/Contents/Info.plist" cp "$ICON_SOURCE" "$APP_NAME/Contents/Resources/$ICON_FILE" cp -a "$PUBLISH_OUTPUT_DIRECTORY" "$APP_NAME/Contents/MacOS" +cp "$SCRIPT_FOLDER/launcher.sh" "$APP_NAME/Contents/MacOS/" diff --git a/scripts/macOS/launcher.sh b/scripts/macOS/launcher.sh new file mode 100755 index 000000000..34e2aef04 --- /dev/null +++ b/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