Skip to content

Commit de2115b

Browse files
committed
Another take at unique the Windows start menu
1 parent 36b807a commit de2115b

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

CI/appveyor.after_success.ps1

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)