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
importosfromsetuptoolsimportsetup# If not set possibly could result in a blank window issueos.environ['MACOSX_DEPLOYMENT_TARGET'] ="10.9"APP_VERSION='1.0.0'OPTIONS= {
'packages' : ['cefpython3', 'objc', 'json', 'urllib'],
# 'iconfile' : 'appicon.icns','plist' : {
'CFBundleIdentifier' : 'hello.world',
'CFBundleShortVersionString' : APP_VERSION,
'CFBundleVersion' : APP_VERSION,
}
}
setup(
name="Hello World",
app=["hello_world.py"],
data_files=[],
options={'py2app': OPTIONS},
setup_requires=['py2app']
)
CEF Python expects a certain directory structure and if py2app uses a different structure then you have to set these paths manually, for example with such code:
Activity
[-]Example of packaging using py2app[/-][+]Example of packaging using app py2app[/+][-]Example of packaging using app py2app[/-][+]Example of packaging app using py2app[/+]