| 1 | # nfpm config for the Linux .deb package. scripts/desktop-build.sh's linux branch |
| 2 | # runs `nfpm package` after `wails build`, from the desktop/ dir (so the src paths |
| 3 | # below are relative to desktop/). Portable clients keep using the .tar.gz under |
| 4 | # platforms[]; this .deb is the native package channel (native_packages) and also |
| 5 | # remains a human-download artifact. |
| 6 | # |
| 7 | # $DEB_VERSION and $DEB_ARCH are exported by desktop-build.sh. DEB_VERSION follows |
| 8 | # Debian version ordering: stable X.Y.Z, prereleases as X.Y.Z~rc.N / X.Y.Z~canary.N |
| 9 | # so they sort below the matching stable package. DEB_ARCH is the Go arch name, |
| 10 | # which already matches Debian's (amd64, arm64). |
| 11 | name: "reasonix-desktop" |
| 12 | arch: "${DEB_ARCH}" |
| 13 | platform: "linux" |
| 14 | version: "${DEB_VERSION}" |
| 15 | section: "utils" |
| 16 | priority: "optional" |
| 17 | maintainer: "esengine <esengine@users.noreply.github.com>" |
| 18 | description: | |
| 19 | Reasonix desktop — a Wails shell around the Go kernel. |
| 20 | vendor: "Reasonix Contributors" |
| 21 | homepage: "https://github.com/esengine/DeepSeek-Reasonix" |
| 22 | license: "MIT" |
| 23 | scripts: |
| 24 | postinstall: ./build/linux/postinstall.sh |
| 25 | # Runtime libraries the WebKitGTK 4.1 build links against (-tags webkit2_41); apt |
| 26 | # pulls them in on install. These package names ship from Ubuntu 22.04 / Debian 12 on. |
| 27 | # pkexec is required for the in-app Polkit authorization update path. |
| 28 | depends: |
| 29 | - libgtk-3-0 |
| 30 | - libwebkit2gtk-4.1-0 |
| 31 | - pkexec |
| 32 | contents: |
| 33 | - src: ./build/bin/reasonix-desktop |
| 34 | dst: /usr/bin/reasonix-desktop |
| 35 | file_info: |
| 36 | mode: 0755 |
| 37 | - src: ./build/bin/reasonix-launcher |
| 38 | dst: /usr/bin/reasonix-launcher |
| 39 | file_info: |
| 40 | mode: 0755 |
| 41 | - src: ./build/bin/reasonix |
| 42 | dst: /usr/bin/reasonix |
| 43 | file_info: |
| 44 | mode: 0755 |
| 45 | - src: ./build/bin/reasonix-update-helper |
| 46 | dst: /usr/lib/reasonix/reasonix-update-helper |
| 47 | file_info: |
| 48 | mode: 0755 |
| 49 | - src: ./build/linux/io.reasonix.desktop.update.policy |
| 50 | dst: /usr/share/polkit-1/actions/io.reasonix.desktop.update.policy |
| 51 | file_info: |
| 52 | mode: 0644 |
| 53 | - src: ./build/linux/reasonix.desktop |
| 54 | dst: /usr/share/applications/reasonix.desktop |
| 55 | file_info: |
| 56 | mode: 0644 |
| 57 | # appicon.png is 1024x1024 — not a standard hicolor size dir, so install it under |
| 58 | # the size-agnostic pixmaps path that the .desktop's `Icon=reasonix-desktop` finds. |
| 59 | - src: ./build/appicon.png |
| 60 | dst: /usr/share/pixmaps/reasonix-desktop.png |
| 61 | file_info: |
| 62 | mode: 0644 |
| 63 | - src: ./build/linux/icons/hicolor/16x16/apps/reasonix-desktop.png |
| 64 | dst: /usr/share/icons/hicolor/16x16/apps/reasonix-desktop.png |
| 65 | file_info: |
| 66 | mode: 0644 |
| 67 | - src: ./build/linux/icons/hicolor/24x24/apps/reasonix-desktop.png |
| 68 | dst: /usr/share/icons/hicolor/24x24/apps/reasonix-desktop.png |
| 69 | file_info: |
| 70 | mode: 0644 |
| 71 | - src: ./build/linux/icons/hicolor/32x32/apps/reasonix-desktop.png |
| 72 | dst: /usr/share/icons/hicolor/32x32/apps/reasonix-desktop.png |
| 73 | file_info: |
| 74 | mode: 0644 |
| 75 | - src: ./build/linux/icons/hicolor/48x48/apps/reasonix-desktop.png |
| 76 | dst: /usr/share/icons/hicolor/48x48/apps/reasonix-desktop.png |
| 77 | file_info: |
| 78 | mode: 0644 |
| 79 | - src: ./build/linux/icons/hicolor/64x64/apps/reasonix-desktop.png |
| 80 | dst: /usr/share/icons/hicolor/64x64/apps/reasonix-desktop.png |
| 81 | file_info: |
| 82 | mode: 0644 |
| 83 | - src: ./build/linux/icons/hicolor/128x128/apps/reasonix-desktop.png |
| 84 | dst: /usr/share/icons/hicolor/128x128/apps/reasonix-desktop.png |
| 85 | file_info: |
| 86 | mode: 0644 |
| 87 | - src: ./build/linux/icons/hicolor/256x256/apps/reasonix-desktop.png |
| 88 | dst: /usr/share/icons/hicolor/256x256/apps/reasonix-desktop.png |
| 89 | file_info: |
| 90 | mode: 0644 |
| 91 | - src: ./build/linux/icons/hicolor/512x512/apps/reasonix-desktop.png |
| 92 | dst: /usr/share/icons/hicolor/512x512/apps/reasonix-desktop.png |
| 93 | file_info: |
| 94 | mode: 0644 |
| 95 | - src: ./build/linux/icons/hicolor/scalable/apps/reasonix-desktop.svg |
| 96 | dst: /usr/share/icons/hicolor/scalable/apps/reasonix-desktop.svg |
| 97 | file_info: |
| 98 | mode: 0644 |
| 99 |