Skip to content

Commit

Permalink
Adapt build dependencies for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
mmerklinger committed Sep 24, 2024
1 parent 13d6b69 commit c38f9d8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 28 deletions.
9 changes: 2 additions & 7 deletions ci-scripts/macos/pyinstaller/nitrokey-app-onedir_arm64.spec
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,18 @@ python_version = str(sys.version_info[0]) + '.' + str(sys.version_info[1])

datas = [
(venv_path + '/lib/python' + python_version + '/site-packages/fido2/public_suffix_list.dat', 'fido2'),
(venv_path + '/lib/python' + python_version + '/site-packages/pynitrokey/VERSION', 'pynitrokey'),
('../../../nitrokeyapp/ui', 'nitrokeyapp/ui'),
('../../../LICENSE', '.')
]
datas += copy_metadata('ecdsa')
datas += copy_metadata('fido2')
datas += copy_metadata('nitrokeyapp')
datas += copy_metadata('pynitrokey')
datas += copy_metadata('pyusb')
datas += copy_metadata('spsdk')
datas += copy_metadata('nitrokey')

a = Analysis(
['../../../nitrokeyapp/__main__.py'],
pathex=[],
binaries=[
(venv_path + '/lib/python' + python_version + '/site-packages/libusbsio/bin/osx_arm64/libusbsio.dylib', 'libusbsio')
],
binaries=[],
datas=datas,
hiddenimports=[],
hookspath=[],
Expand Down
9 changes: 2 additions & 7 deletions ci-scripts/macos/pyinstaller/nitrokey-app-onedir_intel64.spec
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,18 @@ python_version = str(sys.version_info[0]) + '.' + str(sys.version_info[1])

datas = [
(venv_path + '/lib/python' + python_version + '/site-packages/fido2/public_suffix_list.dat', 'fido2'),
(venv_path + '/lib/python' + python_version + '/site-packages/pynitrokey/VERSION', 'pynitrokey'),
('../../../nitrokeyapp/ui', 'nitrokeyapp/ui'),
('../../../LICENSE', '.')
]
datas += copy_metadata('ecdsa')
datas += copy_metadata('fido2')
datas += copy_metadata('nitrokeyapp')
datas += copy_metadata('pynitrokey')
datas += copy_metadata('pyusb')
datas += copy_metadata('spsdk')
datas += copy_metadata('nitrokey')

a = Analysis(
['../../../nitrokeyapp/__main__.py'],
pathex=[],
binaries=[
(venv_path + '/lib/python' + python_version + '/site-packages/libusbsio/bin/osx_x86_64/libusbsio.dylib', 'libusbsio')
],
binaries=[],
datas=datas,
hiddenimports=[],
hookspath=[],
Expand Down
9 changes: 2 additions & 7 deletions ci-scripts/macos/pyinstaller/nitrokey-app-onefile_arm64.spec
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,18 @@ python_version = str(sys.version_info[0]) + '.' + str(sys.version_info[1])

datas = [
(venv_path + '/lib/python' + python_version + '/site-packages/fido2/public_suffix_list.dat', 'fido2'),
(venv_path + '/lib/python' + python_version + '/site-packages/pynitrokey/VERSION', 'pynitrokey'),
('../../../nitrokeyapp/ui', 'nitrokeyapp/ui'),
('../../../LICENSE', '.')
]
datas += copy_metadata('ecdsa')
datas += copy_metadata('fido2')
datas += copy_metadata('nitrokeyapp')
datas += copy_metadata('pynitrokey')
datas += copy_metadata('pyusb')
datas += copy_metadata('spsdk')
datas += copy_metadata('nitrokey')

a = Analysis(
['../../../nitrokeyapp/__main__.py'],
pathex=[],
binaries=[
(venv_path + '/lib/python' + python_version + '/site-packages/libusbsio/bin/osx_arm64/libusbsio.dylib', 'libusbsio')
],
binaries=[],
datas=datas,
hiddenimports=[],
hookspath=[],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,18 @@ python_version = str(sys.version_info[0]) + '.' + str(sys.version_info[1])

datas = [
(venv_path + '/lib/python' + python_version + '/site-packages/fido2/public_suffix_list.dat', 'fido2'),
(venv_path + '/lib/python' + python_version + '/site-packages/pynitrokey/VERSION', 'pynitrokey'),
('../../../nitrokeyapp/ui', 'nitrokeyapp/ui'),
('../../../LICENSE', '.')
]
datas += copy_metadata('ecdsa')
datas += copy_metadata('fido2')
datas += copy_metadata('nitrokeyapp')
datas += copy_metadata('pynitrokey')
datas += copy_metadata('pyusb')
datas += copy_metadata('spsdk')
datas += copy_metadata('nitrokey')

a = Analysis(
['../../../nitrokeyapp/__main__.py'],
pathex=[],
binaries=[
(venv_path + '/lib/python' + python_version + '/site-packages/libusbsio/bin/osx_x86_64/libusbsio.dylib', 'libusbsio')
],
binaries=[],
datas=datas,
hiddenimports=[],
hookspath=[],
Expand Down

0 comments on commit c38f9d8

Please sign in to comment.