mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-21 01:32:03 +03:00
5966812735
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
88 KiB
88 KiB
Changelog
[1.5.9]
Bug Fixes
0a2175ea
(#8439) Expand glob patterns in workspace member paths so the CLI would watch all matching pathhs.
Dependencies
- Upgraded to
tauri-bundler@1.4.8
- Upgraded to
tauri-utils@1.5.2
[1.5.8]
Dependencies
- Upgraded to
tauri-bundler@1.4.7
[1.5.7]
Bug Fixes
1d5aa38a
(#8162) Fixes errors on command output, occuring when the output stream contains an invalid UTF-8 character, or ends with a multi-bytes UTF-8 character.f26d9f08
(#8263) Fixes an issue in the NSIS installer which caused the uninstallation to leave empty folders on the system if theresources
feature was used.92bc7d0e
(#8233) Fixes an issue in the NSIS installer which caused the installation to take much longer than expected when manyresources
were added to the bundle.
Dependencies
- Upgraded to
tauri-bundler@1.4.6
[1.5.6]
Bug Fixes
5264e41d
(#8082) Downgradedrust-minisign
to0.7.3
to fix signing updater bundles with empty passwords.
Dependencies
- Upgraded to
tauri-bundler@1.4.5
[1.5.5]
Enhancements
Bug Fixes
Dependencies
- Upgraded to
tauri-bundler@1.4.4
[1.5.4]
Dependencies
- Upgraded to
tauri-bundler@1.4.3
[1.5.3]
Dependencies
- Upgraded to
tauri-bundler@1.4.2
[1.5.2]
Dependencies
- Upgraded to
tauri-bundler@1.4.1
[1.5.1]
Bug Fixes
[1.5.0]
New Features
Enhancements
Bug Fixes
dad4f54e
(#7277) Removed the automatic version check of the CLI that ran aftertauri
commands which caused various issues.
Dependencies
- Upgraded to
tauri-bundler@1.4.0
- Upgraded to
tauri-utils@1.5.0
[1.4.0]
New Features
0ddbb3a1
(#7015) Provide prebuilt CLIs for Windows ARM64 targets.35cd751a
(#5176) Added thedesktop_template
option ontauri.conf.json > tauri > bundle > deb
.6c5ade08
(#4537) Addedtauri completions
to generate shell completions scripts.29488205
(#6867) Allow specifying custom language files of Tauri's custom messages for the NSIS installere092f799
(#6887) Addnsis > template
option to specify custom NSIS installer template.
Enhancements
d75c1b82
(#7181) Print a useful error whenupdater
bundle target is specified without an updater-enabled target.52474e47
(#7141) Enhance injection of Cargo features.2659ca1a
(#6900) Addrustls
as default Cargo feature.c7056d1b
(#6982) Improve Visual Studio installation detection intauri info
command to check for the necessary components instead of whole workloads. This also fixes the detection of minimal installations and auto-installations done byrustup
.
Bug Fixes
3cb7a3e6
(#6997) Fix built-in devserver adding hot-reload code to non-html files.fd3b5a16
(#6954) Fix building with a custom cargo profile1253bbf7
(#7013) Fixes Cargo.toml feature rewriting.
[1.3.1]
-
Correctly escape XML for resource files in WiX bundler.
-
Added the following languages to the NSIS bundler:
-
Spanish
-
SpanishInternational
-
Bumped due to a bump in tauri-bundler.
-
422b4817 Add Spanish and SpanishInternational languages (#6871) on 2023-05-06
-
Correctly escape arguments in NSIS script to fix bundling apps that use non-default WebView2 install modes.
[1.3.0]
- Look for available port when using the built-in dev server for static files.
- Add
--port
to specify the port used for static files dev server. It can also be specified throughTAURI_DEV_SERVER_PORT
env var. - Fix
tauri info
panicking when parsing crates version on a newly created project without aCargo.lock
file. - Improve the error message when
rustc
couldn't be found. - Add
--ci
flag and respect theCI
environment variable on thesigner generate
command. In this case the default password will be an empty string and the CLI will not prompt for a value. - Fix Outdated Github Actions in the Plugin Templates
with-api
andbackend
- Do not crash on Cargo.toml watcher.
- On Windows, printing consistent paths on Windows with backslashs only.
- Add
--png
option for theicon
command to generate custom icon sizes. - Skip the password prompt on the build command when
TAURI_KEY_PASSWORD
environment variable is empty and the--ci
argument is provided or theCI
environment variable is set. - Fix
default-run
not deserialized. - Fixes HTML serialization removing template tags on the dev server.
- Use escaping on Handlebars templates.
- Fix building apps with unicode characters in their
productName
. - Bump minimum supported Rust version to 1.60.
- Add initial support for building
nsis
bundles on non-Windows platforms. - Add
nsis
bundle target - Remove default features from Cargo.toml template.
- Added support for Cargo's workspace inheritance for package information. The cli now also detects inherited
tauri
andtauri-build
dependencies and disables manifest rewrites accordingly. - Use Ubuntu 20.04 to compile the CLI for cargo-binstall, increasing the minimum libc required.
[1.2.3]
- Pin
ignore
to=0.4.18
.- adcb082b chore(deps): pin
ignore
to =0.4.18 on 2023-01-17
- adcb082b chore(deps): pin
[1.2.2]
- Detect SvelteKit and Vite for the init and info commands.
- Detect SolidJS and SolidStart for the init and info commands.
- Use older icon types to work around a macOS bug resulting in corrupted 16x16px and 32x32px icons in bundled apps.
- Add
--no-dev-server
flag to the cli to disable the dev server for static files in dev mode.
[1.2.1]
- Fixes injection of Cargo features defined in the configuration file.
- 1ecaeb29 fix(cli): inject config feature flags when features arg is not provided on 2022-11-18
[1.2.0]
- Keep
tauri dev
watcher alive when the configuration is invalid. - Ignore workspace members in dev watcher if they are ignored by
.taurignore
- Detect JSON5 and TOML configuration files in the dev watcher.
- Fix cli passing
--no-default-features
to the app instead of the runner (Cargo). - Validate
package > productName
in the tauri config and produce errors if it contains one of the following characters/\:*?\"<>|
- Hot-reload the frontend when
tauri.conf.json > build > devPath
points to a directory. - Expose
TAURI_TARGET_TRIPLE
tobeforeDevCommand
,beforeBuildCommand
andbeforeBundleCommand
- Log dev watcher file change detection.
- Set
TAURI_PLATFORM_TYPE
,TAURI_FAMILY
,TAURI_ARCH
andTAURI_PLATFORM
env vars for hook commands to based on the app not the cli. - Add
tauri.conf.json > bundle > publisher
field to specify the app publisher. - Changed the project template to not enable all APIs by default.
[1.1.1]
- Fix wrong cli metadata that caused new projects (created through
tauri init
) fail to build
[1.1.0]
- Allow adding
build > beforeBundleCommand
in tauri.conf.json to run a shell command before the bundling phase. - Change
before_dev_command
andbefore_build_command
config value to allow configuring the current working directory. - Allow configuring the
before_dev_command
to force the CLI to wait for the command to finish before proceeding. - Check if the default build target is set in the Cargo configuration.
- Add support to cargo-binstall.
- Use
cargo metadata
to detect the workspace root and target directory. - Prompt for
beforeDevCommand
andbeforeBuildCommand
intauri init
. - Add
icon
command to generate icons. - Added support to configuration files in TOML format (Tauri.toml file).
- Automatically use any
.taurignore
file as ignore rules for dev watcher and app path finder. - Enable WiX FIPS compliance when the
TAURI_FIPS_COMPLIANT
environment variable is set totrue
. - Fixes dev watcher incorrectly exiting the CLI when sequential file updates are detected.
- Set the
MACOSX_DEPLOYMENT_TARGET
environment variable with the configurationminimum_system_version
value. - Added
--no-watch
argument to thedev
command to disable the file watcher. - Validate updater signature matches configured public key.
[1.0.5]
- Correctly fill the architecture when building Debian packages targeting ARM64 (aarch64).
[1.0.4]
- Do not capture and force colors of
cargo build
output. - Reduce the amount of allocations when converting cases.
[1.0.3]
- Changed the app template to not set the default app menu as it is now set automatically on macOS which is the platform that needs a menu to function properly.
- Improved bundle identifier validation showing the exact source of the configuration value.
- Improve configuration deserialization error messages.
- Skip the static link of the
vcruntime140.dll
if theSTATIC_VCRUNTIME
environment variable is set tofalse
. - The
TAURI_CONFIG
environment variable now represents the configuration to be merged instead of the entire JSON. - Watch for Cargo workspace members in the
dev
file watcher.
[1.0.2]
- Fixes a crash on the
signer sign
command.
[1.0.1]
- No longer adds the
pkg-config
dependency to.deb
packages when thesystemTray
is used. This only works with recent versions oflibappindicator-sys
(including https://github.com/tauri-apps/libappindicator-rs/pull/38), so acargo update
may be necessary if you create.deb
bundles and use the tray feature. - AppImage bundling will now prefer bundling correctly named appindicator library (including
.1
version suffix). With a symlink for compatibility with the old naming. - Improve error message when
cargo
is not installed. - The app template now only sets the default menu on macOS.
- Warn if updater is enabled but not in the bundle target list.
- Check if target exists and is installed on dev and build commands.
- Fixes the covector configuration on the plugin templates.
- b8a64d01 fix(cli): add prepublish scripts to the plugin templates on 2022-06-19
- Set the binary name to the product name in development.
- Allow registering a
.gitignore
file to skip watching some project files and directories via theTAURI_DEV_WATCHER_IGNORE_FILE
environment variable. - Fix shebang for
kill-children.sh
. - Update plugin templates to use newer
tauri-apps/create-pull-request
GitHub action.- 07f90795 chore(cli): update plugin template tauri-apps/create-pull-request on 2022-06-19
- Use UNIX path separator on the init
$schema
field. - The
info
command now can check the Cargo lockfile on workspaces. - Preserve the
Cargo.toml
formatting when the features array is not changed. - Change the updater signature metadata to include the file name instead of its full path.
- Validate bundle identifier as it must only contain alphanumeric characters, hyphens and periods.
[1.0.0]
[1.0.0-rc.16]
- Use the default window menu in the app template.
[1.0.0-rc.15]
- Removed the tray icon from the Debian and AppImage bundles since they are embedded in the binary now.
[1.0.0-rc.14]
- Set the
TRAY_LIBRARY_PATH
environment variable to make the bundle copy the appindicator library to the AppImage. - Set the
APPIMAGE_BUNDLE_GSTREAMER
environment variable to make the bundler copy additional gstreamer files to the AppImage. - Configure the AppImage bundler to copy the
/usr/bin/xdg-open
binary if it exists and the shellopen
API is enabled. - Fixes multiple occurrences handling of the
bundles
andfeatures
arguments. - Log command output in real time instead of waiting for it to finish.
- Configure the
STATIC_VCRUNTIME
environment variable sotauri-build
statically links it on the build command. - Use the
TAURI_TRAY
environment variable to determine which package should be added to the Debiandepends
section. Possible values areayatana
andgtk
.
[1.0.0-rc.13]
- Check if
$CWD/src-tauri/tauri.conf.json
exists before walking through the file tree to find the tauri dir in case the whole project is gitignored. - Statically link the Visual C++ runtime instead of using a merge module on the installer.
[1.0.0-rc.12]
- Properly fetch the NPM dependency information when using Yarn 2+.
[1.0.0-rc.11]
- Allow configuring the display options for the MSI execution allowing quieter updates.
[1.0.0-rc.10]
- Resolve binary file extension from target triple instead of compile-time checks to allow cross compilation.
- Fixes text overflow on
tauri dev
on Windows. - Improve CLI's logging output, making use of the standard rust
log
system. - Don't override the default keychain on macOS while code signing.
-
- Remove startup delay in
tauri dev
caused by checking for a newer cli version. The check is now done upon process exit.
- Remove startup delay in
- Add
TAURI_SKIP_UPDATE_CHECK
env variable to skip checking for a newer CLI version. - bbabc8cd fix(cli.rs): remove startup delay in
tauri dev
(#3999) on 2022-04-29 - Fix
tauri info
panic when a package isn't installed. - Added
$schema
support totauri.conf.json
. - Breaking change: The
dev
command now reads the custom config file from CWD instead of the Tauri folder. - Fixes a Powershell crash when sending SIGINT to the dev command.
- Prevent building when the bundle identifier is the default
com.tauri.dev
.
[1.0.0-rc.9]
- Exit CLI when Cargo returns a non-compilation error in
tauri dev
. - Notify CLI update when running
tauri dev
. - The CLI will not automatically run
strip
on release binaries anymore. Use the [strip
][strip] profile setting stabilized with Cargo 1.59.
- 62106224 refactor: drop strip from build command. closes #3559 (#3863) on 2022-04-06
- Kill the
beforeDevCommand
and app processes if the dev command returns an error. - Fix
info
command showing outdated text for latest versions. - Breaking change: Enable default Cargo features except
tauri/custom-protocol
on the dev command. - Kill the
beforeDevCommand
process recursively on Unix.
[1.0.0-rc.8]
- Allows the
tauri.conf.json
file to be git ignored on the path lookup function. - Remove
minimumSystemVersion: null
from the application template configuration. - Improve readability of the
info
subcommand output. - Properly terminate the
beforeDevCommand
process. - Fixes DMG bundling on macOS 12.3.
- Fixes resources bundling on Windows when the path is on the root of the Tauri folder.
[1.0.0-rc.7]
- Added
tsp
config option undertauri > bundle > windows
, which enables Time-Stamp Protocol (RFC 3161) for the timestamping server under code signing on Windows if set totrue
. - Change the
plugin init
templates to use the newtauri::plugin::Builder
syntax.
[1.0.0-rc.6]
- Improve "waiting for your dev server to start" message.
- Do not panic if the updater private key password is wrong.
- Check the current folder before checking the directories on the app and tauri dir path lookup function.
- Fixes the signature of the
signer sign
command to not have duplicated short flags.
[1.0.0-rc.5]
- Allow passing arguments to the
build
runner (tauri build -- <ARGS>...
). - Improve error message when the dev runner command fails.
- Increase
tauri.conf.json
directory lookup depth to3
and allow changing it with theTAURI_PATH_DEPTH
environment variable. - Added
tauri-build
,tao
andwry
version to theinfo
command output. - Breaking change: The extra arguments passed to
tauri dev
using-- <ARGS>...
are now propagated to the runner (defaults to cargo). To pass arguments to your binary using Cargo, you now need to runtauri dev -- -- <ARGS-TO-YOUR-BINARY>...
(notice the double--
). - Change the
init
template configuration to disable CSP for better usability for new users.
[1.0.0-rc.4]
- Change default value for the
freezePrototype
configuration tofalse
.
[1.0.0-rc.3]
- Fixes Tauri path resolution on projects without Git or a
.gitignore
file.
[1.0.0-rc.2]
- Fix
init
command prompting for values even if the argument has been provided on the command line. - Fixes CLI freezing when running
light.exe
on Windows without the--verbose
flag. - Respect
.gitignore
configuration when looking for the folder with thetauri.conf.json
file.
[1.0.0-rc.1]
- Include
vswhere.exe
on the published package.- 3227502e fix(cli.rs): package
vswhere.exe
on 2022-02-10
- 3227502e fix(cli.rs): package
[1.0.0-rc.0]
- 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.
[1.0.0-beta.7]
- Update cli.yml to pass clap ArgSettings::MultipleValues assertion.
[1.0.0-beta.6]
- Added
APPLE_SIGNING_IDENTITY
as supported environment variable for the bundler. - Added configuration for the WiX banner icon under
tauri.conf.json > tauri > bundle > windows > wix > bannerPath
. - Added configuration for the WiX dialog background bitmap under
tauri.conf.json > tauri > bundle > windows > wix > dialogImagePath
. - Only convert package name and binary name to kebab-case, keeping the
.desktop
Name
field with the original configured value. - Merge platform-specific
tauri.linux.conf.json
,tauri.windows.conf.json
andtauri.macos.conf.json
into the config JSON fromtauri.conf.json
. - Update minimum Rust version to 1.54.0.
[1.0.0-beta.5]
- Run powershell commands with
-NoProfile
flag - Adds
release
argument to thedev
command. Allowing to run the backend in release mode during development. - Fixes
center
andfocus
not being allowed intauri.conf.json > tauri > windows
and ignored inWindowBuilderWrapper
.
[1.0.0-beta.4]
- Improve error message when the product name is invalid.
[1.0.0-beta.3]
- Properly detect target platform's architecture.
- Fixes
build
command when thetarget
arg is set.
[1.0.0-beta.2]
- Support
cargo tauri build
on Apple M1 chip. - Infer
app name
andwindow title
frompackage.json > productName
orpackage.json > name
. InferdistDir
anddevPath
by reading the package.json and trying to determine the UI framework (Vue.js, Angular, React, Svelte and some UI frameworks). - Watch workspace crates on
dev
command. - Adds
features
argument to thedev
andbuild
commands. - Fixes the libwebkit2gtk package name.
- Properly keep all
tauri
features that are not managed by the CLI. - Copy resources and binaries to
OUT_DIR
ontauri dev
command. - Read cargo features from
tauri.conf.json > build > features
and propagate them ondev
andbuild
. - Fixes
tauri.conf.json > tauri > bundle > targets
not applying to the bundler. - Fixes
info
command not striping\r
from child process version output. - Allow setting a path to a license file for the Windows Installer (
tauri.conf.json > bundle > windows > wix > license
). - Change the
csp
value on the template to includewss:
andtauri:
to thedefault-src
attribute. - Adds
tauri > bundle > windows > wix > language
config option. See https://docs.microsoft.com/en-us/windows/win32/msi/localizing-the-error-and-actiontext-tables.
[1.0.0-beta.1]
- Add
'self'
to default CSP because otherwise no joy on macOS. - Fix a typo that would result in bundle arg being ignored.
[1.0.0-beta.0]
- Fixes a cargo
target/
cache issue. - Improve error logging.
- Adds Webview2 version on
info
command. - Adds
--runner [PROGRAM]
argument on thedev
andbuild
command, allowing using the specified program to run and build the application (example program:cross
). - Adds
--target [TARGET_TRIPLE]
option to thebuild
command (example:--target arm-unknown-linux-gnueabihf
). - Rename
--target
option on thebuild
command to--bundle
. - Automatically add Tauri dependencies to the debian package
Depends
section. - Properly kill
beforeDevCommand
process. - Adds support to
tauri
dependency as string and table onCargo.toml
. - Show
framework
andbundler
on theinfo
command by reading thepackage.json
file and matching known dependencies.
[1.0.0-beta-rc.4]
- Fixes the Message
command
name value on plugin invoke handler. - The package info APIs now checks the
package
object ontauri.conf.json
.
[1.0.0-beta-rc.3]
- Check if distDir assets are built after running
beforeDevCommand
. - Fixes
tauri info
display version for the@tauri-apps/api
package. - Fixes crash on usage of modifier keys on Windows when running
tauri init
. - Enable
tauri
updater
feature whentauri.conf.json > tauri > updater > active
is set totrue
.
[1.0.0-beta-rc.2]
- Add missing camelcase rename for config
- Fix
tauri info
- Properly detect
yarn
andnpm
versions on windows. - Fix a panic caused by a wrong field name in
metadata.json
- 71666e9 fix(cli.rs): fix panic & use
cmd
to runyarn
&npm
on windows (#1511) on 2021-04-17 - Sync
metadata.json
via script to update version reference to cli.js, tauri (core) and tauri-build.
[1.0.0-beta-rc.1]
- Missing the
files
property in the package.json which mean that thedist
directory was not published and used.
[1.0.0-beta-rc.0]
- You can now run
cargo tauri build -t none
to speed up the build if you don't need executables. - The
dev
andbuild
pipeline is now written in Rust. - Run
beforeDevCommand
andbeforeBuildCommand
in a shell. - Fixes
<a target="_blank">
polyfill. - Update all code files to have our license header.
- Adds
productName
andversion
configs ontauri.conf.json > package
. - The
info
command was rewritten in Rust. - The
init
command was rewritten in Rust. - All the arguments passed after
tauri dev --
are now propagated to the binary. - Alpha version of tauri-updater. Please refer to the
README
for more details.