The Cargo Packager can be used to package, bundle and update Tauri apps.
You can create a Tauri app bundle with the following steps. For this, you may Create a new Tauri app or can use an existing Tauri app.
Cargo packager can be installed with the help of the following commands, depending on the package manager you chose in the previous step:
Now, Packager is installed in your application. Next you will add the configuration to use Packager.
Now, you must add configuration to your application. For this, you have to edit the src-tauri/Cargo.toml
file and add the following snippet to it.
Additionally, you must configure the dependencies required by Tauri:
Be sure to replace before-packaging-command
with the command you use to build the Tauri app.
For the complete list of configuration options, see the configuration page.
The Tauri app can now be packaged. You can simply use the given commands as per the Package Manager you used to install Cargo Packager.
You can now see your Tauri app nicely packaged by the Packager. The app bundles and installers are generated in the target/release
folder.