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 manully running codesign on the generated app.
command: codesign --force --deep --sign - ./Shutdown\ Scheduler.app
result: ./Shutdown Scheduler.app: replacing existing signature
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:
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
The text was updated successfully, but these errors were encountered:
hichemfantar
changed the title
Packaged MacOS app runs but fails to ask for permission to administer computer
Packaged MacOS app fails to ask for permission to administer computer
Nov 10, 2024
hichemfantar
changed the title
Packaged MacOS app fails to ask for permission to administer computer
Packaged MacOS app fails to ask for permission to administer computer (likely due to misconfigured code signature resources)
Nov 10, 2024
My app runs some commands with
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 bundled into zip.
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 manully running codesign on the generated app.
command:
codesign --force --deep --sign - ./Shutdown\ Scheduler.app
result:
./Shutdown Scheduler.app: replacing existing signature
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
The text was updated successfully, but these errors were encountered: