mirror of
https://github.com/gwdevhub/Daybreak.git
synced 2026-07-17 08:09:49 +00:00
230c2d9457
* Setup executable installer * Increment update to 0.9.3 * Improve installer
17 lines
565 B
PowerShell
17 lines
565 B
PowerShell
Param(
|
|
[Parameter(Mandatory=$true)]
|
|
[string]$version
|
|
) #end param
|
|
|
|
Write-Output "Deleting pdb file"
|
|
Remove-item .\Publish\Daybreak.pdb
|
|
Remove-item .\Publish\Daybreak.Installer.pdb
|
|
$zipPath = "Publish\daybreakv$version.zip"
|
|
Write-Output "Compressing binaries to $zipPath"
|
|
Compress-Archive .\Publish\* $zipPath -Force
|
|
Write-Output "Cleaning up files"
|
|
foreach ($file in Get-ChildItem -Path .\Publish -Exclude *.zip -Recurse -ErrorAction SilentlyContinue)
|
|
{
|
|
Write-Output "Removing $file"
|
|
Remove-item $file -Recurse -Force -ErrorAction SilentlyContinue
|
|
} |