Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 committed Jun 3, 2024
1 parent 87fcf52 commit ac401b7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1850,10 +1850,13 @@ export async function signPackage(packageFile: string, signScript: string): Prom
const signatureFile = path.join(packageFolder, `${packageName}.signature.p7s`);
const signatureZip = path.join(packageFolder, `${packageName}.signature.zip`);

// Generate the signature manifest file
await generateManifest(packageFile, manifestFile);
const { stdout } = await promisify(cp.execFile)(signScript, [manifestFile, signatureFile]);
console.log(stdout);

// Sign the manifest file to generate the signature file
cp.spawnSync(signScript, [manifestFile, signatureFile], { stdio: 'inherit' });

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

Expand Down

0 comments on commit ac401b7

Please sign in to comment.