Browse Source

don't use macos launcher script

pull/588/head
Jason Dove 4 years ago
parent
commit
1af59a0337
  1. 13
      ErsatzTV/ErsatzTV.csproj
  2. 2
      scripts/macOS/Info.plist
  3. 1
      scripts/macOS/bundle.sh
  4. 9
      scripts/macOS/launcher.sh

13
ErsatzTV/ErsatzTV.csproj

@ -4,18 +4,6 @@ @@ -4,18 +4,6 @@
<TargetFramework>net6.0</TargetFramework>
<NoWarn>VSTHRD200</NoWarn>
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
<RuntimeIdentifiers>osx-x64;osx-arm64</RuntimeIdentifiers>
</PropertyGroup>
<PropertyGroup>
<CFBundleName>ErsatzTV</CFBundleName>
<CFBundleDisplayName>ErsatzTV</CFBundleDisplayName>
<CFBundleIdentifier>com.jasongdove.ersatztv</CFBundleIdentifier>
<CFBundlePackageType>APPL</CFBundlePackageType>
<CFBundleExecutable>launcher.sh</CFBundleExecutable>
<CFBundleIconFile>ErsatzTV.icns</CFBundleIconFile>
<NSPrincipalClass>NSApplication</NSPrincipalClass>
<NSHighResolutionCapable>true</NSHighResolutionCapable>
</PropertyGroup>
<ItemGroup>
@ -25,7 +13,6 @@ @@ -25,7 +13,6 @@
<ItemGroup>
<PackageReference Include="Blazored.LocalStorage" Version="4.1.5" />
<PackageReference Include="DotNet.Bundle" Version="0.9.13" />
<PackageReference Include="FluentValidation" Version="10.3.6" />
<PackageReference Include="FluentValidation.AspNetCore" Version="10.3.6" />
<PackageReference Include="HtmlSanitizer" Version="6.0.453" />

2
scripts/macOS/Info.plist

@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
<key>CFBundleDisplayName</key>
<string>ErsatzTV</string>
<key>CFBundleExecutable</key>
<string>launcher.sh</string>
<string>ErsatzTV</string>
<key>CFBundleIconFile</key>
<string>ErsatzTV.icns</string>
<key>CFBundleIdentifier</key>

1
scripts/macOS/bundle.sh

@ -23,4 +23,3 @@ mkdir "$APP_NAME/Contents/Resources" @@ -23,4 +23,3 @@ 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/"

9
scripts/macOS/launcher.sh

@ -1,9 +0,0 @@ @@ -1,9 +0,0 @@
#! /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