yubioath-flutter/helper/authenticator-helper.spec

62 lines
1.3 KiB
RPMSpec
Raw Normal View History

2022-02-10 15:29:20 +03:00
# -*- mode: python ; coding: utf-8 -*-
import sys
import subprocess
2022-02-10 15:29:20 +03:00
block_cipher = None
a = Analysis(
["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)
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,
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,
manifest="authenticator-helper.exe.manifest",
version="version_info.txt",
2022-02-10 15:29:20 +03:00
disable_windowed_traceback=False,
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=[],
name="helper",
2022-02-10 15:29:20 +03:00
)