Rename post build script

This commit is contained in:
Jeremy Wu 2020-04-23 22:32:06 +10:00
parent c7fd64aff0
commit 51ab1e6586
2 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
<?xml version="1.0"?>
<package>
<metadata>
<id>Flow.Launcher-JJW24</id>
<id>Flow.Launcher</id>
<title>Flow Launcher</title>
<version>$version$</version>
<authors>happlebao, Jeremy Wu</authors>

View file

@ -74,7 +74,7 @@ function Zip-Release ($path, $version, $output) {
$input = "$path\Output\Release"
Write-Host "Input path: $input"
$file = "$output\Flow.Launcher-JJW24-$version.zip"
$file = "$output\Flow.Launcher-$version.zip"
Write-Host "Filename: $file"
[Reflection.Assembly]::LoadWithPartialName("System.IO.Compression.FileSystem")
@ -93,7 +93,7 @@ function Pack-Squirrel-Installer ($path, $version, $output) {
Write-Host "Input path: $input"
Nuget pack $spec -Version $version -Properties Configuration=Release -BasePath $input -OutputDirectory $output
$nupkg = "$output\Flow.Launcher-JJW24.$version.nupkg"
$nupkg = "$output\Flow.Launcher.$version.nupkg"
Write-Host "nupkg path: $nupkg"
$icon = "$path\Flow.Launcher\Resources\app.ico"
Write-Host "icon: $icon"
@ -107,7 +107,7 @@ function Pack-Squirrel-Installer ($path, $version, $output) {
Move-Item $temp\* $output -Force
Remove-Item $temp
$file = "$output\Flow.Launcher-JJW24-$version.exe"
$file = "$output\Flow.Launcher-$version.exe"
Write-Host "Filename: $file"
Move-Item "$output\Setup.exe" $file -Force