Skip to content

Commit

Permalink
fix(windows,code-sign): cannot sign binary files
Browse files Browse the repository at this point in the history
Fixed: #7729 #8055

Signed-off-by: Kevin Cui <[email protected]>
  • Loading branch information
BlackHole1 committed Jul 29, 2024
1 parent 977acaf commit 5f9f791
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/app-builder-lib/src/codeSign/windowsCodeSign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,7 @@ export interface CertificateFromStoreInfo {
export async function getCertificateFromStoreInfo(options: WindowsConfiguration, vm: VmManager): Promise<CertificateFromStoreInfo> {
const certificateSubjectName = options.certificateSubjectName
const certificateSha1 = options.certificateSha1 ? options.certificateSha1.toUpperCase() : options.certificateSha1
// ExcludeProperty doesn't work, so, we cannot exclude RawData, it is ok
// powershell can return object if the only item
const rawResult = await vm.exec("powershell.exe", [
const rawResult = await vm.exec("pwsh.exe", [
"-NoProfile",
"-NonInteractive",
"-Command",
Expand Down

0 comments on commit 5f9f791

Please sign in to comment.