tauri/tooling/cli/CHANGELOG.md
github-actions[bot] 9f0395ae3c
Apply Version Updates From Current Changes (#3411)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2022-02-11 19:48:29 -03:00

35 KiB

Changelog

[1.0.0-rc.3]

  • Fixes Tauri path resolution on projects without Git or a .gitignore file.
    • d8acbe11 fix(cli.rs): app path resolution on projects without git, closes #3409 (#3410) on 2022-02-11

[1.0.0-rc.2]

  • Fix init command prompting for values even if the argument has been provided on the command line.
    • def76840 fix(cli.rs): do not prompt for init values if arg set (#3400) on 2022-02-11
    • 41052dee fix(covector): add cli.js to change files on 2022-02-11
  • Fixes CLI freezing when running light.exe on Windows without the --verbose flag.
  • Respect .gitignore configuration when looking for the folder with the tauri.conf.json file.
    • 9c6c5a8c perf(cli.rs): improve performance of tauri dir lookup reading .gitignore (#3405) on 2022-02-11
    • 41052dee fix(covector): add cli.js to change files on 2022-02-11

[1.0.0-rc.1]

  • Include vswhere.exe on the published package.
    • 3227502e fix(cli.rs): package vswhere.exe on 2022-02-10

[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 a tauri.conf.json file.
    • a8cff6b3 feat(cli): do not enforce src-tauri folder structure, closes #2643 (#2654) on 2021-09-27
  • Define TAURI_PLATFORM, TAURI_ARCH, TAURI_FAMILY, TAURI_PLATFORM_TYPE, TAURI_PLATFORM_VERSION and TAURI_DEBUG environment variables for the beforeDevCommand and beforeBuildCommand scripts.
    • 8599313a feat(cli.rs): env vars for beforeDev/beforeBuild commands, closes #2610 (#2655) on 2021-09-26
    • b5ee03a1 feat(cli.rs): expose debug flag to beforeDev/beforeBuild commands (#2727) on 2021-10-08
    • 9bb68973 fix(cli.rs): prefix the "before script" env vars with TAURI_ (#3274) on 2022-01-24
  • Allow config arg to be a path to a JSON file on the dev and build commands.
    • 7b81e5b8 feat(cli.rs): allow config argument to be a path to a JSON file (#2938) on 2021-11-22
  • Add rustup version and active rust toolchain to the info command output.
    • 28aaec87 feat(cli.rs): add active toolchain and rustup to tauri info, closes #2730 (#2986) on 2021-12-09
  • Add Visual Studio Build Tools installed versions to the info command output.
  • The inferred development server port for Svelte is now 8080 (assumes latest Svelte with sirv-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.
    • 65ad5b5e feat(cli.rs/info): detect if tauri is used from git (#3309) on 2022-02-05
  • Drop the dialoguer soft fork and use the published version instead.
    • b1f5c6d7 refactor(cli.rs): drop dialoguer and console soft fork (#2790) on 2021-10-22
  • Fix build command when executed on a 32-bit Windows machine when pulling from the binary-releases repo.
  • The generate and sign commands are now available under a signer subcommand.
    • 1458ab3c refactor(cli.rs): signer and plugin subcommands, use new clap derive syntax (#2928) on 2021-12-09
  • Use tauri-utils to get the Config types.
    • 4de285c3 feat(core): validate Cargo features matching allowlist [TRI-023] on 2022-01-09
  • Print warning and exit if distDir contains node_modules, src-tauri or target folders.
  • Fix tauri build failing on Windows if tauri.conf.json > tauri > bundle > Windows > wix > license is used.
    • 17a1ad68 fix(cli.rs): ensure target/release/wix exists, closes #2927 (#2987) on 2021-12-07
  • Added dev_csp to the security configuration object.
    • cf54dcf9 feat: improve CSP security with nonces and hashes, add devCsp [TRI-004] (#8) on 2022-01-09
  • Kill process if beforeDevCommand exits with a non-zero status code.
    • a2d5929a feat(cli.rs): wait for dev URL to be reachable, exit if command fails (#3358) on 2022-02-08
  • 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.
    • 85df94f2 feat(core): config for fixed webview2 runtime version path (#27) on 2021-11-02
  • 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:

  1. Check if tauri.conf.json exists a. Parse it with serde_json b. Parse it with json5 if serde_json fails c. Return original serde_json error if all above steps failed
  2. Check if tauri.conf.json5 exists a. Parse it with json5 b. Return error if all above steps failed
  3. 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.
    • ac8e69a9 feat(cli.rs): add init plugin command, bootstraps a plugin project (#2669) on 2021-09-27
    • db275f0b refactor(cli.rs): rename init plugin subcommand to plugin init (#2885) on 2021-11-13
  • Add macos-private-api feature flag, enabled via tauri.conf.json > tauri > macOSPrivateApi.
    • 6ac21b3c feat: add private api feature flag (#7) on 2022-01-09
  • Move the copying of resources and sidecars from cli.rs to tauri-build so using the Cargo CLI directly processes the files for the application execution in development.
    • 5eb72c24 refactor: copy resources and sidecars on the Cargo build script (#3357) on 2022-02-08
  • The minimum Rust version is now 1.56.
    • a9dfc015 feat: update to edition 2021 and set minimum rust to 1.56 (#2789) on 2021-10-22
  • Automatically strip the built binary on Linux and macOS if --debug is not specified.
    • 2f3a582c feat(cli.rs): strip release binaries [TRI-031] (#22) on 2022-01-09
  • Fixes pnpm error when running pnpm tauri info.
    • 2026134f fix(cli.rs): pnpm tauri info exits with error (fix #2509) (#2510) on 2021-08-24
  • Add support to building Universal macOS Binaries through the virtual target universal-apple-darwin (run tauri build --target universal-apple-darwin).
    • 83f52fdb feat: Add universal-darwin-macos build target, closes #3317 (#3318) on 2022-02-04
  • Wait for devPath URL to be reachable before starting the application. Skipped if the TAURI_SKIP_DEVSERVER_CHECK environment variable is set to true.
    • a2d5929a feat(cli.rs): wait for dev URL to be reachable, exit if command fails (#3358) on 2022-02-08
  • On Windows, Fix beforeDevCommand and beforeBuildCommand not executing the expected command if it contains quotes. This is done by executing them with CMD /S /C {command} instead of CMD /C {command} on Windows.
    • 52e9a6d8 fix: Make CMD handle quotes " properly. (#3334) on 2022-02-06
  • Allow setting the localization file for WiX.

[1.0.0-beta.7]

  • Update cli.yml to pass clap ArgSettings::MultipleValues assertion.
    • 0391ac3d fix: Update cli.yml to pass clap ArgSettings::MultipleValues assertion. (#2506) (#2507) on 2021-08-22

[1.0.0-beta.6]

  • Added APPLE_SIGNING_IDENTITY as supported environment variable for the bundler.
    • 44f6ee4c chore(ci): add step to detect code signing (#2245) on 2021-08-08
  • Added configuration for the WiX banner icon under tauri.conf.json > tauri > bundle > windows > wix > bannerPath.
    • 13003ec7 feat(bundler): add config for WiX banner path, closes #2175 (#2448) on 2021-08-16
  • Added configuration for the WiX dialog background bitmap under tauri.conf.json > tauri > bundle > windows > wix > dialogImagePath.
    • 9bfdeb42 feat(bundler): add config for WiX dialog image path (#2449) on 2021-08-16
  • Only convert package name and binary name to kebab-case, keeping the .desktop Name field with the original configured value.
    • 3f039cb8 fix: keep original productName for .desktop Name field, closes #2295 (#2384) on 2021-08-10
  • Merge platform-specific tauri.linux.conf.json, tauri.windows.conf.json and tauri.macos.conf.json into the config JSON from tauri.conf.json.
    • 71d687b7 feat(cli.rs): platform-specific conf.json (#2309) on 2021-07-28
  • Update minimum Rust version to 1.54.0.

[1.0.0-beta.5]

  • Run powershell commands with -NoProfile flag
    • 3e6f3416 fix(cli.rs): run powershell kill command without profile (#2130) on 2021-06-30
  • Adds release argument to the dev command. Allowing to run the backend in release mode during development.
    • 7ee2dc8b feat(cli.rs): add release argument to the dev command (#2192) on 2021-07-12
  • Fixes center and focus not being allowed in tauri.conf.json > tauri > windows and ignored in WindowBuilderWrapper.
    • bc2c331d fix: center and focus not being allowed in config (#2199) on 2021-07-12

[1.0.0-beta.4]

  • Improve error message when the product name is invalid.
    • 1a41e9f0 feat(cli.rs): improve error message on app rename, closes #2101 (#2114) on 2021-06-28

[1.0.0-beta.3]

  • Properly detect target platform's architecture.
    • 628a53eb fix(cli): properly detect target architecture, closes #2040 (#2102) on 2021-06-28
  • Fixes build command when the target arg is set.
    • 8e238701 fix(cli.rs): fix out dir detection when target arg is set, closes #2040 (#2098) on 2021-06-27

[1.0.0-beta.2]

  • Support cargo tauri build on Apple M1 chip.
    • 3bf853d7 feat(cli.rs): support tauri build on M1 chip (#1915) on 2021-05-29
  • Infer app name and window title from package.json > productName or package.json > name. Infer distDir and devPath by reading the package.json and trying to determine the UI framework (Vue.js, Angular, React, Svelte and some UI frameworks).
    • 21a971c3 feat(cli.rs): infer devPath/distDir/appName from package.json (#1930) on 2021-05-31
  • Watch workspace crates on dev command.
    • 86a23ff3 added support for cargo workspaces for dev command (#1827) on 2021-05-13
  • Adds features argument to the dev and build commands.
    • 6ec8e84d feat(cli.rs): add features arg to dev/build (#1828) on 2021-05-13
  • Fixes the libwebkit2gtk package name.
  • Properly keep all tauri features that are not managed by the CLI.
    • 17c7c439 refactor(core): use attohttpc by default (#1861) on 2021-05-19
  • Copy resources and binaries to OUT_DIR on tauri dev command.
    • 8f29a260 fix(cli.rs): copy resources and binaries on dev, closes #1298 (#1946) on 2021-06-04
  • Read cargo features from tauri.conf.json > build > features and propagate them on dev and build.
    • 2b814e9c added cargo features to tauri config (#1824) on 2021-05-13
  • Fixes tauri.conf.json > tauri > bundle > targets not applying to the bundler.
    • 8be35ced fix(cli.rs): tauri.conf.json > tauri > bundle > targets being ignored (#1945) on 2021-06-04
  • Fixes info command not striping \r from child process version output.
    • 6a95d7ac fix(cli.rs): info version checks not striping \r on Windows (#1952) on 2021-06-05
  • 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 include wss: and tauri: to the default-src attribute.
    • 463fd00d fix(csp): add wss and tauri to conf template (#1974) on 2021-06-15
  • 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.
    • 71f6a5e fix(cli.rs/build): fix typo getting bundle arg (#1783) on 2021-05-12

[1.0.0-beta.0]

  • Fixes a cargo target/ cache issue.
    • 79feb6a fix(cli.rs): cargo build failed due to cache issue, closes #1543 (#1741) on 2021-05-07
  • Improve error logging.
    • 5cc4b11 feat(cli.rs): add context to errors (#1674) on 2021-05-01
  • Adds Webview2 version on info command.
    • 2b4e2b7 feat(cli.rs/info): get webview2 version on windows (#1669) on 2021-05-04
  • Adds --runner [PROGRAM] argument on the dev and build command, allowing using the specified program to run and build the application (example program: cross).
    • 5c1fe52 feat(cli.rs): allow using cross instead of cargo, add target triple arg (#1664) on 2021-04-30
  • Adds --target [TARGET_TRIPLE] option to the build command (example: --target arm-unknown-linux-gnueabihf).
    • 5c1fe52 feat(cli.rs): allow using cross instead of cargo, add target triple arg (#1664) on 2021-04-30
  • Rename --target option on the build command to --bundle.
    • 5c1fe52 feat(cli.rs): allow using cross instead of cargo, add target triple arg (#1664) on 2021-04-30
  • Automatically add Tauri dependencies to the debian package Depends section.
    • 72b8048 feat(cli.rs): fill debian depends with tauri dependencies (#1767) on 2021-05-10
  • Properly kill beforeDevCommand process.
  • Adds support to tauri dependency as string and table on Cargo.toml.
    • df8bdcf feat(cli.rs): add support to string and table dependency, closes #1653 (#1654) on 2021-04-29
  • Show framework and bundler on the info command by reading the package.json file and matching known dependencies.
    • 152c755 feat(cli.rs): framework and bundler on info cmd, closes #1681 (#1682) on 2021-05-02

[1.0.0-beta-rc.4]

  • Fixes the Message command name value on plugin invoke handler.
    • Bumped due to a bump in tauri.
    • 422dd5e fix(core): command name on plugin invoke handler (#1577) on 2021-04-21
    • f575aaa fix: change files not referencing core packages (#1619) on 2021-04-25
  • The package info APIs now checks the package object on tauri.conf.json.
    • Bumped due to a bump in tauri.
    • 8fd1baf fix(core): pull package info from tauri.conf.json if set (#1581) on 2021-04-22
    • f575aaa fix: change files not referencing core packages (#1619) on 2021-04-25

[1.0.0-beta-rc.3]

  • Check if distDir assets are built after running beforeDevCommand.
    • a670d3a fix(cli.rs): check if distDir exists after running beforeDevCommand (#1586) on 2021-04-22
  • Fixes tauri info display version for the @tauri-apps/api package.
    • 0012782 fix(cli.rs): info command npm_package_version parsing beta-rc (#1587) on 2021-04-22
  • Fixes crash on usage of modifier keys on Windows when running tauri init.
    • d623d95 fix(cli.rs): inliner dialoguer & console until they publish, fixes #1492 (#1610) on 2021-04-25
  • Enable tauri updater feature when tauri.conf.json > tauri > updater > active is set to true.
    • 9490b25 fix(cli.rs): enable the updater feature on cli (#1597) on 2021-04-23

[1.0.0-beta-rc.2]

  • Add missing camelcase rename for config
    • bdf7072 fix(cli.rs/info): add missing camelCase rename (#1505) on 2021-04-14
  • Fix tauri info
  • Properly detect yarn and npm versions on windows.
  • Fix a panic caused by a wrong field name in metadata.json
  • 71666e9 fix(cli.rs): fix panic & use cmd to run yarn&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.
    • 1f64927 chore: sync cli.rs metadata.json file versions (#1534) on 2021-04-19

[1.0.0-beta-rc.1]

  • Missing the files property in the package.json which mean that the dist directory was not published and used.
    • Bumped due to a bump in api.
    • b2569a7 fix(js-api): dist (#1498) on 2021-04-15

[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.
    • 4d507f9 feat(cli/core): add support for building without targets (#1203) on 2021-02-10
    • aea6145 refactor(repo): add /tooling folder (#1457) on 2021-04-12
  • The dev and build pipeline is now written in Rust.
    • 3e8abe3 feat(cli) rewrite the core CLI in Rust (#851) on 2021-01-30
    • aea6145 refactor(repo): add /tooling folder (#1457) on 2021-04-12
  • Run beforeDevCommand and beforeBuildCommand in a shell.
    • 32eb0d5 feat(cli): run beforeDev and beforeBuild in a shell, closes #1295 (#1399) on 2021-03-28
    • aea6145 refactor(repo): add /tooling folder (#1457) on 2021-04-12
  • Fixes <a target="_blank"> polyfill.
    • 4ee044a fix(cli): use correct arg in _blanks links polyfill (#1362) on 2021-03-17
    • aea6145 refactor(repo): add /tooling folder (#1457) on 2021-04-12
  • Update all code files to have our license header.
    • bf82136 feat(license): SPDX Headers (#1449) on 2021-04-11
    • a6def70 Refactor(tauri): move tauri-api and tauri-updater to tauri (#1455) on 2021-04-11
    • aea6145 refactor(repo): add /tooling folder (#1457) on 2021-04-12
  • Adds productName and version configs on tauri.conf.json > package.
    • 5b3d9b2 feat(config): allow setting product name and version on tauri.conf.json (#1358) on 2021-03-22
    • aea6145 refactor(repo): add /tooling folder (#1457) on 2021-04-12
  • The info command was rewritten in Rust.
    • c3e06ee refactor(cli): rewrite info in Rust (#1389) on 2021-03-25
    • aea6145 refactor(repo): add /tooling folder (#1457) on 2021-04-12
  • The init command was rewritten in Rust.
    • f72b93b refactor(cli): rewrite init command in Rust (#1382) on 2021-03-24
    • aea6145 refactor(repo): add /tooling folder (#1457) on 2021-04-12
  • All the arguments passed after tauri dev -- are now propagated to the binary.
    • 4e9d31c feat(cli): propagate args passed after dev --, closes #1406 (#1407) on 2021-03-30
    • aea6145 refactor(repo): add /tooling folder (#1457) on 2021-04-12
  • Alpha version of tauri-updater. Please refer to the README for more details.
    • 6d70c8e feat(updater): Alpha version (#643) on 2021-04-05
    • a6def70 Refactor(tauri): move tauri-api and tauri-updater to tauri (#1455) on 2021-04-11
    • aea6145 refactor(repo): add /tooling folder (#1457) on 2021-04-12