new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Tauri · Plugins and security · all subjects

cli & development

39 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

tauri icon command for icon generation

Tauri 1.1.0 includes a new 'tauri icon' command integrated into the main Tauri CLI. This command generates icons for Tauri applications from a single source PNG, replacing the need to use the separate tauricon project.

cargo-binstall support for Tauri CLI

Tauri 1.1.0 can be installed using cargo-binstall, a mechanism to download and install pre-built Rust binaries. Installation is done with: cargo install cargo-binstall, then cargo binstall tauri-cli, then cargo tauri dev for any Tauri command.

TOML configuration support in 1.1.0

Tauri 1.1.0 adds TOML configuration format support behind the config-toml Cargo feature. Configuration can now be defined in a Tauri.toml file with keys like [build], dev-path, and dist-dir using kebab-case naming.

Tauri.toml configuration example

[build] dev-path = "http://localhost:8000" dist-dir = "../dist"

tauri dev --no-watch option in 1.1.0

Tauri 1.1.0 adds the --no-watch option to the tauri dev command to disable the dev watcher.

.taurignore file support in 1.1.0

Tauri 1.1.0 automatically uses any .taurignore file as ignore rules for the dev watcher and app path finder.

beforeBundleCommand configuration in 1.1.0

Tauri 1.1.0 adds beforeBundleCommand configuration option.

beforeDevCommand and beforeBuildCommand working directory configuration in 1.1.0

Tauri 1.1.0 adds an option to configure the current working directory for beforeDevCommand and beforeBuildCommand.

Tauri 1.2.0 release date

Tauri 1.2.0 was released on November 8, 2022.

Tauri 1.2.0 minimum Rust version requirement

Tauri 1.2.0 requires a minimum Rust version of 1.59 or later to compile.

Enhanced titlebar configuration options on macOS

Tauri 1.2.0 adds titlebar style configuration on macOS. Applications can define a transparent titlebar, overlay titlebar style, hide the window title text, and set the acceptFirstMouse option to allow the window to accept first mouse events so it can be focused immediately after receiving a click event for dragging.

Unfocused window creation reimplemented

Tauri 1.2.0 reimplements the option to create unfocused windows.

New window options in Tauri 1.2.0

Tauri 1.2.0 adds the acceptFirstMouse window option for macOS and the tabbingIdentifier window option for macOS.

Show and hide methods on app module for macOS

Tauri 1.2.0 adds show and hide methods on the app module for macOS.

Hot reload support for frontend static files

Tauri 1.2.0 adds hot reload support for frontend static files.

Bundle publisher configuration option

Tauri 1.2.0 adds a configuration option for the bundle publisher.

Set title for macOS tray

Tauri 1.2.0 exposes a set_title function for the macOS tray.

Tauri 1.3.0 release date

Tauri 1.3.0 was announced on May 3, 2023.

Cargo workspace inheritance support in 1.3.0

Tauri 1.3.0 adds support for Cargo's workspace inheritance feature.

NSIS Windows installer bundling in 1.3.0

Tauri 1.3.0 enables the Tauri CLI to create Windows application installers using NSIS. This bundle target is also available on macOS and Linux as an experimental feature for cross-compilation of Windows installers.

Icon command PNG option in 1.3.0

Tauri 1.3.0 adds a --png option to the icon command to generate custom icon sizes.

MSI installer Launch App checkbox default in 1.3.0

On Windows, Tauri 1.3.0 sets the 'Launch App' checkbox in the MSI installer to be checked by default.

Pre-release identifiers and build numbers in MSI bundle in 1.3.0

Tauri 1.3.0 adds support for pre-release identifiers and build numbers for the MSI bundle target. Only one of each can be used and it must be numeric only. The version must still be semver compatible according to https://semver.org/.

CI flag for signer generate command in 1.3.0

Tauri 1.3.0 adds a --ci flag and respects the CI environment variable on the signer generate command. When used, the default password will be an empty string and the CLI will not prompt for a value.

TAURI_KEY_PASSWORD environment variable in 1.3.0

Tauri 1.3.0 skips the password prompt on the build command when the TAURI_KEY_PASSWORD environment variable is empty and the --ci argument is provided or the CI environment variable is set.

Tauri 1.4.0 release date

Tauri 1.4.0 was released on June 14, 2023.

Tauri 1.4.0 CLI completions

The Tauri CLI in version 1.4.0 can generate shell completions for Bash, Zsh, PowerShell, and Fish shells.

NSIS installer improvements in Tauri 1.4.0

Tauri 1.4.0 includes NSIS bundle enhancements: custom language files, custom installer template (.nsi file), support for dutch, japanese, korean, persian, swedish and turkish languages, prompting users to uninstall if application was previously installed via WiX, and improved support for updater install modes.

Tauri 1.4.0 minimum supported Rust version

Tauri 1.4 has a minimum supported Rust version of 1.60. Due to dependency incompatibility issues, the patch versions of the time, ignore, and winnow crates are no longer pinned. Users still on Rust 1.60 must manually pin these crate versions using cargo update.

Unit testing in Tauri 1.4.0

The tauri crate in version 1.4.0 exposes a test module under the test Cargo feature. This unstable module allows unit testing applications by creating a tauri::App instance that executes without spawning windows.

Tauri 1.5.0 release date

Tauri 1.5.0 was announced and released on 2023-09-28.

Notarytool migration required by 2023-11-01

Tauri 1.5 migrated from altool to notarytool for macOS application notarization. The altool has been deprecated and will stop working on 2023-11-01. Users must upgrade their Tauri CLI to 1.5 before that date.

APPLE_API_KEY_PATH environment variable for notarytool

When using notarytool for API key authentication with the Apple notary service, notarytool no longer automatically searches for the API key .p8 file. Users should define the key path via the APPLE_API_KEY_PATH environment variable. For backward compatibility, Tauri performs the same lookup as altool if the environment variable is not set, but this behavior may change in the future.

Tauri 1.5.0 upgrade commands

To upgrade to Tauri 1.5.0, run: npm install @tauri-apps/cli@latest @tauri-apps/api@latest (npm), yarn upgrade @tauri-apps/cli @tauri-apps/api --latest (yarn), pnpm update @tauri-apps/cli @tauri-apps/api --latest (pnpm), or cargo update (Cargo). Both NPM and Cargo dependencies must be updated.

Bun package manager support in Tauri CLI

Starting with Tauri 1.5, the Tauri CLI supports the Bun package manager.

Code signing for all executables in Tauri 1.5

Starting in Tauri 1.5, the bundler signs all executables including sidecars, app executables, and NSIS uninstaller, as well as macOS frameworks.

APPLE_TEAM_ID environment variable for notarization

Tauri 1.5 added support for the APPLE_TEAM_ID environment variable to properly define the team ID associated with an Apple account when the user belongs to multiple teams.

macOS frameworks code signing and @rpath configuration

Tauri 1.5 enhanced macOS frameworks support by code signing all custom frameworks injected via tauri.conf.json > tauri > bundle > macOS > frameworks and defining the @rpath value to fix crashes when updating the app.

Tauri 1.5.0 main features summary

Tauri 1.5.0 includes improved resources bundling, code signing enhancements, notarytool migration on macOS, and Bun support.

Give your agent this brain