Skip to content

Commit

Permalink
fix(packager): return success status from doSign function calls (#7431)
Browse files Browse the repository at this point in the history
  • Loading branch information
nsrCodes authored Mar 4, 2023
1 parent 22ee62a commit eb842f7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/real-poets-compare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"app-builder-lib": patch
---

fix packager: return success status from doSign function calls
3 changes: 1 addition & 2 deletions packages/app-builder-lib/src/macPackager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ export default class MacPackager extends PlatformPackager<MacConfiguration> {
}

//noinspection JSMethodCanBeStatic
protected async doSign(opts: SignOptions): Promise<any> {
protected doSign(opts: SignOptions): Promise<any> {
return signAsync(opts)
}

Expand Down Expand Up @@ -457,7 +457,6 @@ export default class MacPackager extends PlatformPackager<MacConfiguration> {

const appFileName = `${this.appInfo.productFilename}.app`
await readDirectoryAndSign(packContext.appOutDir, await readdir(packContext.appOutDir), file => file === appFileName)

if (!isAsar) {
return true
}
Expand Down
2 changes: 1 addition & 1 deletion packages/app-builder-lib/src/winPackager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export class WinPackager extends PlatformPackager<WindowsConfiguration> {
const cscInfo = await this.cscInfo.value
if (cscInfo == null) {
if (this.platformSpecificBuildOptions.sign != null) {
await sign(signOptions, this)
return await sign(signOptions, this)
} else if (this.forceCodeSigning) {
throw new InvalidConfigurationError(
`App is not signed and "forceCodeSigning" is set to true, please ensure that code signing configuration is correct, please see https://electron.build/code-signing`
Expand Down

0 comments on commit eb842f7

Please sign in to comment.