Skip to content

Commit

Permalink
wip pyinstaller spec
Browse files Browse the repository at this point in the history
  • Loading branch information
m4rc1e committed Nov 9, 2021
1 parent e97eb83 commit 86800fb
Showing 1 changed file with 100 additions and 0 deletions.
100 changes: 100 additions & 0 deletions gftools.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
# -*- mode: python ; coding: utf-8 -*-
from PyInstaller.utils.hooks import collect_all

datas = []
binaries = [('venv/lib/python3.9/site-packages/freetype/libfreetype.dylib', '.')]
hiddenimports = []
tmp_ret = collect_all('gftools')
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
tmp_ret = collect_all('glyphsLib')
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]





qa_a = Analysis(['bin/gftools-qa.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
noarchive=False)

builder_a = Analysis(['bin/gftools-builder.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
noarchive=False)


MERGE((qa_a, 'gftools-qa', 'bin/gftools-qa.py'), (builder_a, 'gftools-builder', 'bin/gftools-builder.py'))



qa_pyz = PYZ(qa_a.pure)

qa_exe = EXE(qa_pyz,
qa_a.scripts,
[],
exclude_binaries=True,
name='gftools-qa',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=True,
disable_windowed_traceback=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None )

qa_coll = COLLECT(qa_exe,
qa_a.binaries,
qa_a.zipfiles,
qa_a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='gftools-qa')




builder_pyz = PYZ(builder_a.pure)

builder_exe = EXE(builder_pyz,
builder_a.scripts,
[],
exclude_binaries=True,
name='gftools-builder',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=True,
disable_windowed_traceback=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None )

builder_coll = COLLECT(builder_exe,
builder_a.binaries,
builder_a.zipfiles,
builder_a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='gftools-builder')

0 comments on commit 86800fb

Please sign in to comment.