Skip to content

Commit 390e046

Browse files
committed
Build target for SLIP-39.exe
1 parent ab60ff5 commit 390e046

File tree

3 files changed

+64
-2
lines changed

3 files changed

+64
-2
lines changed

GNUmakefile

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ dist/SLIP-39.app-checkids: SLIP-39.spec
446446
# - Find each dependent key, and look at its SHA fingerprint, and then see if you have
447447
# that one in your System keychain, downloading all the named keys from apple 'til
448448
# you find the one with the matching fingerprint. Grr... Repeat 'til check-signature works.
449-
dist/SLIP-39.app: SLIP-39.spec \
449+
dist/SLIP-39.app: SLIP-39-macOS.spec \
450450
SLIP-39.metadata/entitlements.plist \
451451
images/SLIP-39.icns
452452
@echo "\n\n*** Rebuilding $@, version $(VERSION)..."
@@ -492,7 +492,7 @@ dist/SLIP-39.app: SLIP-39.spec \
492492
# +
493493
# bundle_identifier='ca.kundert.perry.SLIP39')
494494

495-
SLIP-39.spec: SLIP-39.py
495+
SLIP-39-macOS.spec: SLIP-39.py
496496
@echo "\n\n!!! Rebuilding $@; Must be manually edited..."
497497
pyinstaller --noconfirm --windowed --onefile \
498498
--codesign-identity "$(DEVID)" \
@@ -502,6 +502,23 @@ SLIP-39.spec: SLIP-39.py
502502
--hidden-import slip39 \
503503
--collect-data slip39 \
504504
$<
505+
mv SLIP-39.spec $@
506+
@echo "!!! Regenerated $@: must be manually corrected!"
507+
false # Make the build fail if we've regenerated the .spec
508+
509+
510+
dist/SLIP-39.exe: SLIP-39-win32.spec
511+
rm -rf build $@
512+
pyinstaller --noconfirm $<
513+
514+
SLIP-39-win32.spec: SLIP-39.py
515+
@echo "\n\n!!! Rebuilding $@; Must be manually edited..."
516+
pyinstaller --noconfirm --windowed --onefile \
517+
--collect-data shamir_mnemonic \
518+
--hidden-import slip39 \
519+
--collect-data slip39 \
520+
$<
521+
mv SLIP-39.spec $@
505522
@echo "!!! Regenerated $@: must be manually corrected!"
506523
false # Make the build fail if we've regenerated the .spec
507524

File renamed without changes.

SLIP-39-win32.spec

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# -*- mode: python ; coding: utf-8 -*-
2+
from PyInstaller.utils.hooks import collect_data_files
3+
4+
datas = []
5+
datas += collect_data_files('shamir_mnemonic')
6+
datas += collect_data_files('slip39')
7+
8+
9+
block_cipher = None
10+
11+
12+
a = Analysis(['SLIP-39.py'],
13+
pathex=[],
14+
binaries=[],
15+
datas=datas,
16+
hiddenimports=['slip39'],
17+
hookspath=[],
18+
hooksconfig={},
19+
runtime_hooks=[],
20+
excludes=[],
21+
win_no_prefer_redirects=False,
22+
win_private_assemblies=False,
23+
cipher=block_cipher,
24+
noarchive=False)
25+
pyz = PYZ(a.pure, a.zipped_data,
26+
cipher=block_cipher)
27+
28+
exe = EXE(pyz,
29+
a.scripts,
30+
a.binaries,
31+
a.zipfiles,
32+
a.datas,
33+
[],
34+
name='SLIP-39',
35+
debug=False,
36+
bootloader_ignore_signals=False,
37+
strip=False,
38+
upx=True,
39+
upx_exclude=[],
40+
runtime_tmpdir=None,
41+
console=False,
42+
disable_windowed_traceback=False,
43+
target_arch=None,
44+
codesign_identity=None,
45+
entitlements_file=None )

0 commit comments

Comments
 (0)