You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./Shutdown Scheduler.app: invalid Info.plist (plist or signature have been modified)
In architecture: arm64
the problem is fixed by manually running codesign on the generated app.
command: codesign --force --deep --sign - ./Shutdown\ Scheduler.app
result: ./Shutdown Scheduler.app: replacing existing signature
Pre-flight checklist
Electron Forge version
7.5.0
Electron version
v33.0.2
Operating system
macOS Sonoma Version 14.3.1
Last known working Electron Forge version
No response
Expected behavior
app should for permission to administer computer in both the bundled version and dev mode
Actual behavior
app fails to ask for permission in bundled version
Steps to reproduce
Additional information
My app runs some commands with
child_process.exec
which prompt the user to accept some permissions likethis popup shows up in dev mode but fails to show up when the app is packaged.
running codesign verification fails on the generated app bundle
command
codesign --verify --deep --strict --verbose=2 ./Shutdown\ Scheduler.app
result:
the problem is fixed by manually running codesign on the generated app.
command:
codesign --force --deep --sign - ./Shutdown\ Scheduler.app
result:
./Shutdown Scheduler.app: replacing existing signature
verify again:
command:
codesign --verify --deep --strict --verbose=2 ./Shutdown\ Scheduler.app
result:
now the app correctly asks for permissions.
i debugged and found that resigning makes a few changes.
in
Shutdown Scheduler.app/Contents/_CodeSignature/CodeResources
the keys below are deleted:and replaced by
folder contents use the correct name in package.json
which i believe means that somewhere in the packaging process, the configured app name is not used and falls back the default name
Electron
I tried removing spaces and uppercase letters but the problem persists
package.json
The text was updated successfully, but these errors were encountered: