Skip to content

Commit cfc734c

Browse files
authored
fix executing sign tool (#988)
1 parent d6bcc3d commit cfc734c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/package.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1843,7 +1843,7 @@ export async function pack(options: IPackageOptions = {}): Promise<IPackageResul
18431843
return { manifest, packagePath, files };
18441844
}
18451845

1846-
export async function signPackage(packageFile: string, signScript: string): Promise<string> {
1846+
export async function signPackage(packageFile: string, signTool: string): Promise<string> {
18471847
const packageFolder = path.dirname(packageFile);
18481848
const packageName = path.basename(packageFile, '.vsix');
18491849
const manifestFile = path.join(packageFolder, `${packageName}.signature.manifest`);
@@ -1854,7 +1854,7 @@ export async function signPackage(packageFile: string, signScript: string): Prom
18541854
await generateManifest(packageFile, manifestFile);
18551855

18561856
// Sign the manifest file to generate the signature file
1857-
cp.spawnSync(signScript, [manifestFile, signatureFile], { stdio: 'inherit' });
1857+
cp.execSync(`${signTool} ${manifestFile} ${signatureFile}`, { stdio: 'inherit' });
18581858

18591859
// Create a signature zip file containing the manifest and signature file
18601860
return zip(manifestFile, signatureFile, signatureZip);

0 commit comments

Comments
 (0)