Skip to content

Can I build a .app in such a way that I can later edit some information in it without Mac quarantining it? #8885

Answered by rokm
Shotgunosine asked this question in Help
Discussion options

You must be logged in to vote

If you modify .app bundle, you will need to re-sign it using the codesign utility (this applies both to modifications of Info.plist and addition/removal of files in the bundle).

See

# Sign the bundle
logger.info('Signing the BUNDLE...')
try:
osxutils.sign_binary(self.name, self.codesign_identity, self.entitlements_file, deep=True)
except Exception as e:
# Display a warning or re-raise the error, depending on the environment-variable setting.
if os.environ.get("PYINSTALLER_STRICT_BUNDLE_CODESIGN_ERROR", "0") == "0":
logger.warning("Error while signing the bundle: %s", e)
l…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@Shotgunosine
Comment options

@rokm
Comment options

rokm Nov 19, 2024
Maintainer

@Shotgunosine
Comment options

Answer selected by Shotgunosine
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants