File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,12 +64,18 @@ if ("$Env:APPVEYOR_REPO_TAG" -eq "false" -and -Not $Script:PublicTestBuild) {
6464 Move-Item $Env: APPVEYOR_BUILD_FOLDER \src\release\* $SQUIRRELWINBIN
6565
6666 Write-Output " === Creating Nuget package ==="
67+ $Script :NuSpec = " C:\projects\installers\windows\mudlet.nuspec"
6768 if ($Script :PublicTestBuild ) {
69+ # Squirrel takes the Windows start menu shortcut name from the nuspec filename
70+ Rename-Item - Path " $Script :NuSpec " - NewName " Mudlet (PTB).nuspec"
71+ $Script :NuSpec = " C:\projects\installers\windows\Mudlet (PTB).nuspec"
6872 # allow public test builds to be installed side by side with the release builds by renaming the app
69- # no dots in the <id>: https://github.com/Squirrel/Squirrel.Windows/blob/master/docs/using/naming.md
70- $Script :NuSpec = " C:\projects\installers\windows\mudlet.nuspec"
73+ # no dots ot spaces in the <id>: https://github.com/Squirrel/Squirrel.Windows/blob/master/docs/using/naming.md
7174 (Get-Content " $Script :NuSpec " ).replace(' <id>Mudlet</id>' , ' <id>Mudlet-PublicTestBuild</id>' ) | Set-Content " $Script :NuSpec "
7275 (Get-Content " $Script :NuSpec " ).replace(' <title>Mudlet</title>' , ' <title>Mudlet (Public Test Build)</title>' ) | Set-Content " $Script :NuSpec "
76+ } else {
77+ Rename-Item - Path " $Script :NuSpec " - NewName " Mudlet.nuspec"
78+ $Script :NuSpec = " C:\projects\installers\windows\Mudlet.nuspec"
7379 }
7480 nuget pack " $Script :NuSpec " - Version " $Script :VersionAndSha " - BasePath $SQUIRRELWIN - OutputDirectory $SQUIRRELWIN
7581
You can’t perform that action at this time.
0 commit comments