Skip to content

Commit

Permalink
Correct post build script to fix incorrect zip structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPurple6411 committed Dec 24, 2022
1 parent 96c8def commit ccb7458
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Scripts/SMLHelper-post-build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ $buildPath = switch ($ConfigurationName.ToUpper())
default { "Modding Helper" }
}

$pluginsDir = [System.IO.Path]::Combine($TargetDir, "plugins")
$pluginsDir = [System.IO.Path]::Combine($ProjectDir, "bin", $ConfigurationName, "plugins")

# Remove build dir and create fresh
# Remove prep dir and create fresh
if (Test-Path $pluginsDir)
{
$null = Remove-Item -Path $pluginsDir -Force -Recurse
Expand All @@ -78,7 +78,7 @@ foreach ($file in "SMLHelper.xml", "SMLHelper.dll")

# Zip the standard QMod build
$buildZipPath = [System.IO.Path]::Combine($TargetDir, "SMLHelper_$($ConfigurationName).zip")
$null = Zip -Path $buildDir -DestinationPath $buildZipPath -Fresh
$null = Zip -Path $pluginsDir -DestinationPath $buildZipPath -Fresh

# Zip the Thunderstore build
$thunderstoreMetadataPath = [System.IO.Path]::Combine($ProjectDir, "ThunderstoreMetadata", $ConfigurationName, "*")
Expand Down

0 comments on commit ccb7458

Please sign in to comment.