Skip to content

Commit

Permalink
New publish with .NET Framework
Browse files Browse the repository at this point in the history
  • Loading branch information
PJB3005 committed Apr 20, 2019
1 parent a6cc00e commit d3427c8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
5 changes: 5 additions & 0 deletions PublishFiles/SS14.Launcher
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

cd "$(dirname "$0")"

exec mono SS14.Launcher.exe
24 changes: 9 additions & 15 deletions publish.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
#!/bin/sh

cd "$(dirname "$0")"

rm -r **/bin
rm -r **/obj

rm SS14.Launcher_Linux_x64.zip
rm SS14.Launcher_Windows_x64.zip
rm SS14.Launcher_macOS_x64.zip
nuget restore SS14.Launcher.sln
msbuild /p:Configuration=Release /p:TargetFramework=net472 SS14.Launcher.sln

cp PublishFiles/SS14.Launcher SS14.Launcher/bin/Release/net472/

dotnet publish --self-contained --runtime linux-x64 -c release /p:TrimUnusedDependencies=true
pushd SS14.Launcher/bin/Release/netcoreapp2.2/linux-x64/publish
zip -r ../../../../../../SS14.Launcher_Linux_x64.zip *
popd
dotnet publish --self-contained --runtime win-x64 -c release /p:TrimUnusedDependencies=true /p:LinkDuringPublish=false
pushd SS14.Launcher/bin/Release/netcoreapp2.2/win-x64/publish
zip -r ../../../../../../SS14.Launcher_Windows_x64.zip *
popd
dotnet publish --self-contained --runtime osx-x64 -c release /p:TrimUnusedDependencies=true /p:LinkDuringPublish=false
pushd SS14.Launcher/bin/Release/netcoreapp2.2/osx-x64/publish
zip -r ../../../../../../SS14.Launcher_macOS_x64.zip *
pushd SS14.Launcher/bin/Release/net472/
rm *.pdb
zip -r ../../../../SS14.Launcher_all_platforms.zip *
popd

0 comments on commit d3427c8

Please sign in to comment.