Debian
Debian
Tauri 打包程序生成的常规 Debian 软件包包含将应用发送到基于 Debian 的 Linux 发行版所需的一切,定义应用的图标,生成桌面文件,并指定依赖 libwebkit2gtk-4.1-0
和 libgtk-3-0
,以及 libappindicator3-1
(如果你的应用使用系统托盘)。
¥The stock Debian package generated by the Tauri bundler has everything you need to ship your application to Debian-based Linux distributions, defining your application’s icons, generating a Desktop file, and specifying the dependencies libwebkit2gtk-4.1-0
and libgtk-3-0
, along with libappindicator3-1
if your app uses the system tray.
自定义文件
¥Custom Files
如果你需要更多控制,Tauri 会公开一些 Debian 软件包的配置。
¥Tauri exposes a few configurations for the Debian package in case you need more control.
如果你的应用依赖于其他系统依赖,你可以在 tauri.conf.json > bundle > linux > deb
中指定它们。
¥If your app depends on additional system dependencies you can specify them in tauri.conf.json > bundle > linux > deb
.
要在 Debian 包中包含自定义文件,你可以在 tauri.conf.json > bundle > linux > deb > files
中提供文件或文件夹列表。配置对象将 Debian 包中的路径映射到文件系统上文件的路径,相对于 tauri.conf.json
文件。以下是示例配置:
¥To include custom files in the Debian package, you can provide a list of files or folders in tauri.conf.json > bundle > linux > deb > files
. The configuration object maps the path in the Debian package to the path to the file on your filesystem, relative to the tauri.conf.json
file. Here’s an example configuration:
{ "bundle": { "linux": { "deb": { "files": { "/usr/share/README.md": "../README.md", // copies the README.md file to /usr/share/README.md "/usr/share/assets": "../assets/" // copies the entire assets directory to /usr/share/assets } } } }}
Tauri 中文网 - 粤ICP备13048890号