Skip to content

Instantly share code, notes, and snippets.

@ben-hearn-sb
Created January 11, 2021 09:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ben-hearn-sb/4bea2a9975455e7c7e71aedc41b8c867 to your computer and use it in GitHub Desktop.
Save ben-hearn-sb/4bea2a9975455e7c7e71aedc41b8c867 to your computer and use it in GitHub Desktop.
pyinstaller code for mac
import os
current_dir = os.path.dirname(os.path.dirname(__file__))
PyInstaller.__main__.run([
'--name=%s' % '__eTrax_mac (0.9.2 beta)',
'--distpath=%s' % '/Users/benhearn/Documents/etrax_build/mac/dist',
'--workpath=%s' % '/Users/benhearn/Documents/etrax_build/mac/build',
'--paths=%s' % '/Users/benhearn/Documents/etrax/venv/src/etrax',
'--add-data=%s' % '/usr/local/lib/python3.7/site-packages/ftfy/char_classes.dat:ftfy',
'--add-data=%s' % '/Users/benhearn/Documents/collection_cleanup/venv/src/collection_cleanup/etrax/icons/*.png:etrax/icons',
'--noconfirm',
'--onefile',
'--debug=all',
'--windowed',
#'--noconsole',
os.path.join(current_dir+'/etrax/', 'main.py')
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment