get_profile.spec 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # -*- mode: python -*-
  2. block_cipher = None
  3. import sys
  4. sys.modules['FixTk'] = None
  5. a = Analysis(['get_profile.py'],
  6. pathex=['../protobuf'],
  7. binaries=[],
  8. datas=[],
  9. hiddenimports=[],
  10. hookspath=[],
  11. runtime_hooks=[],
  12. excludes=['FixTk', 'tcl', 'tk', '_tkinter', 'tkinter', 'Tkinter'],
  13. win_no_prefer_redirects=False,
  14. win_private_assemblies=False,
  15. cipher=block_cipher,
  16. noarchive=False)
  17. pyz = PYZ(a.pure, a.zipped_data,
  18. cipher=block_cipher)
  19. exe = EXE(pyz,
  20. a.scripts,
  21. a.binaries,
  22. a.zipfiles,
  23. a.datas,
  24. [],
  25. name='get_profile',
  26. debug=False,
  27. bootloader_ignore_signals=False,
  28. strip=False,
  29. upx=True,
  30. runtime_tmpdir=None,
  31. console=True )
  32. import subprocess
  33. subprocess.call(['C:\\Program Files (x86)\\Windows Kits\\10\\App Certification Kit\\signtool.exe', 'sign',
  34. '/f', '..\\ssl\\cert-zwift-com.p12', '/fd', 'sha1',
  35. '/t', 'http://timestamp.digicert.com',
  36. 'dist\\get_profile.exe'])