Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'build/CreateRelease.GUI.ps1')
-rw-r--r--build/CreateRelease.GUI.ps110
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