forked from space-wizards/SS14.Launcher
-
Notifications
You must be signed in to change notification settings - Fork 1
/
publish_osx.sh
executable file
·28 lines (20 loc) · 1.29 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
#!/bin/bash
cd "$(dirname "$0")"
./download_net_runtime.py mac
# Clear out previous build.
rm -r **/bin bin/publish/macOS
rm SS14.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 14 Launcher.app" bin/publish/macOS
mkdir -p "bin/publish/macOS/Space Station 14 Launcher.app/Contents/Resources/dotnet/"
mkdir -p "bin/publish/macOS/Space Station 14 Launcher.app/Contents/Resources/bin/"
mkdir -p "bin/publish/macOS/Space Station 14 Launcher.app/Contents/Resources/bin/loader/Space Station 14.app/Contents/Resources/bin/"
cp -r Dependencies/dotnet/mac/* "bin/publish/macOS/Space Station 14 Launcher.app/Contents/Resources/dotnet/"
cp -r SS14.Launcher/bin/Release/net8.0/osx-x64/publish/* "bin/publish/macOS/Space Station 14 Launcher.app/Contents/Resources/bin/"
cp -r SS14.Loader/bin/Release/net8.0/osx-x64/publish/* "bin/publish/macOS/Space Station 14 Launcher.app/Contents/Resources/bin/loader/Space Station 14.app/Contents/Resources/bin/"
pushd bin/publish/macOS
zip -r ../../../SS14.Launcher_macOS.zip *
popd