-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdeploy
executable file
·39 lines (38 loc) · 1.61 KB
/
deploy
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
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
rm -rf PMDC/RogueEssence/publish/win-x64/
rm -rf PMDC/RogueEssence/publish/win-x86/
rm -rf PMDC/RogueEssence/publish/linux-x64/
rm -rf PMDC/RogueEssence/publish/osx-x64/
rm -rf PMDC/publish/win-x64/
rm -rf PMDC/publish/win-x86/
rm -rf PMDC/publish/linux-x64/
rm -rf PMDC/publish/osx-x64/
dotnet publish -c Release -r win-x64 PMDC/PMDC/PMDC.csproj
dotnet publish -c Release -r win-x86 PMDC/PMDC/PMDC.csproj
dotnet publish -c Release -r linux-x64 PMDC/PMDC/PMDC.csproj
dotnet publish -c Release -r osx-x64 PMDC/PMDC/PMDC.csproj
dotnet publish -c Release -r win-x64 PMDC/RogueEssence/WaypointServer/WaypointServer.csproj
dotnet publish -c Release -r win-x86 PMDC/RogueEssence/WaypointServer/WaypointServer.csproj
dotnet publish -c Release -r linux-x64 PMDC/RogueEssence/WaypointServer/WaypointServer.csproj
dotnet publish -c Release -r osx-x64 PMDC/RogueEssence/WaypointServer/WaypointServer.csproj
mv PMDC/RogueEssence/publish/win-x64/WaypointServer/ PMDC/publish/win-x64/
mv PMDC/RogueEssence/publish/win-x86/WaypointServer/ PMDC/publish/win-x86/
mv PMDC/RogueEssence/publish/linux-x64/WaypointServer/ PMDC/publish/linux-x64/
mv PMDC/RogueEssence/publish/osx-x64/WaypointServer.app/ PMDC/publish/osx-x64/
cd PMDC/publish/win-x64/
mv PMDC/PMDC.exe PMDC/PMDO.exe
mv PMDC/ PMDO/
zip -r windows-x64.zip PMDO/ WaypointServer/
cd ../win-x86/
mv PMDC/PMDC.exe PMDC/PMDO.exe
mv PMDC/ PMDO/
zip -r windows-x86.zip PMDO/ WaypointServer/
cd ../linux-x64/
mv PMDC/PMDC PMDC/PMDO
mv PMDC/ PMDO/
zip -r linux-x64.zip PMDO/ WaypointServer/
cd ../osx-x64/
mv PMDC/PMDC PMDC/PMDO
mv PMDC/ PMDO/
zip -r osx-x64.zip PMDO/ WaypointServer.app/
echo "Complete."