2022-02-10 15:29:20 +03:00
|
|
|
# -*- mode: python ; coding: utf-8 -*-
|
2023-09-18 17:21:06 +03:00
|
|
|
import sys
|
|
|
|
import subprocess
|
2022-02-10 15:29:20 +03:00
|
|
|
|
|
|
|
|
|
|
|
block_cipher = None
|
|
|
|
|
|
|
|
|
|
|
|
a = Analysis(
|
2022-05-06 11:18:46 +03:00
|
|
|
["authenticator-helper.py"],
|
2022-02-10 15:29:20 +03:00
|
|
|
pathex=[],
|
|
|
|
binaries=[],
|
|
|
|
datas=[],
|
|
|
|
hiddenimports=[],
|
|
|
|
hookspath=[],
|
|
|
|
hooksconfig={},
|
|
|
|
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)
|
|
|
|
|
2023-09-18 17:21:06 +03:00
|
|
|
target_arch = None
|
|
|
|
# MacOS: If the running Python process is "universal", build a univeral2 binary.
|
|
|
|
if sys.platform == "darwin":
|
|
|
|
r = subprocess.run(['lipo', '-archs', sys.executable], capture_output=True).stdout
|
|
|
|
if b"x86_64" in r and b"arm64" in r:
|
|
|
|
target_arch = "universal2"
|
|
|
|
|
2022-02-10 15:29:20 +03:00
|
|
|
exe = EXE(
|
|
|
|
pyz,
|
|
|
|
a.scripts,
|
|
|
|
[],
|
|
|
|
exclude_binaries=True,
|
2022-05-06 11:18:46 +03:00
|
|
|
name="authenticator-helper",
|
2022-02-10 15:29:20 +03:00
|
|
|
icon="NONE",
|
|
|
|
debug=False,
|
|
|
|
bootloader_ignore_signals=False,
|
|
|
|
strip=False,
|
|
|
|
upx=True,
|
|
|
|
console=True,
|
2022-05-06 11:18:46 +03:00
|
|
|
manifest="authenticator-helper.exe.manifest",
|
2022-02-21 11:29:49 +03:00
|
|
|
version="version_info.txt",
|
2022-02-10 15:29:20 +03:00
|
|
|
disable_windowed_traceback=False,
|
2023-09-18 17:21:06 +03:00
|
|
|
target_arch=target_arch,
|
2022-02-10 15:29:20 +03:00
|
|
|
codesign_identity=None,
|
|
|
|
entitlements_file=None,
|
|
|
|
)
|
|
|
|
coll = COLLECT(
|
|
|
|
exe,
|
|
|
|
a.binaries,
|
|
|
|
a.zipfiles,
|
|
|
|
a.datas,
|
|
|
|
strip=False,
|
|
|
|
upx=True,
|
|
|
|
upx_exclude=[],
|
2022-05-06 11:18:46 +03:00
|
|
|
name="helper",
|
2022-02-10 15:29:20 +03:00
|
|
|
)
|