@vscode/vsce 2.26.2-1 → 2.26.2-3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/out/main.js CHANGED
@@ -114,7 +114,7 @@ module.exports = function (argv) {
114
114
  .option('--allow-star-activation', 'Allow using * in activation events')
115
115
  .option('--allow-missing-repository', 'Allow missing a repository URL in package.json')
116
116
  .option('--skip-license', 'Allow packaging without license file')
117
- .option('--sign-tool', 'Path to the VSIX signing tool. Will be invoked with two arguments: `SIGNTOOL <path/to/extension.signature.manifest> <path/to/extension.signature.p7s>`.')
117
+ .option('--sign-tool <path>', 'Path to the VSIX signing tool. Will be invoked with two arguments: `SIGNTOOL <path/to/extension.signature.manifest> <path/to/extension.signature.p7s>`.')
118
118
  .action((version, { out, target, ignoreOtherTargetFolders, readmePath, changelogPath, message, gitTagVersion, updatePackageJson, githubBranch, gitlabBranch, rewriteRelativeLinks, baseContentUrl, baseImagesUrl, yarn, ignoreFile, gitHubIssueLinking, gitLabIssueLinking, dependencies, preRelease, allowStarActivation, allowMissingRepository, skipLicense, signTool, }) => main((0, package_1.packageCommand)({
119
119
  packagePath: out,
120
120
  version,
@@ -155,7 +155,7 @@ module.exports = function (argv) {
155
155
  .option('--no-update-package-json', 'Do not update `package.json`. Valid only when [version] is provided.')
156
156
  .option('-i, --packagePath <paths...>', 'Publish the provided VSIX packages.')
157
157
  .option('--sigzipPath <paths...>', 'Signature archives to publish alongside the VSIX packages.')
158
- .option('--sign-tool', 'Path to the VSIX signing tool. Will be invoked with two arguments: `SIGNTOOL <path/to/extension.signature.manifest> <path/to/extension.signature.p7s>`. This will be ignored if --sigzipPath is provided.')
158
+ .option('--sign-tool <path>', 'Path to the VSIX signing tool. Will be invoked with two arguments: `SIGNTOOL <path/to/extension.signature.manifest> <path/to/extension.signature.p7s>`. This will be ignored if --sigzipPath is provided.')
159
159
  .option('--githubBranch <branch>', 'The GitHub branch used to infer relative links in README.md. Can be overridden by --baseContentUrl and --baseImagesUrl.')
160
160
  .option('--gitlabBranch <branch>', 'The GitLab branch used to infer relative links in README.md. Can be overridden by --baseContentUrl and --baseImagesUrl.')
161
161
  .option('--baseContentUrl <url>', 'Prepend all relative links in README.md with the specified URL.')
package/out/package.js CHANGED
@@ -1350,7 +1350,7 @@ async function pack(options = {}) {
1350
1350
  return { manifest, packagePath, files };
1351
1351
  }
1352
1352
  exports.pack = pack;
1353
- async function signPackage(packageFile, signScript) {
1353
+ async function signPackage(packageFile, signTool) {
1354
1354
  const packageFolder = path.dirname(packageFile);
1355
1355
  const packageName = path.basename(packageFile, '.vsix');
1356
1356
  const manifestFile = path.join(packageFolder, `${packageName}.signature.manifest`);
@@ -1359,7 +1359,7 @@ async function signPackage(packageFile, signScript) {
1359
1359
  // Generate the signature manifest file
1360
1360
  await (0, vsce_sign_1.generateManifest)(packageFile, manifestFile);
1361
1361
  // Sign the manifest file to generate the signature file
1362
- cp.spawnSync(signScript, [manifestFile, signatureFile], { stdio: 'inherit' });
1362
+ cp.execSync(`${signTool} ${manifestFile} ${signatureFile}`, { stdio: 'inherit' });
1363
1363
  // Create a signature zip file containing the manifest and signature file
1364
1364
  return (0, vsce_sign_1.zip)(manifestFile, signatureFile, signatureZip);
1365
1365
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vscode/vsce",
3
- "version": "2.26.2-1",
3
+ "version": "2.26.2-3",
4
4
  "description": "VS Code Extensions Manager",
5
5
  "repository": {
6
6
  "type": "git",