Skip to content

Commit

Permalink
macOS launcher app bundle.
Browse files Browse the repository at this point in the history
  • Loading branch information
PJB3005 committed May 3, 2019
1 parent 97e00c9 commit 1081167
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 4 deletions.
20 changes: 20 additions & 0 deletions PublishFiles/Space Station 14 Launcher.app/Contents/Info.plist
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleName</key>
<string>SS14L</string>
<key>CFBundleDisplayName</key>
<string>Space Station 14 Launcher</string>
<key>CFBundleExecutable</key>
<string>SS14</string>
<!--
Just a note about this icon.
MacOS seems REALLY iffy about this and even when the file is correct,
it can take forever before it decides to actually update it and display it.
TL;DR Apple is stupid.
-->
<key>CFBundleIconFile</key>
<string>ss14</string>
</dict>
</plist>
@@ -0,0 +1,8 @@
#!/bin/sh

# cd to file containing script or something?
BASEDIR=$(dirname "$0")
echo "$BASEDIR"
cd "$BASEDIR"

exec /Library/Frameworks/Mono.framework/Versions/Current/Commands/mono ../Resources/SS14.Launcher.exe
Binary file not shown.
30 changes: 26 additions & 4 deletions publish.sh
Expand Up @@ -2,14 +2,36 @@

cd "$(dirname "$0")"

# Clear out previous build.
rm -r **/bin

# Run build.
nuget restore SS14.Launcher.sln
msbuild /p:Configuration=Release /p:TargetFramework=net472 SS14.Launcher.sln
# Delete PDB file.
rm SS14.Launcher/bin/Release/net472/*.pdb

cp PublishFiles/SS14.Launcher SS14.Launcher/bin/Release/net472/
# Create intermediate directories.
mkdir -p bin/publish/macOS
mkdir -p bin/publish/Windows
mkdir -p bin/publish/Linux

pushd SS14.Launcher/bin/Release/net472/
rm *.pdb
zip -r ../../../../SS14.Launcher_all_platforms.zip *
# Linux
cp PublishFiles/SS14.Launcher bin/publish/Linux
cp SS14.Launcher/bin/Release/net472/* bin/publish/Linux
pushd bin/publish/Linux
zip -r ../../../SS14.Launcher_Linux.zip *
popd

# Windows
cp SS14.Launcher/bin/Release/net472/* bin/publish/Windows
pushd bin/publish/Windows
zip -r ../../../SS14.Launcher_Windows.zip *
popd

# macOS
cp -r "PublishFiles/Space Station 14 Launcher.app" bin/publish/macOS
cp SS14.Launcher/bin/Release/net472/* "bin/publish/macOS/Space Station 14 Launcher.app/Contents/Resources/"
pushd bin/publish/macOS
zip -r ../../../SS14.Launcher_macOS.zip *
popd

0 comments on commit 1081167

Please sign in to comment.