mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-01-31 00:35:19 +01:00
* Restructure the repository * lock file * fmt * fix bench * fix cli template test * remove accidental file * fix mv command * clippy * upgrade paths-filter github action * fix cli migration tests * lockfile * license headers * clippy * scope test-core to tauri crate * license header * correct --manifest-path usage * lockfile * fix tauri-driver on macOS [skip ci] * build target ios * try downgrade env_logger * downgrade 0.1.7 * try to fix bench * bench overflow * revert overflow fix, fix tauri_root_path * revert env_logger downgrade * fmt * raise msrv to 1.71 * fmt * delete .cargo/config.toml [skip ci] --------- Co-authored-by: Lucas Nogueira <lucas@tauri.app>
43 KiB
43 KiB
Changelog
[2.0.0-rc.6]
Bug Fixes
793ee0531(#10700 by @lucasfernog) Allow hyphens and underscores on app identifiers.
What's Changed
f4d5241b3(#10731 by @amrbashir) Update documentation icon path.
Dependencies
- Upgraded to
tauri-utils@2.0.0-rc.6 - Upgraded to
tauri-codegen@2.0.0-rc.6
[2.0.0-rc.5]
Dependencies
- Upgraded to
tauri-utils@2.0.0-rc.5 - Upgraded to
tauri-codegen@2.0.0-rc.5
[2.0.0-rc.4]
Bug Fixes
5c335ae9a(#10648 by @Flakebi) Prevent build script from rerunning unnecessarily by only writing files when the content changes.77844529f(#10678 by @Norbiros) Correctly exportDefaultPermissionsRule
Dependencies
- Upgraded to
tauri-utils@2.0.0-rc.4 - Upgraded to
tauri-codegen@2.0.0-rc.4
[2.0.0-rc.3]
New Features
0bb7b0f35(#10559 by @Norbiros) AddedInlinedPlugin::default_permissionto autogenerate the default permission of an inlined plugin.
Dependencies
- Upgraded to
tauri-codegen@2.0.0-rc.3 - Upgraded to
tauri-utils@2.0.0-rc.3
[2.0.0-rc.2]
Dependencies
- Upgraded to
tauri-utils@2.0.0-rc.2 - Upgraded to
tauri-codegen@2.0.0-rc.2
[2.0.0-rc.1]
Dependencies
- Upgraded to
tauri-utils@2.0.0-rc.1 - Upgraded to
tauri-codegen@2.0.0-rc.1
[2.0.0-rc.0]
Dependencies
- Upgraded to
tauri-codegen@2.0.0-rc.0 - Upgraded to
tauri-utils@2.0.0-rc.0
[2.0.0-beta.19]
Bug Fixes
69dcfdfe0(#10267 by @lucasfernog) Fix build script rerun-if-changed instruction if Info.plist do not exist next to tauri.conf.json.
Dependencies
- Upgraded to
tauri-codegen@2.0.0-beta.19 - Upgraded to
tauri-utils@2.0.0-beta.19
[2.0.0-beta.18]
Enhancements
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.18 - Upgraded to
tauri-codegen@2.0.0-beta.18 f955f7b49(#9929) Switch fromdirs_nexttodirsasdirs_nextis now unmaintained whiledirsis
[2.0.0-beta.17]
Enhancements
Bug Fixes
What's Changed
9ac930380(#9850) Emitcargo:rustc-check-cfginstruction so Cargo validates custom cfg attributes on Rust 1.80 (or nightly-2024-05-05).
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.17 - Upgraded to
tauri-codegen@2.0.0-beta.17
Breaking Changes
1df5cdeb0(#9858) Usetauri.conf.json > identifierto set thePackageNamein Android andBundleIdin iOS.aaecb6a72(#9890) Renameddevfunction tois_dev
[2.0.0-beta.16]
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.16 - Upgraded to
tauri-codegen@2.0.0-beta.16
[2.0.0-beta.15]
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.15 - Upgraded to
tauri-codegen@2.0.0-beta.15
[2.0.0-beta.14]
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.14 - Upgraded to
tauri-codegen@2.0.0-beta.14
[2.0.0-beta.13]
Bug Fixes
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.13 - Upgraded to
tauri-codegen@2.0.0-beta.13
[2.0.0-beta.12]
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.12 - Upgraded to
tauri-codegen@2.0.0-beta.12
[2.0.0-beta.11]
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.11 - Upgraded to
tauri-codegen@2.0.0-beta.11
[2.0.0-beta.10]
New Features
e227fe02f(#9156) Allow plugins to define (at compile time) JavaScript that are initialized whenwithGlobalTauriis true.
Enhancements
7213b9e47(#9124) Fallback to an empty permission set if the plugin did not define itsdefaultpermissions.
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.10 - Upgraded to
tauri-codegen@2.0.0-beta.10
[2.0.0-beta.9]
Dependencies
- Upgraded to
tauri-codegen@2.0.0-beta.9 - Upgraded to
tauri-utils@2.0.0-beta.9
[2.0.0-beta.8]
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.8 - Upgraded to
tauri-codegen@2.0.0-beta.8
[2.0.0-beta.7]
Bug Fixes
bb23511ea(#9079) Fixed generation of capability schema for permissions field which previously disallowed mixed (strings and objects) permission definition.
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.7 - Upgraded to
tauri-codegen@2.0.0-beta.7
[2.0.0-beta.6]
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.6 - Upgraded to
tauri-codegen@2.0.0-beta.6
Breaking Changes
3657ad82(#9008) Allow defining permissions for the application commands viatauri_build::Attributes::app_manifest.
[2.0.0-beta.5]
Breaking Changes
b9e6a018(#8937) Thecustom-protocolCargo feature is no longer required on your application and is now ignored. To check if running on production, use#[cfg(not(dev))]instead of#[cfg(feature = "custom-protocol")].b9e6a018(#8937) Removedtauri_build::CodegenContext::dev()and addedtauri_build::dev().
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.5 - Upgraded to
tauri-codegen@2.0.0-beta.5
[2.0.0-beta.4]
Enhancements
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.4 - Upgraded to
tauri-codegen@2.0.0-beta.4
[2.0.0-beta.3]
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.3 - Upgraded to
tauri-codegen@2.0.0-beta.3
[2.0.0-beta.2]
Enhancements
83a68deb(#8797) Added a new configuration optiontauri.conf.json > app > security > capabilitiesto reference existing capabilities and inline new ones. If it is empty, all capabilities are still included preserving the current behavior.edb11c13(#8781) AddedAttributes::plugin()to register a plugin that is inlined in the application crate.8d16a80d(#8802) AddedCodegenContext::capabilityto include a capability file dynamically.
Bug Fixes
0e8e9cd0(#8906) Fixes the capability schema not resolving inner definitions.19fb5f0b(#8782) Fix generating invalid schema files.
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.2 - Upgraded to
tauri-codegen@2.0.0-beta.2
[2.0.0-beta.1]
Enhancements
4e101f80(#8756) Moved the capability JSON schema to thesrc-tauri/genfolder so it's easier to track changes on thecapabilitiesfolder.
Bug Fixes
4e101f80(#8756) Do not trigger build script to rerun if the frontendDist directory does not exist.0f2789cd(#8757) Do not rewrite capability JSON schema if it did not change.
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.1 - Upgraded to
tauri-codegen@2.0.0-beta.1
[2.0.0-beta.0]
New Features
Enhancements
e8d3793c(#8732) Addconfig-jsoncargo feature flag (enabled by default) to. Disabling this feature flag will stop cargo from rebuilding whentauri.conf.jsonchanges, see #8721 for more info.
Dependencies
- Upgraded to
tauri-utils@2.0.0-beta.0 - Upgraded to
tauri-codegen@2.0.0-beta.0
Breaking Changes
-
8de308d1(#8723) Restructured Tauri config per RFC#5:- Moved
package.productName,package.versionandtauri.bundle.identifierfields to the top-level. - Removed
packageobject. - Renamed
tauriobject toapp. - Moved
tauri.bundleobject to the top-level. - Renamed
build.distDirfield tofrontendDist. - Renamed
build.devPathfield todevUrland will no longer accepts paths, it will only accept URLs. - Moved
tauri.patterntoapp.security.pattern. - Removed
tauri.bundle.updaterobject, and its fields have been moved to the updater plugin underplugins.updaterobject. - Moved
build.withGlobalTauritoapp.withGlobalTauri. - Moved
tauri.bundle.dmgobject tobundle.macOS.dmg. - Moved
tauri.bundle.debobject tobundle.linux.deb. - Moved
tauri.bundle.appimageobject tobundle.linux.appimage. - Removed all license fields from each bundle configuration object and instead added
bundle.licenseandbundle.licenseFile. - Renamed
AppUrltoFrontendDistand refactored its variants to be more explicit.
- Moved
-
0cdfda28(#8737) Movedmobile::PluginBuilder,mobile::update_entitlements,config::plugin_configandmobile::update_android_manifestto the newtauri-plugincrate. -
74a2a603(#8661)CodegenContext::buildandCodegenContext::try_buildhave been removed, usetauri_build::try_build(tauri_build::Attributes::new().codegen(codegen))instead.
[2.0.0-alpha.14]
Dependencies
- Upgraded to
tauri-utils@2.0.0-alpha.13 - Upgraded to
tauri-codegen@2.0.0-alpha.13
[2.0.0-alpha.13]
Dependencies
- Upgraded to
tauri-utils@2.0.0-alpha.12 - Upgraded to
tauri-codegen@2.0.0-alpha.12
[2.0.0-alpha.12]
Bug Fixes
a5479712(#8168) Fixed an issue that caused the resource compiler to not run on Windows whenpackage.versionwas not set intauri.conf.jsonpreventing the app from starting.
Dependencies
- Upgraded to
tauri-utils@2.0.0-alpha.11 - Upgraded to
tauri-codegen@2.0.0-alpha.11
[2.0.0-alpha.11]
Enhancements
c6c59cf2Pull changes from Tauri 1.5 release.
Dependencies
- Upgraded to
tauri-codegen@2.0.0-alpha.10 - Upgraded to
tauri-utils@2.0.0-alpha.10
[2.0.0-alpha.10]
New Features
Dependencies
- Upgraded to
tauri-utils@2.0.0-alpha.9 - Upgraded to
tauri-codegen@2.0.0-alpha.9
Breaking Changes
ebcc21e4(#8057) Renamed the beforeDevCommand, beforeBuildCommand and beforeBundleCommand hooks environment variables fromTAURI_PLATFORM, TAURI_ARCH, TAURI_FAMILY, TAURI_PLATFORM_VERSION, TAURI_PLATFORM_TYPE and TAURI_DEBUGtoTAURI_ENV_PLATFORM, TAURI_ENV_ARCH, TAURI_ENV_FAMILY, TAURI_ENV_PLATFORM_VERSION, TAURI_ENV_PLATFORM_TYPE and TAURI_ENV_DEBUGto differentiate the prefix with other CLI environment variables.
[2.0.0-alpha.9]
Dependencies
- Upgraded to
tauri-codegen@2.0.0-alpha.8 - Upgraded to
tauri-utils@2.0.0-alpha.8
[2.0.0-alpha.8]
Bug Fixes
[2.0.0-alpha.7]
New Features
522de0e7(#7447) Added theconfig::plugin_configfunction to read the plugin configuration set from the CLI.1e1d839e(#7450) Added themobile::update_android_manifestfunction.aba04fa8(#7448) Added themobile::update_entitlementsfunction for iOS.
Dependencies
- Upgraded to
tauri-utils@2.0.0-alpha.7 - Upgraded to
tauri-codegen@2.0.0-alpha.7
[2.0.0-alpha.6]
Bug Fixes
[2.0.0-alpha.5]
3188f376(#6883) Bump the MSRV to 1.65.2969d1cb(#6773) Use absolute path to each Android plugin project instead of copying the files to enhance developer experience.cdad6e08(#6774) Changed how thetauri-androiddependency is injected. This requires thegen/androidproject to be recreated.5a768d5c(#6886) RemoveWindowsAttributes::sdk_dir.
[2.0.0-alpha.4]
- Added
androidconfiguration object undertauri > bundle.
[2.0.0-alpha.3]
- Read the
IPHONEOS_DEPLOYMENT_TARGETenvironment variable to set the Swift iOS target version, defaults to 13.
[2.0.0-alpha.2]
- Add
mobile::PluginBuilderfor running build tasks related to Tauri plugins.
[2.0.0-alpha.1]
- Refactor mobile environment variables.
- Bump the MSRV to 1.64.
- Removed mobile logging initialization, which will be handled by
tauri-plugin-log.
[2.0.0-alpha.0]
- Set environment variables used by
tauri::mobile_entry_point. - First mobile alpha release!
[1.5.1]
Dependencies
- Upgraded to
tauri-utils@1.5.2 - Upgraded to
tauri-codegen@1.4.2
[1.5.0]
What's Changed
[1.4.1]
Bug Fixes
5ecb46b3(#7773) Automatically set rpath on macOS if frameworks are bundled and copy frameworks tosrc-tauri/target/Frameworksfor usage in development.290e366a(#7419) Correctly copy the WebView2 runtime in development whenwebviewInstallModeis used instead ofwebviewFixedRuntimePath.
Dependencies
- Upgraded to
tauri-utils@1.5.0 - Upgraded to
tauri-codegen@1.4.1
[1.4.0]
Enhancements
52474e47(#7141) Enhance Cargo features check.af937290(#6676) On Windows, setLegalCopyrightandFileDescriptionfile properties on the executable fromtauri.bundle.copyrightandtauri.bundle.shortDescription,d2710e9d(#6944) Unpintime,ignore, andwinnowcrate versions. Developers now have to pin crates if needed themselves. A list of crates that need pinning to adhere to Tauri's MSRV will be visible in Tauri's GitHub workflow: https://github.com/tauri-apps/tauri/blob/dev/.github/workflows/test-core.yml#L85.
[1.3.0]
- Bump minimum supported Rust version to 1.60.
- Add initial support for building
nsisbundles on non-Windows platforms. - Add
WindowsAttributes::app_manifestto specify the application manifest on Windows. - Added support for Cargo's workspace inheritance for package information. The cli now also detects inherited
tauriandtauri-builddependencies and disables manifest rewrites accordingly. - Pin
winnowcrate to 0.4.1 to keep the 1.60 MSRV.
[1.2.1]
- Fix
allowlist > app > show/hidealways disabled whenallowlist > app > all: false.
[1.2.0]
[1.1.1]
- Add missing allowlist config for
set_cursor_grab,set_cursor_visible,set_cursor_iconandset_cursor_positionAPIs.
[1.1.0]
- Rerun codegen if assets or icons change.
- Create the
desktopandmobilecfg aliases. - Added support to configuration files in TOML format (Tauri.toml file).
- Enhance the dialog style on Windows via the manifest dependency
Microsoft.Windows.Common-Controls v6.0.0.0. - Fix root of codegen output when using the
CodegenContextAPI. - Return an error if a sidecar is configured with the same file name as the application.
- Only rewrite temporary icon files when the content change, avoid needless rebuilds.
[1.0.4]
- Reduce the amount of allocations when converting cases.
[1.0.3]
- Improve configuration deserialization error messages.
- The
TAURI_CONFIGenvironment variable now represents the configuration to be merged instead of the entire JSON.
[1.0.2]
- Expose
platform::windows_versionfunction.
[1.0.1]
- Changed the
BundleConfig::targetsto aBundleTargetenum to enhance generated documentation. - Added
platform::is_windows_7. - Suppress unused variable warning in release builds.
- Added webview install mode options.
[1.0.0]
[1.0.0-rc.15]
- Read the tray icon path relatively to the config directory.
- Bumped due to a bump in tauri-codegen.
- 562e8ca2 fix(codegen): tray icon path is relative to the config directory on 2022-06-15
[1.0.0-rc.14]
- Do not copy the tray icon to the output directory on Linux since it is embedded in the binary.
[1.0.0-rc.13]
- Copy
tauri.conf.json > tauri.bundle.windows.webview_fixed_runtime_pathas a resource to the target directory to fix development usage of a fixed Webview2 runtime path. - Improve usage of the GNU toolchain on Windows by copying the Webview2Loader.dll file to the target directory.
- Only statically link the VC runtime when the
STATIC_VCRUNTIMEenvironment variable is set totrue(automatically done by the Tauri CLI).
[1.0.0-rc.12]
- Statically link the Visual C++ runtime instead of using a merge module on the installer.
[1.0.0-rc.11]
[1.0.0-rc.10]
- Delete existing sidecar before copying new one.
[1.0.0-rc.9]
- Search
tauri.conf.json > tauri > bundle > iconsfor a.icofile for the window icon instead of simple defaulticons/icon.icowhenWindowsAttributes::window_icon_pathis not set.
[1.0.0-rc.8]
- Properly set file version information for the Windows executable.
[1.0.0-rc.7]
- Rerun build script if
TAURI_CONFIGenvironment variable change.- 7ae9e252 fix(tauri-build): rerun if
TAURI_CONFIGenv var changes on 2022-04-26
- 7ae9e252 fix(tauri-build): rerun if
[1.0.0-rc.6]
- Copy system tray icon resource to the target directory on Linux.
[1.0.0-rc.5]
- Print error context on the
buildpanic.
[1.0.0-rc.4]
- Parse window icons at compile time.
[1.0.0-rc.3]
- Automatically emit
cargo:rustc-env=MACOSX_DEPLOYMENT_TARGETwith the value set ontauri.conf.json > tauri > bundle > macos > minimumSystemVersion.
[1.0.0-rc.2]
- Rerun if sidecar or resource change.
[1.0.0-rc.1]
- Remove
cargo:rerun-if-changedcheck for non-existent file that caused projects to always rebuild.
[1.0.0-rc.0]
- Allow user to specify windows sdk path in build.rs.
- Adds support for using JSON5 format for the
tauri.conf.jsonfile, along with also supporting the.json5extension.
Here is the logic flow that determines if JSON or JSON5 will be used to parse the config:
- Check if
tauri.conf.jsonexists a. Parse it withserde_jsonb. Parse it withjson5ifserde_jsonfails c. Return originalserde_jsonerror if all above steps failed - Check if
tauri.conf.json5exists a. Parse it withjson5b. 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
- Move the copying of resources and sidecars from
cli.rstotauri-buildso using the Cargo CLI directly processes the files for the application execution in development. - The minimum Rust version is now
1.56. - Validate
tauridependencyfeaturesunderCargo.tomlmatchingtauri.conf.json'sallowlist.- 4de285c3 feat(core): validate Cargo features matching allowlist [TRI-023] on 2022-01-09
[1.0.0-beta.4]
- Implement
Debugon public API structs and enums.
[1.0.0-beta.3]
- Improve ESM detection with regexes.
- Inject invoke key on
scripttags withtype="module".
[1.0.0-beta.2]
- Detect ESM scripts and inject the invoke key directly instead of using an IIFE.
- Improve invoke key code injection performance time rewriting code at compile time.
[1.0.0-beta.1]
- Pull Windows resource information (
FileVersion,ProductVersion,ProductNameandFileDescription) fromtauri.conf.json > packageconfiguration.
[1.0.0-beta.0]
- The
try_buildmethod now has aAttributesargument to allow specifying the window icon path used on Windows.
[1.0.0-beta-rc.1]
- The package info APIs now checks the
packageobject ontauri.conf.json.