Skip to content

Commit 36ab473

Browse files
committed
Produce a static VSIX package name on AppVeyor
This change causes our build script to always produce a VSIX package called PowerShell-insiders.vsix so that PowerShell scripts can easily download the packages using the permalink: https://www.appveyor.com/docs/packaging-artifacts/#permalink-to-the-last-successful-build-artifact
1 parent 4d440d3 commit 36ab473

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

vscode-powershell.build.ps1

+5-2
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,16 @@ task Package {
9393
Copy-Item -Recurse -Force ..\PowerShellEditorServices\module\PowerShellEditorServices .\modules
9494
}
9595

96-
Write-Host "`n### Packaging PowerShell-$($script:ExtensionVersion).vsix`n" -ForegroundColor Green
96+
Write-Host "`n### Packaging PowerShell-insiders.vsix`n" -ForegroundColor Green
9797
exec { & node ./node_modules/vsce/out/vsce package }
98+
99+
# Change the package to have a static name for automation purposes
100+
Move-Item .\PowerShell-$($script:ExtensionVersion).vsix .\PowerShell-insiders.vsix
98101
}
99102

100103
task UploadArtifacts -If { $env:AppVeyor } {
101104

102-
Push-AppveyorArtifact .\PowerShell-$($script:ExtensionVersion).vsix
105+
Push-AppveyorArtifact .\PowerShell-insiders.vsix
103106
}
104107

105108
# The default task is to run the entire CI build

0 commit comments

Comments
 (0)