Skip to content

Commit

Permalink
add gftool.spec
Browse files Browse the repository at this point in the history
  • Loading branch information
m4rc1e committed Nov 10, 2021
1 parent 70eb869 commit a52ba3a
Showing 1 changed file with 94 additions and 95 deletions.
189 changes: 94 additions & 95 deletions gftools.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,99 +2,98 @@
from PyInstaller.utils.hooks import collect_all

datas = []
binaries = [('venv/lib/python3.9/site-packages/freetype/libfreetype.dylib', '.')]
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')
tmp_ret = collect_all("gftools")
datas += tmp_ret[0]
binaries += tmp_ret[1]
hiddenimports += tmp_ret[2]

# from gftools builder
tmp_ret = collect_all("glyphsLib")
datas += tmp_ret[0]
binaries += tmp_ret[1]
hiddenimports += tmp_ret[2]



block_cipher = None


a_qa = Analysis(
["bin/gftools-qa.py"],
pathex=["."],
binaries=binaries,
datas=datas,
hiddenimports=hiddenimports,
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False,
)
a_builder = Analysis(
["bin/gftools-builder.py"],
pathex=["."],
binaries=binaries,
datas=datas,
hiddenimports=hiddenimports,
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False,
)

MERGE(
(a_qa, "gftools-qa", "gftools-qa"),
(a_builder, "gftools-builder", "gftools-builder"),
)

pyz_qa = PYZ(a_qa.pure, a_qa.zipped_data, cipher=block_cipher)
pyz_builder = PYZ(a_builder.pure, a_builder.zipped_data, cipher=block_cipher)

exe_qa = EXE(
pyz_qa,
a_qa.scripts,
a_qa.binaries,
a_qa.dependencies,
a_qa.zipfiles,
a_qa.datas,
[],
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,
)
exe_builder = EXE(
pyz_builder,
a_builder.scripts,
a_builder.binaries,
a_builder.dependencies,
a_builder.zipfiles,
a_builder.datas,
[],
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,
)

0 comments on commit a52ba3a

Please sign in to comment.