Debian
Debian
由 Tauri bundler 產生的預設 Debian 套件,包含將您的應用程式發佈到基於 Debian 的 Linux 發行版所需的一切,定義您的應用程式圖示、產生 Desktop 檔案,並指定依賴項 libwebkit2gtk-4.1-0
和 libgtk-3-0
,以及 libappindicator3-1
(如果您的應用程式使用系統 tray)。
自訂檔案
Tauri 公開了 Debian 套件的一些組態,以便在您需要更多控制時使用。
如果您的應用程式依賴其他系統依賴項,您可以在 tauri.conf.json > bundle > linux > deb
中指定它們。
若要在 Debian 套件中包含自訂檔案,您可以在 tauri.conf.json > bundle > linux > deb > files
中提供檔案或資料夾的清單。組態物件會將 Debian 套件中的路徑對應到您檔案系統上的檔案路徑,相對於 tauri.conf.json
檔案。以下是一個組態範例
{ "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 } } } }}
© 2025 Tauri Contributors. CC-BY / MIT