Skip to content

Commit

Permalink
Merge pull request #44 from Viasat/add-pyinstaller-spec
Browse files Browse the repository at this point in the history
add PyInstaller spec file
  • Loading branch information
marksidell authored Jun 28, 2022
2 parents 27d9f13 + 01212a1 commit fd26d5a
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 1 deletion.
2 changes: 1 addition & 1 deletion alohomora/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import sys

__version__ = '3.0.0'
__version__ = '3.0.1'
__author__ = 'Viasat'
__author_email__ = 'vice-support@viasat.com'
__license__ = '(c) 2022 Viasat, Inc. See the LICENSE file for more details.'
Expand Down
2 changes: 2 additions & 0 deletions specs/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
The alohomora.spec file herein can be used to by PyInstaller to build a self-contained
alhomora EXE.
45 changes: 45 additions & 0 deletions specs/alohomora.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# -*- mode: python ; coding: utf-8 -*-

import os
import importlib

# Find the dat file required by fido2 and cause it to be installed.
#
datas = [
(os.path.join(
os.path.dirname(importlib.import_module('fido2').__file__),
'public_suffix_list.dat'),
'fido2')
]

block_cipher = None


a = Analysis(['../alohomora/main.py'],
pathex=['specs'],
binaries=[],
datas=datas,
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='alohomora',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True )

0 comments on commit fd26d5a

Please sign in to comment.