Skip to content

Commit 3128991

Browse files
authored
chore: adding additional docs to signAndEditExecutable for windows (#9142)
1 parent a6be444 commit 3128991

File tree

5 files changed

+20
-10
lines changed

5 files changed

+20
-10
lines changed

.changeset/mean-starfishes-deliver.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"app-builder-lib": patch
3+
"builder-util": patch
4+
"dmg-builder": patch
5+
---
6+
7+
chore: adding additional docs to signAndEditExecutable for windows

packages/app-builder-lib/scheme.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6585,7 +6585,7 @@
65856585
},
65866586
"signAndEditExecutable": {
65876587
"default": true,
6588-
"description": "Whether to sign and add metadata to executable. Advanced option.",
6588+
"description": "Whether to sign and add metadata to executable.\nMetadata includes information about the app name/description/version, publisher, copyright, etc.\nThis property also is responsible for adding the app icon and setting execution level.\n(Advanced option leveraging `rcedit`)",
65896589
"type": "boolean"
65906590
},
65916591
"signExts": {

packages/app-builder-lib/src/options/winOptions.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ export interface WindowsConfiguration extends PlatformSpecificBuildOptions {
5252
readonly requestedExecutionLevel?: RequestedExecutionLevel | null
5353

5454
/**
55-
* Whether to sign and add metadata to executable. Advanced option.
55+
* Whether to sign and add metadata to executable.
56+
* Metadata includes information about the app name/description/version, publisher, copyright, etc.
57+
* This property also is responsible for adding the app icon and setting execution level.
58+
* (Advanced option leveraging `rcedit`)
5659
* @default true
5760
*/
5861
readonly signAndEditExecutable?: boolean

packages/builder-util/src/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export function exec(file: string, args?: Array<string> | null, options?: ExecFi
124124
const code = (error as any).code
125125
// https://github.com/npm/npm/issues/17624
126126
if (code === 1 && (file.toLowerCase().endsWith("npm") || file.toLowerCase().endsWith("npm.cmd")) && args?.includes("list") && args?.includes("--silent")) {
127-
console.error({ file, code }, error.message)
127+
log.debug({ file, code, message: error.message }, "`npm list` returned non-zero exit code, but it is expected (https://github.com/npm/npm/issues/17624)")
128128
resolve(stdout.toString())
129129
return
130130
}

packages/dmg-builder/src/dmg.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -206,13 +206,13 @@ async function createStageDmg(tempDmg: string, appPath: string, volumeName: stri
206206
imageArgs.push("-fs", "APFS")
207207
imageArgs.push(tempDmg)
208208
await hdiUtil(imageArgs).catch(async e => {
209-
if (hdiutilTransientExitCodes.has(e.code)) {
210-
// Delay then create, then retry with verbose output
211-
await new Promise(resolve => setTimeout(resolve, 3000))
212-
return hdiUtil(addLogLevel(createArgs, true))
213-
}
214-
throw e
215-
})
209+
if (hdiutilTransientExitCodes.has(e.code)) {
210+
// Delay then create, then retry with verbose output
211+
await new Promise(resolve => setTimeout(resolve, 3000))
212+
return hdiUtil(addLogLevel(createArgs, true))
213+
}
214+
throw e
215+
})
216216
return tempDmg
217217
}
218218

0 commit comments

Comments
 (0)