tauri-cli@1.0.0-rc.0
Ce contenu n’est pas encore disponible dans votre langue.
- Do not force Tauri application code on
src-tauri
folder and use a glob pattern to look for a subfolder with atauri.conf.json
file. - Define
TAURI_PLATFORM
,TAURI_ARCH
,TAURI_FAMILY
,TAURI_PLATFORM_TYPE
,TAURI_PLATFORM_VERSION
andTAURI_DEBUG
environment variables for thebeforeDevCommand
andbeforeBuildCommand
scripts. - Allow
config
arg to be a path to a JSON file on thedev
andbuild
commands. - Add
rustup
version and active rust toolchain to theinfo
command output. - Add
Visual Studio Build Tools
installed versions to theinfo
command output. - The inferred development server port for Svelte is now
8080
(assumes latest Svelte withsirv-cli >= 2.0.0
).- de0543f3 feat(cli.rs): change inferred dev server port to 8080 for Svelte apps on 2022-02-05
- Detect if tauri is used from git in the
info
command. - Drop the
dialoguer
soft fork and use the published version instead. - Fix
build
command when executed on a 32-bit Windows machine when pulling from thebinary-releases
repo. - The
generate
andsign
commands are now available under asigner
subcommand. - Use
tauri-utils
to get theConfig
types.- 4de285c3 feat(core): validate Cargo features matching allowlist [TRI-023] on 2022-01-09
- Print warning and exit if
distDir
containsnode_modules
,src-tauri
ortarget
folders. - Fix
tauri build
failing on Windows iftauri.conf.json > tauri > bundle > Windows > wix > license
is used. - Added
dev_csp
to thesecurity
configuration object. - Kill process if
beforeDevCommand
exits with a non-zero status code. - Fixes output directory detection when using Cargo workspaces.
- Allow using a fixed version for the Webview2 runtime via the
tauri > bundle > windows > webviewFixedRuntimePath
config option. - Adds support for using JSON5 format for the
tauri.conf.json
file, along with also supporting the.json5
extension.
Here is the logic flow that determines if JSON or JSON5 will be used to parse the config:
- Check if
tauri.conf.json
exists a. Parse it withserde_json
b. Parse it withjson5
ifserde_json
fails c. Return originalserde_json
error if all above steps failed - Check if
tauri.conf.json5
exists a. Parse it withjson5
b. Return error if all above steps failed - Return error if all above steps failed
- 995de57a Add seamless support for using JSON5 in the config file (#47) on 2022-02-03
- Added
$ tauri plugin init
command, which initializes a Tauri plugin. - Breaking change: Add
macos-private-api
feature flag, enabled viatauri.conf.json > tauri > macOSPrivateApi
. - Move the copying of resources and sidecars from
cli.rs
totauri-build
so using the Cargo CLI directly processes the files for the application execution in development. - The minimum Rust version is now
1.56
. - Automatically
strip
the built binary on Linux and macOS if--debug
is not specified. - Fixes pnpm error when running
pnpm tauri info
. - Add support to building Universal macOS Binaries through the virtual target
universal-apple-darwin
(runtauri build --target universal-apple-darwin
). - Wait for
devPath
URL to be reachable before starting the application. Skipped if theTAURI_SKIP_DEVSERVER_CHECK
environment variable is set totrue
. - On Windows, Fix
beforeDevCommand
andbeforeBuildCommand
not executing the expected command if it contains quotes. This is done by executing them withCMD /S /C {command}
instead ofCMD /C {command}
on Windows. - Allow setting the localization file for WiX.
© 2024 Tauri Contributors. CC-BY / MIT