mirror of
https://github.com/gwdevhub/Daybreak.git
synced 2026-07-24 03:56:30 +00:00
18 lines
665 B
PowerShell
18 lines
665 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
|
|
Move-Item -Path .\Publish\Daybreak.Installer.exe -Destination .\Publish\Daybreak.Installer.Temp.exe
|
|
$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
|
|
} |