You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api/cli.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -152,7 +152,7 @@ Options:
152
152
-b, --bundles [<BUNDLES>...]
153
153
Space or comma separated list of bundles to package.
154
154
155
-
Each bundle must be one of `deb`, `appimage`, `msi`, `app` or `dmg` on MacOS and `updater` on all platforms. If `none` is specified, the bundler will be skipped.
155
+
Each bundle must be one of `deb`, `rpm`, `appimage`, `msi`, `app` or `dmg` on MacOS and `updater` on all platforms. If `none` is specified, the bundler will be skipped.
156
156
157
157
Note that the `updater` bundle is not automatically added so you must specify it if the updater is enabled.
Copy file name to clipboardExpand all lines: docs/api/config.md
+67-1Lines changed: 67 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -266,7 +266,7 @@ Type: `object`
266
266
| Name | Type | Default | Description |
267
267
| ---- | ---- | ------- | ----------- |
268
268
| <divclassName="anchor-with-padding"id="bundleconfig.active">`active`<aclass="hash-link"href="#bundleconfig.active"></a></div> | boolean |`false`| Whether Tauri should bundle your application or just output the executable. |
269
-
| <divclassName="anchor-with-padding"id="bundleconfig.targets">`targets`<aclass="hash-link"href="#bundleconfig.targets"></a></div> |[`BundleTarget`](#bundletarget)|[view](#bundletarget)| The bundle targets, currently supports ["deb", "appimage", "nsis", "msi", "app", "dmg", "updater"] or "all". |
269
+
| <divclassName="anchor-with-padding"id="bundleconfig.targets">`targets`<aclass="hash-link"href="#bundleconfig.targets"></a></div> |[`BundleTarget`](#bundletarget)|[view](#bundletarget)| The bundle targets, currently supports ["deb", "rpm", "appimage", "nsis", "msi", "app", "dmg", "updater"] or "all". |
270
270
| <divclassName="anchor-with-padding"id="bundleconfig.identifier">`identifier`<aclass="hash-link"href="#bundleconfig.identifier"></a></div> | string (required) || The application identifier in reverse domain name notation (e.g. `com.tauri.example`). This string must be unique across applications since it is used in system configurations like the bundle ID and path to the webview data directory. This string must contain only alphanumeric characters (A–Z, a–z, and 0–9), hyphens (-), and periods (.). |
271
271
| <divclassName="anchor-with-padding"id="bundleconfig.publisher">`publisher`<aclass="hash-link"href="#bundleconfig.publisher"></a></div> | string? |_null_| The application's publisher. Defaults to the second element in the identifier string. Currently maps to the Manufacturer property of the Windows Installer. |
272
272
| <divclassName="anchor-with-padding"id="bundleconfig.icon">`icon`<aclass="hash-link"href="#bundleconfig.icon"></a></div> | string[]|[]| The app's icons |
| <divclassName="anchor-with-padding"id="bundleconfig.shortdescription">`shortDescription`<aclass="hash-link"href="#bundleconfig.shortdescription"></a></div> | string? |_null_| A short description of your application. |
277
277
| <divclassName="anchor-with-padding"id="bundleconfig.longdescription">`longDescription`<aclass="hash-link"href="#bundleconfig.longdescription"></a></div> | string? |_null_| A longer, multi-line description of the application. |
278
+
| <divclassName="anchor-with-padding"id="bundleconfig.uselocaltoolsdir">`useLocalToolsDir`<aclass="hash-link"href="#bundleconfig.uselocaltoolsdir"></a></div> | boolean |`false`| Whether to use the project's `target` directory, for caching build tools (e.g., Wix and NSIS) when building this application. Defaults to `false`.<br /><br />If true, tools will be cached in `target\.tauri-tools`. If false, tools will be cached in the current user's platform-specific cache directory.<br /><br />An example where it can be appropriate to set this to `true` is when building this application as a Windows System user (e.g., AWS EC2 workloads), because the Window system's app data directory is restricted. |
278
279
| <divclassName="anchor-with-padding"id="bundleconfig.appimage">`appimage`<aclass="hash-link"href="#bundleconfig.appimage"></a></div> |[`AppImageConfig`](#appimageconfig)|[view](#appimageconfig)| Configuration for the AppImage bundle. |
279
280
| <divclassName="anchor-with-padding"id="bundleconfig.deb">`deb`<aclass="hash-link"href="#bundleconfig.deb"></a></div> |[`DebConfig`](#debconfig)|[view](#debconfig)| Configuration for the Debian bundle. |
281
+
| <divclassName="anchor-with-padding"id="bundleconfig.rpm">`rpm`<aclass="hash-link"href="#bundleconfig.rpm"></a></div> |[`RpmConfig`](#rpmconfig)|[view](#rpmconfig)| Configuration for the RPM bundle. |
| <divclassName="anchor-with-padding"id="bundleconfig.macos">`macOS`<aclass="hash-link"href="#bundleconfig.macos"></a></div> |[`MacConfig`](#macconfig)|[view](#macconfig)| Configuration for the macOS bundles. |
281
284
| <divclassName="anchor-with-padding"id="bundleconfig.externalbin">`externalBin`<aclass="hash-link"href="#bundleconfig.externalbin"></a></div> | array? |_null_| A list of—either absolute or relative—paths to binaries to embed with your application.<br /><br />Note that Tauri will look for system-specific binaries following the pattern "binary-name{-target-triple}{.system-extension}".<br /><br />E.g. for the external binary "my-binary", Tauri looks for:<br /><br />- "my-binary-x86_64-pc-windows-msvc.exe" for Windows<br />- "my-binary-x86_64-apple-darwin" for macOS<br />- "my-binary-x86_64-unknown-linux-gnu" for Linux<br /><br />so don't forget to provide binaries for all targeted platforms. |
282
285
| <divclassName="anchor-with-padding"id="bundleconfig.windows">`windows`<aclass="hash-link"href="#bundleconfig.windows"></a></div> |[`WindowsConfig`](#windowsconfig)|[view](#windowsconfig)| Configuration for the Windows bundle. |
@@ -299,6 +302,7 @@ A bundle referenced by tauri-bundler.
299
302
Can be any **ONE** of the following types:
300
303
301
304
- "deb": The debian bundle (.deb).
305
+
- "rpm": The RPM bundle (.rpm).
302
306
- "appimage": The AppImage bundle (.appimage).
303
307
- "msi": The Microsoft Installer bundle (.msi).
304
308
- "nsis": The NSIS bundle (.exe).
@@ -335,13 +339,74 @@ Type: `object`
335
339
| Name | Type | Default | Description |
336
340
| ---- | ---- | ------- | ----------- |
337
341
| <divclassName="anchor-with-padding"id="debconfig.depends">`depends`<aclass="hash-link"href="#debconfig.depends"></a></div> | array? |_null_| The list of deb dependencies your application relies on. |
342
+
| <divclassName="anchor-with-padding"id="debconfig.provides">`provides`<aclass="hash-link"href="#debconfig.provides"></a></div> | array? |_null_| The list of dependencies the package provides. |
343
+
| <divclassName="anchor-with-padding"id="debconfig.conflicts">`conflicts`<aclass="hash-link"href="#debconfig.conflicts"></a></div> | array? |_null_| The list of package conflicts. |
344
+
| <divclassName="anchor-with-padding"id="debconfig.replaces">`replaces`<aclass="hash-link"href="#debconfig.replaces"></a></div> | array? |_null_| The list of package replaces. |
338
345
| <divclassName="anchor-with-padding"id="debconfig.files">`files`<aclass="hash-link"href="#debconfig.files"></a></div> | object |_null_| The files to include on the package. |
339
346
| <divclassName="anchor-with-padding"id="debconfig.desktoptemplate">`desktopTemplate`<aclass="hash-link"href="#debconfig.desktoptemplate"></a></div> | string? |_null_| Path to a custom desktop file Handlebars template.<br /><br />Available variables: `categories`, `comment` (optional), `exec`, `icon` and `name`. |
340
347
| <divclassName="anchor-with-padding"id="debconfig.section">`section`<aclass="hash-link"href="#debconfig.section"></a></div> | string? |_null_| Define the section in Debian Control file. See : https://www.debian.org/doc/debian-policy/ch-archive.html#s-subsections|
341
348
| <divclassName="anchor-with-padding"id="debconfig.priority">`priority`<aclass="hash-link"href="#debconfig.priority"></a></div> | string? |_null_| Change the priority of the Debian Package. By default, it is set to `optional`. Recognized Priorities as of now are : `required`, `important`, `standard`, `optional`, `extra`|
342
349
| <divclassName="anchor-with-padding"id="debconfig.changelog">`changelog`<aclass="hash-link"href="#debconfig.changelog"></a></div> | string? |_null_| Path of the uncompressed Changelog file, to be stored at /usr/share/doc/package-name/changelog.gz. See https://www.debian.org/doc/debian-policy/ch-docs.html#changelog-files-and-release-notes|
343
350
344
351
352
+
##### RpmConfig
353
+
354
+
Configuration for RPM bundles.
355
+
356
+
Type: `object`
357
+
358
+
| Name | Type | Default | Description |
359
+
| ---- | ---- | ------- | ----------- |
360
+
| <divclassName="anchor-with-padding"id="rpmconfig.license">`license`<aclass="hash-link"href="#rpmconfig.license"></a></div> | string? |_null_| The package's license identifier. If not set, defaults to the license from the Cargo.toml file. |
361
+
| <divclassName="anchor-with-padding"id="rpmconfig.depends">`depends`<aclass="hash-link"href="#rpmconfig.depends"></a></div> | array? |_null_| The list of RPM dependencies your application relies on. |
362
+
| <divclassName="anchor-with-padding"id="rpmconfig.provides">`provides`<aclass="hash-link"href="#rpmconfig.provides"></a></div> | array? |_null_| The list of RPM dependencies your application provides. |
363
+
| <divclassName="anchor-with-padding"id="rpmconfig.conflicts">`conflicts`<aclass="hash-link"href="#rpmconfig.conflicts"></a></div> | array? |_null_| The list of RPM dependencies your application conflicts with. They must not be present in order for the package to be installed. |
364
+
| <divclassName="anchor-with-padding"id="rpmconfig.obsoletes">`obsoletes`<aclass="hash-link"href="#rpmconfig.obsoletes"></a></div> | array? |_null_| The list of RPM dependencies your application supersedes<br />- if this package is installed, packages listed as “obsoletes” will be automatically removed (if they are present). |
365
+
| <divclassName="anchor-with-padding"id="rpmconfig.release">`release`<aclass="hash-link"href="#rpmconfig.release"></a></div> | string |_null_| The RPM release tag. |
366
+
| <divclassName="anchor-with-padding"id="rpmconfig.epoch">`epoch`<aclass="hash-link"href="#rpmconfig.epoch"></a></div> | integer _(format: `uint32`)_|`0`| The RPM epoch. |
367
+
| <divclassName="anchor-with-padding"id="rpmconfig.files">`files`<aclass="hash-link"href="#rpmconfig.files"></a></div> | object |_null_| The files to include on the package. |
368
+
| <divclassName="anchor-with-padding"id="rpmconfig.desktoptemplate">`desktopTemplate`<aclass="hash-link"href="#rpmconfig.desktoptemplate"></a></div> | string? |_null_| Path to a custom desktop file Handlebars template.<br /><br />Available variables: `categories`, `comment` (optional), `exec`, `icon` and `name`. |
369
+
370
+
371
+
##### DmgConfig
372
+
373
+
Configuration for Apple Disk Image (.dmg) bundles.
374
+
375
+
Type: `object`
376
+
377
+
| Name | Type | Default | Description |
378
+
| ---- | ---- | ------- | ----------- |
379
+
| <divclassName="anchor-with-padding"id="dmgconfig.background">`background`<aclass="hash-link"href="#dmgconfig.background"></a></div> | string? |_null_| Image to use as the background in dmg file. Accepted formats: `png`/`jpg`/`gif`. |
380
+
| <divclassName="anchor-with-padding"id="dmgconfig.windowposition">`windowPosition`<aclass="hash-link"href="#dmgconfig.windowposition"></a></div> |[`Position`](#position)? |[view](#position)| Position of volume window on screen. |
381
+
| <divclassName="anchor-with-padding"id="dmgconfig.windowsize">`windowSize`<aclass="hash-link"href="#dmgconfig.windowsize"></a></div> |[`Size`](#size)|[view](#size)| Size of volume window. |
382
+
| <divclassName="anchor-with-padding"id="dmgconfig.appposition">`appPosition`<aclass="hash-link"href="#dmgconfig.appposition"></a></div> |[`Position`](#position)|[view](#position)| Position of app file on window. |
383
+
| <divclassName="anchor-with-padding"id="dmgconfig.applicationfolderposition">`applicationFolderPosition`<aclass="hash-link"href="#dmgconfig.applicationfolderposition"></a></div> |[`Position`](#position)|[view](#position)| Position of application folder on window. |
| <divclassName="anchor-with-padding"id="size.width">`width`<aclass="hash-link"href="#size.width"></a></div> | integer _(format: `uint32`)_ (required) || Width of the window. |
407
+
| <divclassName="anchor-with-padding"id="size.height">`height`<aclass="hash-link"href="#size.height"></a></div> | integer _(format: `uint32`)_ (required) || Height of the window. |
408
+
409
+
345
410
##### MacConfig
346
411
347
412
Configuration for the macOS bundles.
@@ -376,6 +441,7 @@ Type: `object`
376
441
| <divclassName="anchor-with-padding"id="windowsconfig.allowdowngrades">`allowDowngrades`<aclass="hash-link"href="#windowsconfig.allowdowngrades"></a></div> | boolean |`true`| Validates a second app installation, blocking the user from installing an older version if set to `false`.<br /><br />For instance, if `1.2.1` is installed, the user won't be able to install app version `1.2.0` or `1.1.5`.<br /><br />The default value of this flag is `true`. |
377
442
| <divclassName="anchor-with-padding"id="windowsconfig.wix">`wix`<aclass="hash-link"href="#windowsconfig.wix"></a></div> |[`WixConfig`](#wixconfig)? |[view](#wixconfig)| Configuration for the MSI generated with WiX. |
378
443
| <divclassName="anchor-with-padding"id="windowsconfig.nsis">`nsis`<aclass="hash-link"href="#windowsconfig.nsis"></a></div> |[`NsisConfig`](#nsisconfig)? |[view](#nsisconfig)| Configuration for the installer generated with NSIS. |
444
+
| <divclassName="anchor-with-padding"id="windowsconfig.signcommand">`signCommand`<aclass="hash-link"href="#windowsconfig.signcommand"></a></div> | string? |_null_| Specify a custom command to sign the binaries. This command needs to have a `%1` in it which is just a placeholder for the binary path, which we will detect and replace before calling the command.<br /><br />Example: ```text sign-cli --arg1 --arg2 %1 ```<br /><br />By Default we use `signtool.exe` which can be found only on Windows so if you are on another platform and want to cross-compile and sign you will need to use another tool like `osslsigncode`. |
0 commit comments