Skip to content

Commit 0e60fbc

Browse files
Update Docs (#2366)
Co-authored-by: FabianLars <[email protected]>
1 parent f8d3b18 commit 0e60fbc

File tree

16 files changed

+308
-231
lines changed

16 files changed

+308
-231
lines changed

docs/api/cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ Options:
152152
-b, --bundles [<BUNDLES>...]
153153
Space or comma separated list of bundles to package.
154154
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.
156156
157157
Note that the `updater` bundle is not automatically added so you must specify it if the updater is enabled.
158158

docs/api/config.md

Lines changed: 67 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ Type: `object`
266266
| Name | Type | Default | Description |
267267
| ---- | ---- | ------- | ----------- |
268268
| <div className="anchor-with-padding" id="bundleconfig.active">`active`<a class="hash-link" href="#bundleconfig.active"></a></div> | boolean | `false` | Whether Tauri should bundle your application or just output the executable. |
269-
| <div className="anchor-with-padding" id="bundleconfig.targets">`targets`<a class="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+
| <div className="anchor-with-padding" id="bundleconfig.targets">`targets`<a class="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". |
270270
| <div className="anchor-with-padding" id="bundleconfig.identifier">`identifier`<a class="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 (.). |
271271
| <div className="anchor-with-padding" id="bundleconfig.publisher">`publisher`<a class="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. |
272272
| <div className="anchor-with-padding" id="bundleconfig.icon">`icon`<a class="hash-link" href="#bundleconfig.icon"></a></div> | string[] | [] | The app's icons |
@@ -275,8 +275,11 @@ Type: `object`
275275
| <div className="anchor-with-padding" id="bundleconfig.category">`category`<a class="hash-link" href="#bundleconfig.category"></a></div> | string? | _null_ | The application kind.<br /><br />Should be one of the following: Business, DeveloperTool, Education, Entertainment, Finance, Game, ActionGame, AdventureGame, ArcadeGame, BoardGame, CardGame, CasinoGame, DiceGame, EducationalGame, FamilyGame, KidsGame, MusicGame, PuzzleGame, RacingGame, RolePlayingGame, SimulationGame, SportsGame, StrategyGame, TriviaGame, WordGame, GraphicsAndDesign, HealthcareAndFitness, Lifestyle, Medical, Music, News, Photography, Productivity, Reference, SocialNetworking, Sports, Travel, Utility, Video, Weather. |
276276
| <div className="anchor-with-padding" id="bundleconfig.shortdescription">`shortDescription`<a class="hash-link" href="#bundleconfig.shortdescription"></a></div> | string? | _null_ | A short description of your application. |
277277
| <div className="anchor-with-padding" id="bundleconfig.longdescription">`longDescription`<a class="hash-link" href="#bundleconfig.longdescription"></a></div> | string? | _null_ | A longer, multi-line description of the application. |
278+
| <div className="anchor-with-padding" id="bundleconfig.uselocaltoolsdir">`useLocalToolsDir`<a class="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. |
278279
| <div className="anchor-with-padding" id="bundleconfig.appimage">`appimage`<a class="hash-link" href="#bundleconfig.appimage"></a></div> | [`AppImageConfig`](#appimageconfig) | [view](#appimageconfig) | Configuration for the AppImage bundle. |
279280
| <div className="anchor-with-padding" id="bundleconfig.deb">`deb`<a class="hash-link" href="#bundleconfig.deb"></a></div> | [`DebConfig`](#debconfig) | [view](#debconfig) | Configuration for the Debian bundle. |
281+
| <div className="anchor-with-padding" id="bundleconfig.rpm">`rpm`<a class="hash-link" href="#bundleconfig.rpm"></a></div> | [`RpmConfig`](#rpmconfig) | [view](#rpmconfig) | Configuration for the RPM bundle. |
282+
| <div className="anchor-with-padding" id="bundleconfig.dmg">`dmg`<a class="hash-link" href="#bundleconfig.dmg"></a></div> | [`DmgConfig`](#dmgconfig) | [view](#dmgconfig) | DMG-specific settings. |
280283
| <div className="anchor-with-padding" id="bundleconfig.macos">`macOS`<a class="hash-link" href="#bundleconfig.macos"></a></div> | [`MacConfig`](#macconfig) | [view](#macconfig) | Configuration for the macOS bundles. |
281284
| <div className="anchor-with-padding" id="bundleconfig.externalbin">`externalBin`<a class="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. |
282285
| <div className="anchor-with-padding" id="bundleconfig.windows">`windows`<a class="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.
299302
Can be any **ONE** of the following types:
300303

301304
- "deb": The debian bundle (.deb).
305+
- "rpm": The RPM bundle (.rpm).
302306
- "appimage": The AppImage bundle (.appimage).
303307
- "msi": The Microsoft Installer bundle (.msi).
304308
- "nsis": The NSIS bundle (.exe).
@@ -335,13 +339,74 @@ Type: `object`
335339
| Name | Type | Default | Description |
336340
| ---- | ---- | ------- | ----------- |
337341
| <div className="anchor-with-padding" id="debconfig.depends">`depends`<a class="hash-link" href="#debconfig.depends"></a></div> | array? | _null_ | The list of deb dependencies your application relies on. |
342+
| <div className="anchor-with-padding" id="debconfig.provides">`provides`<a class="hash-link" href="#debconfig.provides"></a></div> | array? | _null_ | The list of dependencies the package provides. |
343+
| <div className="anchor-with-padding" id="debconfig.conflicts">`conflicts`<a class="hash-link" href="#debconfig.conflicts"></a></div> | array? | _null_ | The list of package conflicts. |
344+
| <div className="anchor-with-padding" id="debconfig.replaces">`replaces`<a class="hash-link" href="#debconfig.replaces"></a></div> | array? | _null_ | The list of package replaces. |
338345
| <div className="anchor-with-padding" id="debconfig.files">`files`<a class="hash-link" href="#debconfig.files"></a></div> | object | _null_ | The files to include on the package. |
339346
| <div className="anchor-with-padding" id="debconfig.desktoptemplate">`desktopTemplate`<a class="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`. |
340347
| <div className="anchor-with-padding" id="debconfig.section">`section`<a class="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 |
341348
| <div className="anchor-with-padding" id="debconfig.priority">`priority`<a class="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` |
342349
| <div className="anchor-with-padding" id="debconfig.changelog">`changelog`<a class="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 |
343350

344351

352+
##### RpmConfig
353+
354+
Configuration for RPM bundles.
355+
356+
Type: `object`
357+
358+
| Name | Type | Default | Description |
359+
| ---- | ---- | ------- | ----------- |
360+
| <div className="anchor-with-padding" id="rpmconfig.license">`license`<a class="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+
| <div className="anchor-with-padding" id="rpmconfig.depends">`depends`<a class="hash-link" href="#rpmconfig.depends"></a></div> | array? | _null_ | The list of RPM dependencies your application relies on. |
362+
| <div className="anchor-with-padding" id="rpmconfig.provides">`provides`<a class="hash-link" href="#rpmconfig.provides"></a></div> | array? | _null_ | The list of RPM dependencies your application provides. |
363+
| <div className="anchor-with-padding" id="rpmconfig.conflicts">`conflicts`<a class="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+
| <div className="anchor-with-padding" id="rpmconfig.obsoletes">`obsoletes`<a class="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+
| <div className="anchor-with-padding" id="rpmconfig.release">`release`<a class="hash-link" href="#rpmconfig.release"></a></div> | string | _null_ | The RPM release tag. |
366+
| <div className="anchor-with-padding" id="rpmconfig.epoch">`epoch`<a class="hash-link" href="#rpmconfig.epoch"></a></div> | integer _(format: `uint32`)_ | `0` | The RPM epoch. |
367+
| <div className="anchor-with-padding" id="rpmconfig.files">`files`<a class="hash-link" href="#rpmconfig.files"></a></div> | object | _null_ | The files to include on the package. |
368+
| <div className="anchor-with-padding" id="rpmconfig.desktoptemplate">`desktopTemplate`<a class="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+
| <div className="anchor-with-padding" id="dmgconfig.background">`background`<a class="hash-link" href="#dmgconfig.background"></a></div> | string? | _null_ | Image to use as the background in dmg file. Accepted formats: `png`/`jpg`/`gif`. |
380+
| <div className="anchor-with-padding" id="dmgconfig.windowposition">`windowPosition`<a class="hash-link" href="#dmgconfig.windowposition"></a></div> | [`Position`](#position)? | [view](#position) | Position of volume window on screen. |
381+
| <div className="anchor-with-padding" id="dmgconfig.windowsize">`windowSize`<a class="hash-link" href="#dmgconfig.windowsize"></a></div> | [`Size`](#size) | [view](#size) | Size of volume window. |
382+
| <div className="anchor-with-padding" id="dmgconfig.appposition">`appPosition`<a class="hash-link" href="#dmgconfig.appposition"></a></div> | [`Position`](#position) | [view](#position) | Position of app file on window. |
383+
| <div className="anchor-with-padding" id="dmgconfig.applicationfolderposition">`applicationFolderPosition`<a class="hash-link" href="#dmgconfig.applicationfolderposition"></a></div> | [`Position`](#position) | [view](#position) | Position of application folder on window. |
384+
385+
386+
###### Position
387+
388+
Position coordinates struct.
389+
390+
Type: `object`
391+
392+
| Name | Type | Default | Description |
393+
| ---- | ---- | ------- | ----------- |
394+
| <div className="anchor-with-padding" id="position.x">`x`<a class="hash-link" href="#position.x"></a></div> | integer _(format: `uint32`)_ (required) | | X coordinate. |
395+
| <div className="anchor-with-padding" id="position.y">`y`<a class="hash-link" href="#position.y"></a></div> | integer _(format: `uint32`)_ (required) | | Y coordinate. |
396+
397+
398+
###### Size
399+
400+
Size of the window.
401+
402+
Type: `object`
403+
404+
| Name | Type | Default | Description |
405+
| ---- | ---- | ------- | ----------- |
406+
| <div className="anchor-with-padding" id="size.width">`width`<a class="hash-link" href="#size.width"></a></div> | integer _(format: `uint32`)_ (required) | | Width of the window. |
407+
| <div className="anchor-with-padding" id="size.height">`height`<a class="hash-link" href="#size.height"></a></div> | integer _(format: `uint32`)_ (required) | | Height of the window. |
408+
409+
345410
##### MacConfig
346411

347412
Configuration for the macOS bundles.
@@ -376,6 +441,7 @@ Type: `object`
376441
| <div className="anchor-with-padding" id="windowsconfig.allowdowngrades">`allowDowngrades`<a class="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`. |
377442
| <div className="anchor-with-padding" id="windowsconfig.wix">`wix`<a class="hash-link" href="#windowsconfig.wix"></a></div> | [`WixConfig`](#wixconfig)? | [view](#wixconfig) | Configuration for the MSI generated with WiX. |
378443
| <div className="anchor-with-padding" id="windowsconfig.nsis">`nsis`<a class="hash-link" href="#windowsconfig.nsis"></a></div> | [`NsisConfig`](#nsisconfig)? | [view](#nsisconfig) | Configuration for the installer generated with NSIS. |
444+
| <div className="anchor-with-padding" id="windowsconfig.signcommand">`signCommand`<a class="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`. |
379445

380446

381447
###### WebviewInstallMode

docs/api/js/cli.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This package is also accessible with `window.__TAURI__.cli` when [`build.withGlo
1818
1919
Number of occurrences
2020

21-
**Defined in:** [cli.ts:27](https://github.com/tauri-apps/tauri/blob/e816a46/tooling/api/src/cli.ts#L27)
21+
**Defined in:** [cli.ts:27](https://github.com/tauri-apps/tauri/blob/0a00375/tooling/api/src/cli.ts#L27)
2222

2323
##### `value`
2424

@@ -28,7 +28,7 @@ string if takes value
2828
boolean if flag
2929
string[] or null if takes multiple values
3030

31-
**Defined in:** [cli.ts:23](https://github.com/tauri-apps/tauri/blob/e816a46/tooling/api/src/cli.ts#L23)
31+
**Defined in:** [cli.ts:23](https://github.com/tauri-apps/tauri/blob/0a00375/tooling/api/src/cli.ts#L23)
3232

3333
### `CliMatches`
3434

@@ -40,13 +40,13 @@ string[] or null if takes multiple values
4040

4141
> **args**: [`Record`]( https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type )<`string`, [`ArgMatch`](cli.md#argmatch)\>
4242
43-
**Defined in:** [cli.ts:42](https://github.com/tauri-apps/tauri/blob/e816a46/tooling/api/src/cli.ts#L42)
43+
**Defined in:** [cli.ts:42](https://github.com/tauri-apps/tauri/blob/0a00375/tooling/api/src/cli.ts#L42)
4444

4545
##### `subcommand`
4646

4747
> **subcommand**: `null` \| [`SubcommandMatch`](cli.md#subcommandmatch)
4848
49-
**Defined in:** [cli.ts:43](https://github.com/tauri-apps/tauri/blob/e816a46/tooling/api/src/cli.ts#L43)
49+
**Defined in:** [cli.ts:43](https://github.com/tauri-apps/tauri/blob/0a00375/tooling/api/src/cli.ts#L43)
5050

5151
### `SubcommandMatch`
5252

@@ -58,13 +58,13 @@ string[] or null if takes multiple values
5858

5959
> **matches**: [`CliMatches`](cli.md#climatches)
6060
61-
**Defined in:** [cli.ts:35](https://github.com/tauri-apps/tauri/blob/e816a46/tooling/api/src/cli.ts#L35)
61+
**Defined in:** [cli.ts:35](https://github.com/tauri-apps/tauri/blob/0a00375/tooling/api/src/cli.ts#L35)
6262

6363
##### `name`
6464

6565
> **name**: `string`
6666
67-
**Defined in:** [cli.ts:34](https://github.com/tauri-apps/tauri/blob/e816a46/tooling/api/src/cli.ts#L34)
67+
**Defined in:** [cli.ts:34](https://github.com/tauri-apps/tauri/blob/0a00375/tooling/api/src/cli.ts#L34)
6868

6969
## Functions
7070

0 commit comments

Comments
 (0)