Appstudio 8.5.7.4 - No longer buidling dmg file “Make Desktop App for Distribution using Electron”
The executable is created in electon/dist/mac folder but no dmg file.
Checking the Appstudio log -
2022-09-23 16:37:46,322 - IDEController - INFO - • electron-builder version=23.3.3 os=21.6.0
2022-09-23 16:37:46,322 - IDEController - INFO - • loaded configuration file=package.json ("build" field)
2022-09-23 16:37:46,322 - IDEController - INFO - • packaging platform=darwin arch=x64 electron=18.3.13 appOutDir=dist/mac
2022-09-23 16:37:46,322 - IDEController - INFO - • skipped macOS application code signing reason=cannot find valid "Developer ID Application" identity or custom non-Apple code signing certificate, it could cause some undefined behaviour, e.g. macOS localized description not visible, see https://electron.build/code-signing allIdentities= 1) 721AFB99A4C53A2D25A8D4B171464C7C06A6E5B9 "com.apple.idms.appleid.prd.73694365455a4b545171322f4a6b502b5062466142673d3d" (CSSMERR_TP_CERT_EXPIRED)
2022-09-23 16:37:46,322 - IDEController - INFO - 2) 8841FE7F8048ADA068520564623CA530C0B8EBCD "gdb-cert" (CSSMERR_TP_NOT_TRUSTED)
2022-09-23 16:37:46,322 - IDEController - INFO - 3) F17E0AB1A37C1CAAD558CF424CF142C547B09A6F "com.apple.idms.appleid.prd.73694365455a4b545171322f4a6b502b5062466142673d3d" (CSSMERR_TP_CERT_EXPIRED)
2022-09-23 16:37:46,322 - IDEController - INFO - 4) 5F46EAC5E69EA06F29F979F9F4590EB1E43A9ED3 "com.apple.idms.appleid.prd.73694365455a4b545171322f4a6b502b5062466142673d3d" (CSSMERR_TP_CERT_EXPIRED)
2022-09-23 16:37:46,322 - IDEController - INFO - 4 identities found
2022-09-23 16:37:46,322 - IDEController - INFO - Valid identities only
2022-09-23 16:37:46,322 - IDEController - INFO - 0 valid identities found
2022-09-23 16:37:46,322 - IDEController - INFO - • building target=macOS zip arch=x64 file=dist/Appointments-1.5.6-mac.zip
2022-09-23 16:37:46,322 - IDEController - INFO - • building target=DMG arch=x64 file=dist/Appointments-1.5.6.dmg
2022-09-23 16:37:46,322 - IDEController - INFO - • building block map blockMapFile=dist/Appointments-1.5.6-mac.zip.blockmap
2022-09-23 16:37:46,323 - IDEController - INFO - ⨯ Exit code: 1. Command failed: which python
2022-09-23 16:37:46,323 - IDEController - INFO - failedTask=build stackTrace=Error: Exit code: 1. Command failed: which python
2022-09-23 16:37:46,323 - IDEController - INFO - at /Users/Projects/Appointments.appstudio/electron/node_modules/builder-util/src/util.ts:133:18
2022-09-23 16:37:46,323 - IDEController - INFO - at ChildProcess.exithandler (node:child_process:404:5)
2022-09-23 16:37:46,323 - IDEController - INFO - at ChildProcess.emit (node:events:390:28)
2022-09-23 16:37:46,323 - IDEController - INFO - at maybeClose (node:internal/child_process:1064:16)
2022-09-23 16:37:46,323 - IDEController - INFO - at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
2022-09-23 16:37:46,323 - IDEController - INFO -
Any ideas…
ghenne
September 23, 2022, 5:48pm
#2
I tried it here, both on Mac OS 12.6 and 10.14.6. Both worked fine.
Can you try deleting the electron
folder in your project, and doing it again?
Done that and still not working.
Does it have anything to do with these certificate messages?
2022-09-23 16:37:46,322 - IDEController - INFO - • packaging platform=darwin arch=x64 electron=18.3.13 appOutDir=dist/mac
2022-09-23 16:37:46,322 - IDEController - INFO - • skipped macOS application code signing reason=cannot find valid "Developer ID Application" identity or custom non-Apple code signing certificate, it could cause some undefined behaviour, e.g. macOS localized description not visible, see https://electron.build/code-signing allIdentities= 1) 721AFB99A4C53A2D25A8D4B171464C7C06A6E5B9 "com.apple.idms.appleid.prd.73694365455a4b545171322f4a6b502b5062466142673d3d" (CSSMERR_TP_CERT_EXPIRED)
2022-09-23 16:37:46,322 - IDEController - INFO - 2) 8841FE7F8048ADA068520564623CA530C0B8EBCD "gdb-cert" (CSSMERR_TP_NOT_TRUSTED)
2022-09-23 16:37:46,322 - IDEController - INFO - 3) F17E0AB1A37C1CAAD558CF424CF142C547B09A6F "com.apple.idms.appleid.prd.73694365455a4b545171322f4a6b502b5062466142673d3d" (CSSMERR_TP_CERT_EXPIRED)
2022-09-23 16:37:46,322 - IDEController - INFO - 4) 5F46EAC5E69EA06F29F979F9F4590EB1E43A9ED3 "com.apple.idms.appleid.prd.73694365455a4b545171322f4a6b502b5062466142673d3d" (CSSMERR_TP_CERT_EXPIRED)
2022-09-23 16:37:46,322 - IDEController - INFO - 4 identities found
ghenne
September 25, 2022, 3:15pm
#4
It could - did you check out the page the error message lists?
https://www.electron.build/code-signing
No I haven’t as yet thank you, whats strange it was working and now has stopped. strange.
Ok, I’ve checked the previous logs and those certificate messages allows appeared, however the messages from the log only appears in this failure to build dmg
2022-09-23 16:37:46,322 - IDEController - INFO - • building block map blockMapFile=dist/Appointments-1.5.6-mac.zip.blockmap
2022-09-23 16:37:46,323 - IDEController - INFO - ⨯ Exit code: 1. Command failed: which python
2022-09-23 16:37:46,323 - IDEController - INFO - failedTask=build stackTrace=Error: Exit code: 1. Command failed: which python
ghenne
September 26, 2022, 2:04pm
#7
The failure of which python
is interesting. We’ll have a closer look at that.
ghenne
September 26, 2022, 3:46pm
#8
Still no luck reproducing it. What is in your Electron package.json property?
ghenne
September 26, 2022, 3:53pm
#9
Actually - any chance you can send me your whole project folder directly?
It does not matter which project even a sample project does not build.
In the /usr/bin folder there is a python3 file but not a python file which the error log shows.
I have managed to resolve it by changing the following parameters.
Delete the elctron folder first.
“electron”: “^18.0.0”,
“electron-builder”: “^23.0.3”,
Thank you.
ghenne
October 3, 2022, 6:17pm
#12
Good thinking. Removing the electron folder forces a complete reload of the electron environment.