返回 DeepSeek-Reasonix
nfpm.yaml
根目录 / desktop / build / linux / nfpm.yaml
1 # nfpm config for the Linux .deb package. scripts/desktop-build.sh's linux branch
2 # runs `nfpm package` after the Electron packaging step, from the desktop/ dir
3 # (so the src paths below are relative to desktop/). Portable clients keep using
4 # the .tar.gz under platforms[]; this .deb is the native package channel
5 # (native_packages) and also 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 — an Electron shell around the Go kernel.
20 vendor: "Reasonix Contributors"
21 homepage: "https://github.com/esengine/DeepSeek-Reasonix"
22 license: "MIT"
23 deb:
24 compression: xz
25 scripts:
26 postinstall: ./build/linux/postinstall.sh
27 # Runtime libraries the bundled Chromium links against at runtime; apt pulls
28 # them in on install. These package names ship from Ubuntu 22.04 / Debian 12 on.
29 # pkexec is required for the in-app Polkit authorization update path.
30 depends:
31 - libgtk-3-0
32 - libnss3
33 - libgbm1
34 - libasound2
35 - pkexec
36 contents:
37 - src: ./build/bin/reasonix-desktop
38 dst: /usr/bin/reasonix-desktop
39 file_info:
40 mode: 0755
41 - src: ./build/bin/reasonix-launcher
42 dst: /usr/bin/reasonix-launcher
43 file_info:
44 mode: 0755
45 - src: ./build/bin/reasonix
46 dst: /usr/bin/reasonix
47 file_info:
48 mode: 0755
49 - src: ./build/bin/reasonix-update-helper
50 dst: /usr/lib/reasonix/reasonix-update-helper
51 file_info:
52 mode: 0755
53 # The Electron bundle (Reasonix executable, chrome-sandbox, resources),
54 # staged at build/bin/app by desktop-build.sh. The service bootstrap starts
55 # app/Reasonix from here; postinstall.sh sets the chrome-sandbox helper
56 # setuid-root (4755) so the renderer sandbox works without --no-sandbox.
57 - src: ./build/bin/app
58 dst: /usr/lib/reasonix/app
59 type: tree
60 - src: ./build/linux/io.reasonix.desktop.update.policy
61 dst: /usr/share/polkit-1/actions/io.reasonix.desktop.update.policy
62 file_info:
63 mode: 0644
64 - src: ./build/linux/reasonix.desktop
65 dst: /usr/share/applications/reasonix.desktop
66 file_info:
67 mode: 0644
68 # appicon.png is 1024x1024 — not a standard hicolor size dir, so install it under
69 # the size-agnostic pixmaps path that the .desktop's `Icon=reasonix-desktop` finds.
70 - src: ./build/appicon.png
71 dst: /usr/share/pixmaps/reasonix-desktop.png
72 file_info:
73 mode: 0644
74 - src: ./build/linux/icons/hicolor/16x16/apps/reasonix-desktop.png
75 dst: /usr/share/icons/hicolor/16x16/apps/reasonix-desktop.png
76 file_info:
77 mode: 0644
78 - src: ./build/linux/icons/hicolor/24x24/apps/reasonix-desktop.png
79 dst: /usr/share/icons/hicolor/24x24/apps/reasonix-desktop.png
80 file_info:
81 mode: 0644
82 - src: ./build/linux/icons/hicolor/32x32/apps/reasonix-desktop.png
83 dst: /usr/share/icons/hicolor/32x32/apps/reasonix-desktop.png
84 file_info:
85 mode: 0644
86 - src: ./build/linux/icons/hicolor/48x48/apps/reasonix-desktop.png
87 dst: /usr/share/icons/hicolor/48x48/apps/reasonix-desktop.png
88 file_info:
89 mode: 0644
90 - src: ./build/linux/icons/hicolor/64x64/apps/reasonix-desktop.png
91 dst: /usr/share/icons/hicolor/64x64/apps/reasonix-desktop.png
92 file_info:
93 mode: 0644
94 - src: ./build/linux/icons/hicolor/128x128/apps/reasonix-desktop.png
95 dst: /usr/share/icons/hicolor/128x128/apps/reasonix-desktop.png
96 file_info:
97 mode: 0644
98 - src: ./build/linux/icons/hicolor/256x256/apps/reasonix-desktop.png
99 dst: /usr/share/icons/hicolor/256x256/apps/reasonix-desktop.png
100 file_info:
101 mode: 0644
102 - src: ./build/linux/icons/hicolor/512x512/apps/reasonix-desktop.png
103 dst: /usr/share/icons/hicolor/512x512/apps/reasonix-desktop.png
104 file_info:
105 mode: 0644
106 - src: ./build/linux/icons/hicolor/scalable/apps/reasonix-desktop.svg
107 dst: /usr/share/icons/hicolor/scalable/apps/reasonix-desktop.svg
108 file_info:
109 mode: 0644
110
110 lines YAML