diff options
Diffstat (limited to 'build/CreateRelease.GUI.ps1')
-rw-r--r-- | build/CreateRelease.GUI.ps1 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/build/CreateRelease.GUI.ps1 b/build/CreateRelease.GUI.ps1 new file mode 100644 index 0000000..1312b43 --- /dev/null +++ b/build/CreateRelease.GUI.ps1 @@ -0,0 +1,10 @@ +cd $PSScriptRoot +cd .. +$version = (Get-Command UVtools.GUI\bin\Release\UVtools.Core.dll).FileVersionInfo.FileVersion + +Remove-Item "UVtools.GUI\bin\Release\Logs" -Recurse -ErrorAction Ignore + +Add-Type -A System.IO.Compression.FileSystem +[IO.Compression.ZipFile]::CreateFromDirectory("UVtools.GUI\bin\Release", "UVtools.GUI\bin\UVtools_v$version.zip") + +Copy-Item "UVtools.Installer\bin\Release\UVtools.msi" -Destination "UVtools.GUI\bin\UVtools_v$version.msi"
\ No newline at end of file |