-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Set up signing * Use branch for build-tools * ref naming * Path/Pattern * Add vsce publishing * Revert 1es-redirect.yml * Add file paths explicitly
- Loading branch information
1 parent
16a2603
commit 5a52dbf
Showing
4 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
param( | ||
[string]$Path = "$PSScriptRoot../../vsix" | ||
) | ||
|
||
$originalLocation = Get-Location | ||
try { | ||
Set-Location $Path | ||
$extensions = Get-ChildItem -Filter *.vsix -Recurse -File | ||
foreach ($extension in $extensions) { | ||
Write-Host "Generating signing manifest for $extension" | ||
$manifestName = "$($extension.BaseName).manifest" | ||
$signatureName = "$($extension.BaseName).signature.p7s" | ||
|
||
npm exec --yes @vscode/vsce@latest -- generate-manifest --packagePath "$($extension.FullName)" -o $manifestName | Write-Host | ||
if ($LASTEXITCODE) { | ||
Write-Host "Failed to generate signing manifest for $extension" | ||
exit $LASTEXITCODE | ||
} | ||
|
||
Copy-Item $manifestName $signatureName | ||
} | ||
} finally { | ||
Set-Location $originalLocation | ||
} |