You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.5 KiB

  1. # -*- mode: python ; coding: utf-8 -*-
  2. # Nasty hack to get the version number included automatically
  3. with open('_version.py', 'r') as versinfo:
  4. exec(versinfo.read())
  5. block_cipher = None
  6. a = Analysis(['/Users/ivan/Code/chordsheet/gui.py'],
  7. pathex=['/Users/ivan/Code/chordsheet'],
  8. binaries=[],
  9. datas=[
  10. ('fonts', 'fonts'),
  11. ('ui', 'ui')
  12. ],
  13. hiddenimports=[],
  14. hookspath=[],
  15. runtime_hooks=[],
  16. excludes=[],
  17. win_no_prefer_redirects=False,
  18. win_private_assemblies=False,
  19. cipher=block_cipher,
  20. noarchive=False)
  21. pyz = PYZ(a.pure, a.zipped_data,
  22. cipher=block_cipher)
  23. exe = EXE(pyz,
  24. a.scripts,
  25. a.binaries,
  26. a.zipfiles,
  27. a.datas,
  28. [],
  29. name=appName,
  30. debug=False,
  31. bootloader_ignore_signals=False,
  32. strip=False,
  33. upx=True,
  34. upx_exclude=[],
  35. runtime_tmpdir=None,
  36. console=False )
  37. app = BUNDLE(exe,
  38. name=exe.name + '.app',
  39. icon='ui/icon.icns',
  40. bundle_identifier="uk.co.ivanholmes.chordsheet",
  41. info_plist={
  42. 'CFBundleShortVersionString': version,
  43. 'NSPrincipalClass': 'NSApplication',
  44. 'NSHighResolutionCapable': 'True',
  45. 'NSHumanReadableCopyright': "© Ivan Holmes, 2020. Some rights reserved."
  46. }
  47. )