Skip to content

Commit

Permalink
Added: Mod Template to Publish Script
Browse files Browse the repository at this point in the history
  • Loading branch information
Sewer56 committed Jun 11, 2022
1 parent 5a2f97b commit 4fd8997
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/Publish.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ $installerProjectPath = "./Reloaded.Mod.Installer/Reloaded.Mod.Installer.csproj"
$launcherProjectPath = "Reloaded.Mod.Launcher/Reloaded.Mod.Launcher.csproj"
$loaderProjectPath = "Reloaded.Mod.Loader/Reloaded.Mod.Loader.csproj"
$addressDumperProjectPath = "Reloaded.Mod.Launcher.Kernel32AddressDumper/Reloaded.Mod.Launcher.Kernel32AddressDumper.csproj"
$templateProjectPath = "Reloaded.Mod.Template/Reloaded.Mod.Template.Nupkg.csproj"

$communityProjectPath = "Tools/Reloaded.Community.Tool/Reloaded.Community.Tool.csproj"
$nugetConverterProjectPath = "Tools/NugetConverter/NugetConverter.csproj"
Expand All @@ -36,6 +37,7 @@ $publisherProjectPath = "Tools/Reloaded.Publisher/Reloaded.Publisher.csproj"
$publishDirectory = "Publish"
$chocoPublishDirectory = "$publishDirectory/Chocolatey"
$installerPublishDirectory = "$publishDirectory/Installer"
$templatePublishDirectory = "$publishDirectory/ModTemplate"
$releaseFileName = "/Release.zip"
$toolsReleaseFileName = "/Tools.zip"
$cleanupPaths = ("$buildPath", "$toolsPath", "$publishDirectory", "$chocoToolsPath")
Expand Down Expand Up @@ -71,6 +73,9 @@ dotnet publish "$communityProjectPath" -c Release -r win-x64 --self-contained fa
# Build Installer
dotnet publish "$installerProjectPath" -o "$installerPublishDirectory"

# Build Templates
dotnet pack "$templateProjectPath" -o "$templatePublishDirectory"

# Copy 32-bit EXE and cleanup folders.
Move-Item -Path "$outputPath32/Reloaded-II.exe" -Destination "$outputPath/Reloaded-II32.exe"
Remove-Item "$outputPath32" -Recurse -ErrorAction SilentlyContinue
Expand Down

0 comments on commit 4fd8997

Please sign in to comment.