Skip to content

Commit

Permalink
Merge pull request #280 from Nitrokey/adapt-build-dependencies
Browse files Browse the repository at this point in the history
Adapt build dependencies
  • Loading branch information
daringer authored Sep 24, 2024
2 parents ae7bd03 + c38f9d8 commit ccec1eb
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 60 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/cd-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ jobs:
- name: Build onedir
run: |
Invoke-Expression "$(poetry env info --path)\Scripts\Activate.ps1"
make build-ui
pyinstaller ci-scripts/windows/pyinstaller/nitrokey-app-onedir.spec
- name: Upload artifacts
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -74,7 +73,6 @@ jobs:
- name: Build onefile
run: |
Invoke-Expression "$(poetry env info --path)\Scripts\Activate.ps1"
make build-ui
pyinstaller ci-scripts/windows/pyinstaller/nitrokey-app-onefile.spec
- name: Upload artifacts
uses: actions/upload-artifact@v4
Expand Down
9 changes: 2 additions & 7 deletions ci-scripts/linux/pyinstaller/nitrokey-app-onedir.spec
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,13 @@ 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')


block_cipher = None
Expand All @@ -26,9 +23,7 @@ block_cipher = None
a = Analysis(
['../../../nitrokeyapp/__main__.py'],
pathex=[],
binaries=[
(venv_path + '/lib/python' + python_version + '/site-packages/libusbsio/bin/linux_x86_64/libusbsio.so', 'libusbsio')
],
binaries=[],
datas=datas,
hiddenimports=[],
hookspath=[],
Expand Down
9 changes: 2 additions & 7 deletions ci-scripts/linux/pyinstaller/nitrokey-app-onefile.spec
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,13 @@ 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')


block_cipher = None
Expand All @@ -26,9 +23,7 @@ block_cipher = None
a = Analysis(
['../../../nitrokeyapp/__main__.py'],
pathex=[],
binaries=[
(venv_path + '/lib/python' + python_version + '/site-packages/libusbsio/bin/linux_x86_64/libusbsio.so', 'libusbsio')
],
binaries=[],
datas=datas,
hiddenimports=[],
hookspath=[],
Expand Down
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
10 changes: 2 additions & 8 deletions ci-scripts/windows/pyinstaller/nitrokey-app-onedir.spec
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,14 @@ import os
venv_path = os.popen('poetry env info --path').read().rstrip()

datas = [
(venv_path + '\\Lib\\site-packages\\pynitrokey\\VERSION', 'pynitrokey'),
(venv_path + '\\Lib\\site-packages\\fido2\\public_suffix_list.dat', 'fido2'),
('..\\..\\..\\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')


block_cipher = None
Expand All @@ -24,10 +21,7 @@ block_cipher = None
a = Analysis(
['..\\..\\..\\nitrokeyapp\\__main__.py'],
pathex=[],
binaries=[
(venv_path + '\\Lib\\site-packages\\libusbsio\\bin\\x64\\libusbsio.dll', 'libusbsio'),
(venv_path + '\\Lib\\site-packages\\usb1\\libusb-1.0.dll', '.')
],
binaries=[],
datas=datas,
hiddenimports=[],
hookspath=[],
Expand Down
10 changes: 2 additions & 8 deletions ci-scripts/windows/pyinstaller/nitrokey-app-onefile.spec
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,14 @@ import os
venv_path = os.popen('poetry env info --path').read().rstrip()

datas = [
(venv_path + '\\Lib\\site-packages\\pynitrokey\\VERSION', 'pynitrokey'),
(venv_path + '\\Lib\\site-packages\\fido2\\public_suffix_list.dat', 'fido2'),
('..\\..\\..\\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')


block_cipher = None
Expand All @@ -24,10 +21,7 @@ block_cipher = None
a = Analysis(
['..\\..\\..\\nitrokeyapp\\__main__.py'],
pathex=[],
binaries=[
(venv_path + '\\Lib\\site-packages\\libusbsio\\bin\\x64\\libusbsio.dll', 'libusbsio'),
(venv_path + '\\Lib\\site-packages\\usb1\\libusb-1.0.dll', '.')
],
binaries=[],
datas=datas,
hiddenimports=[],
hookspath=[],
Expand Down

0 comments on commit ccec1eb

Please sign in to comment.