forked from Visne/SS14.Launcher
-
Notifications
You must be signed in to change notification settings - Fork 3
/
publish_osx.sh
executable file
·29 lines (21 loc) · 1.38 KB
/
publish_osx.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
cd "$(dirname "$0")"
./download_net_runtime.py mac
# Clear out previous build.
rm -r **/bin bin/publish/macOS
rm SSMV.Launcher_macOS.zip
dotnet publish SS14.Launcher/SS14.Launcher.csproj /p:FullRelease=True -c Release --no-self-contained -r osx-x64 /nologo /p:RobustILLink=true
dotnet publish SS14.Loader/SS14.Loader.csproj -c Release --no-self-contained -r osx-x64 /nologo
# Create intermediate directories.
mkdir -p bin/publish/macOS
cp -r "PublishFiles/Space Station Multiverse Launcher.app" bin/publish/macOS
mkdir -p "bin/publish/macOS/Space Station Multiverse Launcher.app/Contents/Resources/dotnet/"
mkdir -p "bin/publish/macOS/Space Station Multiverse Launcher.app/Contents/Resources/bin/"
mkdir -p "bin/publish/macOS/Space Station Multiverse Launcher.app/Contents/Resources/bin/loader/Space Station 14.app/Contents/Resources/bin/"
cp -r Dependencies/dotnet/mac/* "bin/publish/macOS/Space Station Multiverse Launcher.app/Contents/Resources/dotnet/"
cp -r SS14.Launcher/bin/Release/net8.0/osx-x64/publish/* "bin/publish/macOS/Space Station Multiverse Launcher.app/Contents/Resources/bin/"
cp -r SS14.Loader/bin/Release/net8.0/osx-x64/publish/* "bin/publish/macOS/Space Station Multiverse Launcher.app/Contents/Resources/bin/loader/Space Station 14.app/Contents/Resources/bin/"
cp LICENSE.txt bin/publish/macOS/
pushd bin/publish/macOS
zip -r ../../../SSMV.Launcher_macOS.zip *
popd