-
Notifications
You must be signed in to change notification settings - Fork 23
/
build.ps1
14 lines (14 loc) · 866 Bytes
/
build.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
dotnet publish -c release
if (Test-Path "bin\Build\") {
Remove-Item -Path "bin\Build\" -Recurse
}
if (Test-Path "bin\PKHeXPluginPile.zip") {
Remove-Item -Path "bin\PKHeXPluginPile.zip"
}
New-Item -Path "bin\" -Name "Build" -ItemType "directory"
New-Item -Path "bin\" -Name "Build\Individual" -ItemType "directory"
Copy-Item -Path "bin\x64\Release\net8.0-windows\publish\PluginPile.*.dll" -Destination "bin\Build\Individual" -Exclude "PluginPile.Common.dll","PluginPile.Unmaintained.*.dll"
Copy-Item -Path "bin\x64\Release\net8.0-windows\publish\PluginPile.dll" -Destination "bin\Build"
New-Item -Path "bin\" -Name "Build\Unmaintained" -ItemType "directory"
Copy-Item -Path "bin\x64\Release\net8.0-windows\publish\PluginPile.Unmaintained.*.dll" -Destination "bin\Build\Unmaintained"
Compress-Archive -Path "bin\Build\*" -DestinationPath "bin\PKHeXPluginPile.zip"