Skip to content

Instantly share code, notes, and snippets.

@BoboTiG
Created June 12, 2018 12:11
Show Gist options
  • Save BoboTiG/2e5790792f29136ad9814d1a836538f3 to your computer and use it in GitHub Desktop.
Save BoboTiG/2e5790792f29136ad9814d1a836538f3 to your computer and use it in GitHub Desktop.
# -*- mode: python -*-
block_cipher = None
icon = '/Applications/Calculator.app/Contents/Resources/AppIcon.icns' # Eventually change me
a = Analysis(['systray.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
exclude_binaries=True,
name='systray',
debug=False,
strip=False,
upx=False,
icon=icon,
console=False)
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=False,
name='systray')
# Play with no value and then one value at a time
info_plist = {
#'LSUIElement': True,
#'LSBackgroundOnly': True,
}
app = BUNDLE(coll,
name='systray.app',
icon=icon,
info_plist=info_plist,
bundle_identifier=None)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment