Skip to content

Commit

Permalink
First pass at using pyinstaller to build apps.
Browse files Browse the repository at this point in the history
  • Loading branch information
skydeo committed Apr 22, 2019
1 parent f2b1923 commit ceb2d1c
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ LacCore_Holes*
project_data*
project_location_data*
CSDCO.sqlite3
build/*
dist/*
__pycache__/*
34 changes: 34 additions & 0 deletions build.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import gooey
gooey_root = os.path.dirname(gooey.__file__)
gooey_languages = Tree(os.path.join(gooey_root, 'languages'), prefix = 'gooey/languages')
gooey_images = Tree(os.path.join(gooey_root, 'images'), prefix = 'gooey/images')
a = Analysis(['csdco-metadata-aggregator.py'],
pathex=['~'],
hiddenimports=[],
hookspath=None,
runtime_hooks=None,
)
pyz = PYZ(a.pure)

options = [('u', None, 'OPTION'), ('u', None, 'OPTION'), ('u', None, 'OPTION')]

exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
options,
gooey_languages, # Add them in to collected files
gooey_images, # Same here.
name='CSDCO Metadata Aggregator.exe',
debug=False,
strip=None,
upx=True,
console=False,
windowed=True,
icon=os.path.join(gooey_root, 'images', 'program_icon.ico'))

app = BUNDLE(exe,
name='CSDCO Metadata Aggregator.app',
icon=None,
bundle_identifier=None)

0 comments on commit ceb2d1c

Please sign in to comment.