Skip to content

Commit 10accfd

Browse files
committed
Update to PyInstaller 4.9; not yet working
o SLIP39.spec file change; not shipping slip39.layout data...
1 parent 889dc50 commit 10accfd

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

GNUmakefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,8 @@ SLIP39.spec: SLIP39.py
499499
--osx-bundle-identifier "$(BUNDLEID)" \
500500
--osx-entitlements-file ./SLIP39.metadata/entitlements.plist \
501501
--collect-data shamir_mnemonic \
502+
--hidden-import slip39 \
503+
--collect-data slip39 \
502504
$<
503505
@echo "!!! Regenerated $@: must be manually corrected!"
504506
false # Make the build fail if we've regenerated the .spec

SLIP39.spec

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ from PyInstaller.utils.hooks import collect_data_files
33

44
datas = []
55
datas += collect_data_files('shamir_mnemonic')
6+
datas += collect_data_files('slip39')
67

78

89
block_cipher = None
@@ -12,7 +13,7 @@ a = Analysis(['SLIP39.py'],
1213
pathex=[],
1314
binaries=[],
1415
datas=datas,
15-
hiddenimports=[],
16+
hiddenimports=['slip39'],
1617
hookspath=[],
1718
hooksconfig={},
1819
runtime_hooks=[],
@@ -25,28 +26,24 @@ pyz = PYZ(a.pure, a.zipped_data,
2526
cipher=block_cipher)
2627

2728
exe = EXE(pyz,
28-
a.scripts,
29+
a.scripts,
30+
a.binaries,
31+
a.zipfiles,
32+
a.datas,
2933
[],
30-
exclude_binaries=True,
3134
name='SLIP39',
3235
debug=False,
3336
bootloader_ignore_signals=False,
3437
strip=False,
3538
upx=True,
39+
upx_exclude=[],
40+
runtime_tmpdir=None,
3641
console=False,
3742
disable_windowed_traceback=False,
3843
target_arch=None,
3944
codesign_identity='Developer ID Application: Perry Kundert (ZD8TVTCXDS)',
4045
entitlements_file='./SLIP39.metadata/entitlements.plist' )
41-
coll = COLLECT(exe,
42-
a.binaries,
43-
a.zipfiles,
44-
a.datas,
45-
strip=False,
46-
upx=True,
47-
upx_exclude=[],
48-
name='SLIP39')
49-
app = BUNDLE(coll,
46+
app = BUNDLE(exe,
5047
name='SLIP39.app',
5148
icon='images/SLIP39.icns',
5249
version='7.0.1',

0 commit comments

Comments
 (0)