-
Notifications
You must be signed in to change notification settings - Fork 1
/
com.nitrokey.nitrokey-app2.yml
54 lines (52 loc) · 2.51 KB
/
com.nitrokey.nitrokey-app2.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
app-id: com.nitrokey.nitrokey-app2
runtime: org.kde.Platform
runtime-version: '6.8'
sdk: org.kde.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-stable
command: nitrokeyapp
build-options:
append-path: /usr/lib/sdk/rust-stable/bin
env:
- "CARGO_NET_OFFLINE=true"
cleanup-commands:
- "find ${FLATPAK_DEST}/bin -type f | grep -v nitrokeyapp | xargs rm"
- "rm -rf ${FLATPAK_DEST}/bin/pyside6-{assistant,designer,linguist,lrelease,lupdate,qmllint}"
- "rm -rf ${FLATPAK_DEST}/lib/python3.*/site-packages/PySide6/{assistant,designer,linguist,lrelease,lupdate,qmllint}"
- "rm -rf ${FLATPAK_DEST}/lib/python3.*/site-packages/PySide6/{examples,Qt/resources}"
- "rm -rf ${FLATPAK_DEST}/lib/python3.*/site-packages/PySide6/Qt/qml/QtQuick/Controls/{Imagine,Material,Universal,designer}"
- "rm -rf ${FLATPAK_DEST}/lib/python3.*/site-packages/PySide6/Qt/translations/{qtwebengine_locales,linguist*,assistant*,designer*,qtdeclarative*,qt_help*}"
- "rm -rf ${FLATPAK_DEST}/lib/python3.*/site-packages/PySide6/Qt/{lib,libexec}"
finish-args:
- --share=ipc
- --socket=fallback-x11
- --socket=wayland
- --device=all
- --share=network
modules:
- shared-modules/libusb/libusb.json
- pre-pypi-dependencies.json
- rust-pypi-dependencies.json
- python3-poetry.json
- python3-hidapi.json
- app-pypi-dependencies.json
- name: nkapp
buildsystem: simple
build-commands:
- pip install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} . --no-build-isolation
- install -Dm644 meta/${FLATPAK_ID}.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml
- install -Dm644 meta/${FLATPAK_ID}.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop
- install -Dm644 meta/nk-app2.svg ${FLATPAK_DEST}/share/icons/hicolor/scaleable/apps/${FLATPAK_ID}.svg
- install -Dm644 meta/nk-app2.png ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.png
sources:
- type: archive
url: https://github.com/Nitrokey/nitrokey-app2/archive/v2.3.3.tar.gz
sha256: 3eaa4984f90dc238c305a3a1160a44517b2bdbf1d5d3ae1c6b796ab28b0cc54e
# use this for testing w/o a final release
#sources:
# - type: archive
# url: https://github.com/Nitrokey/nitrokey-app2/archive/refs/heads/main.tar.gz
# sha256: 2167f4c0c4e27e18ddffc20cba369a055574648598fff9249baed0cc96eaba43
#- type: patch
# path: disable_nrf_update.patch
# sha256: 9025b5b1de2bd80216e1dd6775d5d39ef54ea20395aaf7c8bb480337830add62