Compare commits

..

7 Commits

Author SHA1 Message Date
Lucas Nogueira
83a9e6c572 Merge remote-tracking branch 'origin/dev' into feat/command-tests 2023-01-04 19:00:48 -03:00
Lucas Nogueira
f7e86798c2 lint 2023-01-04 18:19:15 -03:00
Lucas Nogueira
936d46a41a struct arg test 2023-01-02 15:43:37 -03:00
Lucas Nogueira
a115f91c52 add future test 2023-01-02 15:21:49 -03:00
Lucas Nogueira
2624af9c24 add rename_all test 2022-12-09 09:02:06 -03:00
Lucas Nogueira
b0485d0187 add async command tests, command with arg 2022-12-08 17:02:58 -03:00
Lucas Nogueira
a2724b3e1c basic setup for command tests 2022-12-08 14:15:20 -03:00
1026 changed files with 39678 additions and 33469 deletions

View File

@@ -1,6 +0,0 @@
---
"tauri-cli": 'patch:feat'
"@tauri-apps/cli": 'patch:feat'
---
Added `tauri plugin add` command to add a plugin to the Tauri project.

View File

@@ -0,0 +1,5 @@
---
"tauri-bundler": patch
---
Add dylib support to `tauri.bundle.macOS.frameworks`.

View File

@@ -1,6 +0,0 @@
---
"tauri-cli": 'minor:feat'
"@tauri-apps/cli": 'minor:feat'
---
Added `plugin android add` and `plugin ios add` commands to add mobile plugin functionality to existing projects.

View File

@@ -1,5 +0,0 @@
---
'tauri': 'minor:feat'
---
Added `tauri::VERSION` const to get Tauri's version from Rust.

View File

@@ -1,5 +0,0 @@
---
'tauri': 'minor:feat'
---
Added `tauri::webview_version` , to get webview version.

View File

@@ -0,0 +1,5 @@
---
"api": minor
---
Added the `additionalBrowserArgs` option when creating a window.

View File

@@ -0,0 +1,5 @@
---
"tauri-utils": minor
---
Added the `additional_browser_args` option to the window configuration.

View File

@@ -0,0 +1,7 @@
---
"tauri": minor
"tauri-runtime-wry": minor
"tauri-runtime": minor
---
Added the `additional_browser_args` option when creating a window.

View File

@@ -1,6 +0,0 @@
---
"tauri-runtime": 'minor:feat'
"tauri-runtime-wry": 'minor:feat'
---
Add `find_class`, `run_on_android_context` on `RuntimeHandle`.

View File

@@ -1,6 +0,0 @@
---
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
---
Do not gitignore the Android project's `buildSrc` folder by default since we removed absolute paths from it.

View File

@@ -1,5 +0,0 @@
---
"tauri": 'patch:enhance'
---
Enhance parsing of annotated Android plugin methods to support private functions.

View File

@@ -1,5 +0,0 @@
---
"tauri": 'patch:enhance'
---
Added static function `loadConfig` on the Android `PluginManager` class.

View File

@@ -1,5 +0,0 @@
---
"tauri": 'patch:enhance'
---
Adjust Android plugin exception error.

View File

@@ -1,5 +0,0 @@
---
'@tauri-apps/api': 'patch:enhance'
---
Add `locale` function in the `os` module to get the system locale.

View File

@@ -1,5 +0,0 @@
---
"tauri": "patch:enhance"
---
Add `tauri::api::os::locale` function to get the system locale.

View File

@@ -1,6 +0,0 @@
---
'tauri-bundler': 'patch:bug'
---
- Updated the AppImage bundler to follow symlinks for `/usr/lib*`.
- Fixes AppImage bundling for Void Linux, which was failing to bundle webkit2gtk because the `/usr/lib64` is a symlink to `/usr/lib`.

View File

@@ -1,5 +0,0 @@
---
"tauri-build": 'patch:enhance'
---
Set environment variables used by `tauri::mobile_entry_point`.

View File

@@ -1,10 +0,0 @@
---
"tauri-bundler": 'patch:enhance'
"tauri-codegen": 'patch:enhance'
"tauri-macros": 'patch:enhance'
"tauri-utils": 'patch:enhance'
"tauri-runtime": 'patch:enhance'
"tauri-runtime-wry": 'patch:enhance'
---
Pull changes from Tauri 1.3 release.

View File

@@ -1,5 +0,0 @@
---
"tauri-bundler": 'patch:enhance'
---
Removed the `UpdaterSettings::dialog` field.

View File

@@ -1,6 +0,0 @@
---
"api": 'patch:enhance'
"tauri": 'patch:enhance'
---
Add channel API for sending data across the IPC.

View File

@@ -1,6 +0,0 @@
---
"tauri-cli": 'minor:feat'
"@tauri-apps/cli": 'minor:feat'
---
Added `android build` command.

View File

@@ -1,6 +0,0 @@
---
'tauri-cli': 'patch:enhance'
'@tauri-apps/cli': 'patch:enhance'
---
Add `--release` flag for `tauri android dev` however you will need to sign your Android app, see https://next--tauri.netlify.app/next/guides/distribution/sign-android

View File

@@ -1,6 +0,0 @@
---
'tauri-cli': 'patch:enhance'
'@tauri-apps/cli': 'patch:enhance'
---
Build only specified rust targets for `tauri android build` instead of all.

View File

@@ -1,5 +0,0 @@
---
'tauri-cli': 'patch:bug'
---
Fix `--split-per-abi` not building any targets unless specified by `--target` flag.

View File

@@ -1,6 +0,0 @@
---
'tauri-cli': 'patch:bug'
'@tauri-apps/cli': 'patch:bug'
---
Fix built-in devserver adding hot-reload code to non-html files.

View File

@@ -1,6 +0,0 @@
---
'tauri-cli': 'patch:enhance'
'@tauri-apps/cli': 'patch:enhance'
---
Use local ip address for built-in dev server on mobile.

6
.changes/cli-info.md Normal file
View File

@@ -0,0 +1,6 @@
---
"cli.rs": "patch"
---
Fix `tauri info` panicking when parsing crates version on a newly created project without a `Cargo.lock` file.

View File

@@ -1,6 +0,0 @@
---
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
---
Added `ios build` command.

View File

@@ -1,6 +0,0 @@
---
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
---
Add `key.properties` file to android's `.gitignore`.

View File

@@ -1,6 +0,0 @@
---
'tauri-cli': 'patch:enhance'
'@tauri-apps/cli': 'patch:enhance'
---
On mobile, fix regression introduced in `tauri-cli` version `2.0.0-alpha.3` where library not found error was thrown.

View File

@@ -1,6 +0,0 @@
---
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
---
Don't build library files when building desktop targets.

View File

@@ -1,5 +0,0 @@
---
'tauri-cli': 'patch:enhance'
---
Auto select an external IP for mobile development and fallback to prompting the user. Use `--force-ip-prompt` to force prompting.

View File

@@ -1,6 +0,0 @@
---
'tauri-cli': 'patch:bug'
'@tauri-apps/cli': 'patch:bug'
---
Set current directory to tauri directory before reading config file.

View File

@@ -1,6 +0,0 @@
---
"tauri-cli": 'minor:feat'
"@tauri-apps/cli": 'minor:feat'
---
Added `android dev` and `ios dev` commands.

View File

@@ -1,6 +0,0 @@
---
"tauri-cli": 'minor:feat'
"@tauri-apps/cli": 'minor:feat'
---
Add commands to add native Android and iOS functionality to plugins.

View File

@@ -1,5 +0,0 @@
---
'tauri-cli': 'patch:enhance'
---
In mobile commands, correctly detect when nodejs binary has the version in its name, for example `node-18`

View File

@@ -1,6 +0,0 @@
---
'tauri-cli': 'patch:enhance'
'@tauri-apps/cli': 'patch:enhance'
---
Fix android project build crashing when using `pnpm` caused by extra `--`.

View File

@@ -1,5 +0,0 @@
---
'tauri-cli': 'patch:bug'
---
Fix building with a custom cargo profile

View File

@@ -1,6 +0,0 @@
---
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
---
Use temp file instead of environment variable to pass CLI IPC websocket address to the IDE.

View File

@@ -1,6 +0,0 @@
---
'tauri-cli': 'patch:enhance'
'@tauri-apps/cli': 'patch:enhance'
---
Skip Rust target installation if they are already installed.

View File

@@ -1,6 +0,0 @@
---
'tauri-cli': 'minor:feat'
'@tauri-apps/cli': 'minor:feat'
---
Provide prebuilt CLIs for Windows ARM64 targets.

View File

@@ -1,6 +0,0 @@
---
'tauri-cli': 'patch:enhance'
'@tauri-apps/cli': 'patch:enhance'
---
Update mobile template to `wry@0.28`

View File

@@ -1,5 +0,0 @@
---
'@tauri-apps/cli': 'patch:bug'
---
Fix nodejs binary regex when `0` is in the version name, for example `node-20`

View File

@@ -1,5 +0,0 @@
---
"tauri-codegen": 'patch:enhance'
---
Change `devPath` URL to use the local IP address on iOS and Android.

View File

@@ -1,5 +0,0 @@
---
'tauri': 'patch:feat'
---
Add `incognito` option to the window configuration object.

View File

@@ -1,5 +0,0 @@
---
'tauri-utils': 'minor:feat'
---
Add option to configure `require_literal_leading_dot` on `fs` and `asset` protcol scopes.

View File

@@ -1,5 +0,0 @@
---
'tauri': 'patch:bug'
---
Fix parsing `allowlist > http > scope` urls that added a trailing slash which broke matching the incoming requests url.

View File

@@ -1,22 +1,14 @@
{
"gitSiteUrl": "https://www.github.com/tauri-apps/tauri/",
"timeout": 3600000,
"changeTags": {
"feat": "New Features",
"enhance": "Enhancements",
"bug": "Bug Fixes",
"pref": "Performance Improvements",
"changes": "What's Changed",
"deps": "Dependencies"
},
"defaultChangeTag": "changes",
"pkgManagers": {
"rust": {
"errorOnVersionRange": "^2.0.0-0",
"version": true,
"getPublishedVersion": "node ../../.scripts/covector/package-latest-version.js cargo ${ pkgFile.pkg.package.name } ${ pkgFile.pkg.package.version }",
"prepublish": [
"sudo apt-get update",
"sudo apt-get install -y webkit2gtk-4.1 libayatana-appindicator3-dev",
"sudo apt-get install -y webkit2gtk-4.0 libayatana-appindicator3-dev",
"cargo install cargo-audit --features=fix",
{
"command": "cargo generate-lockfile",
@@ -76,6 +68,7 @@
]
},
"javascript": {
"errorOnVersionRange": "^2.0.0-0",
"version": true,
"getPublishedVersion": "node ../../.scripts/covector/package-latest-version.js npm ${ pkgFile.pkg.name } ${ pkgFile.pkg.version }",
"prepublish": [
@@ -112,7 +105,7 @@
"pipe": true
},
{
"command": "yarn publish --access public --loglevel silly --tag next",
"command": "yarn publish --access public --loglevel silly",
"dryRunCommand": "npm publish --dry-run --access public",
"pipe": true
},
@@ -130,13 +123,13 @@
}
},
"packages": {
"@tauri-apps/api": {
"api": {
"path": "./tooling/api",
"manager": "javascript",
"assets": [
{
"path": "./tooling/api/dist/tauri-apps-api-${ pkgFile.version }.tgz",
"name": "tauri-apps-api-${ pkgFile.version }.tgz"
"name": "api-${ pkgFile.version }.tgz"
}
],
"prepublish": [
@@ -218,7 +211,7 @@
"dependencies": ["tauri-codegen", "tauri-utils"],
"postversion": [
"node ../../.scripts/covector/sync-cli-metadata.js ${ pkg.pkg } ${ release.type }",
"cargo build --manifest-path ../tauri-config-schema/Cargo.toml"
"cargo build --manifest-path ../config-schema/Cargo.toml"
],
"assets": [
{
@@ -234,31 +227,30 @@
"tauri-macros",
"tauri-utils",
"tauri-runtime",
"tauri-runtime-wry",
"tauri-build"
"tauri-runtime-wry"
],
"postversion": "node ../../.scripts/covector/sync-cli-metadata.js ${ pkg.pkg } ${ release.type }"
},
"@tauri-apps/cli": {
"cli.js": {
"path": "./tooling/cli/node",
"manager": "javascript",
"getPublishedVersion": "node ../../../.scripts/covector/package-latest-version.js npm ${ pkgFile.pkg.name } ${ pkgFile.pkg.version }",
"dependencies": ["tauri-cli"],
"dependencies": ["cli.rs"],
"postversion": [
"node ../../../.scripts/covector/sync-cli-metadata.js ${ pkg.pkg } ${ release.type }",
"cargo build --manifest-path ../../../core/tauri-config-schema/Cargo.toml"
"cargo build --manifest-path ../../../core/config-schema/Cargo.toml"
],
"prepublish": [],
"publish": [],
"postpublish": []
},
"tauri-cli": {
"cli.rs": {
"path": "./tooling/cli",
"manager": "rust",
"dependencies": ["tauri-bundler", "tauri-utils"],
"postversion": [
"cargo check",
"cargo build --manifest-path ../../core/tauri-config-schema/Cargo.toml"
"cargo build --manifest-path ../../core/config-schema/Cargo.toml"
],
"assets": [
{

View File

@@ -0,0 +1,5 @@
---
"api": "minor"
---
Added the `WindowOptions::contentProtected` option and `WebviewWindow#setContentProtected` to change it at runtime.

View File

@@ -0,0 +1,5 @@
---
"tauri-utils": "patch"
---
Added the `content_protected` option to the window configuration.

View File

@@ -0,0 +1,7 @@
---
"tauri": "minor"
"tauri-runtime": "minor"
"tauri-runtime-wry": "minor"
---
Added the `content_protected` option when creating a window and `Window::set_content_protected` to change it at runtime.

View File

@@ -1,5 +0,0 @@
---
'tauri': 'patch:enhance'
---
Use correct HTTP method when making requests to the proxied server on mobile.

View File

@@ -1,5 +0,0 @@
---
'tauri': 'patch:enhance'
---
Enhance the `asset` protocol to support streaming of large files.

View File

@@ -1,5 +0,0 @@
---
'tauri': 'patch:enhance'
---
Implement `Clone` for `Channel`

View File

@@ -1,5 +0,0 @@
---
'tauri': 'patch:feat'
---
Add `WindowBuilder::incognito`

View File

@@ -1,5 +0,0 @@
---
'tauri': 'patch:bug'
---
Fix IPC failing after a failed navigation to an external URL.

View File

@@ -1,5 +1,5 @@
---
'tauri': 'patch:bug'
"tauri": minor
---
Fix `WindowBuilder::on_navigation` handler not registered properly.
Added `Window::on_navigation`.

View File

@@ -0,0 +1,5 @@
---
"tauri": "patch"
---
Sync `__TAURI_METADATA__.__windows` across all windows.

View File

@@ -1,5 +0,0 @@
---
'tauri': 'patch:bug'
---
Emit `UPTODATE` update status to javascript when the updater server returns status code `204`

View File

@@ -1,5 +0,0 @@
---
'tauri': 'patch:enhance'
---
Fix some configurations not applied when creating the window through Javascript.

View File

@@ -1,5 +0,0 @@
---
"tauri": "patch:enhance"
---
Play a sound when showing a notification on Windows.

View File

@@ -1,5 +0,0 @@
---
'tauri': 'patch:enhance'
---
On Android, update proguard rules.

View File

@@ -0,0 +1,5 @@
---
"api": minor
---
Allow setting the text of the dialog buttons.

View File

@@ -0,0 +1,5 @@
---
"tauri": minor
---
Added `OkWithLabel` and `OkCancelWithLabels` variants to the `api::dialog::MessageDialogButtons` enum to set the text of the dialog buttons.

6
.changes/custom-icon.md Normal file
View File

@@ -0,0 +1,6 @@
---
"cli.rs": minor
"cli.js": minor
---
Add `--png` option for the `icon` command to generate custom icon sizes.

View File

@@ -1,7 +0,0 @@
---
"tauri-utils": 'patch:enhance'
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
---
Added the `desktop_template` option on `tauri.conf.json > tauri > bundle > deb`.

View File

@@ -1,5 +0,0 @@
---
"tauri-bundler": "minor:feat"
---
Added `desktop_template` option on `DebianSettings`.

View File

@@ -1,5 +0,0 @@
---
"tauri": major:feat
---
Added the `default-tls` and `reqwest-default-tls` Cargo features for enabling TLS suppport to connect over HTTPS.

View File

@@ -1,5 +0,0 @@
---
"tauri": 'patch:enhance'
---
Add `default_window_icon` getter on `App` and `AppHandle`.

View File

@@ -1,5 +0,0 @@
---
"tauri": 'patch:enhance'
---
Implement response cache on the dev server proxy, used when the server responds with status 304.

View File

@@ -1,5 +0,0 @@
---
"tauri": major:feat
---
**Breaking change:** Use the custom protocol as a proxy to the development server on all platforms except Linux.

View File

@@ -1,5 +0,0 @@
---
'@tauri-apps/api': 'minor:feat'
---
Added the `maximizable`, `minimizable` and `closable` fields on `WindowOptions`.

View File

@@ -1,5 +0,0 @@
---
'@tauri-apps/api': 'minor:feat'
---
Added the `setMaximizable`, `setMinimizable`, `setClosable`, `isMaximizable`, `isMinimizable` and `isClosable` methods.

View File

@@ -1,5 +0,0 @@
---
'tauri-utils': 'minor:feat'
---
Added the `maximizable`, `minimizable` and `closable` options to the window configuration.

View File

@@ -1,6 +0,0 @@
---
'tauri-runtime-wry': 'minor:feat'
'tauri-runtime': 'minor:feat'
---
Added the `maximizable`, `minimizable` and `closable` methods to `WindowBuilder`.

View File

@@ -1,6 +0,0 @@
---
'tauri-runtime-wry': 'minor:feat'
'tauri-runtime': 'minor:feat'
---
Added `set_maximizable`, `set_minimizable`, `set_closable`, `is_maximizable`, `is_minimizable` and `is_closable` methods to the `Dispatch` trait.

View File

@@ -1,5 +0,0 @@
---
'tauri': 'minor:feat'
---
Added the `maximizable`, `minimizable` and `closable` options to the window builder.

View File

@@ -1,5 +0,0 @@
---
'tauri': 'minor:feat'
---
Added the `set_maximizable`, `set_minimizable`, `set_closable`, `is_maximizable`, `is_minimizable` and `is_closable` methods on `Window`.

View File

@@ -1,6 +0,0 @@
---
"tauri-cli": 'patch:enhance'
"tauri": 'patch:enhance'
---
Change minimum Android SDK version to 21 for the plugin library.

View File

@@ -1,6 +0,0 @@
---
"tauri-runtime-wry": 'patch:enhance'
"tauri": 'patch:enhance'
---
Allow a wry plugin to be registered at runtime.

View File

@@ -1,5 +0,0 @@
---
"tauri-codegen": 'patch:enhance'
---
Early panic if the PNG icon is not RGBA.

View File

@@ -1,6 +0,0 @@
---
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
---
Change the Android template to enable minification on release and pull ProGuard rules from proguard-tauri.pro.

View File

@@ -1,5 +0,0 @@
---
"tauri": 'patch:enhance'
---
Fixes path commands not being added.

View File

@@ -1,5 +0,0 @@
---
"tauri": 'patch:enhance'
---
Enhance Android's `JSObject` return types.

View File

@@ -1,6 +0,0 @@
---
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
---
Print an error if the Android project was generated with an older bundle identifier or package name.

View File

@@ -1,5 +0,0 @@
---
"@tauri-apps/api": 'patch:enhance'
---
Expose the window target option on event APIs.

View File

@@ -0,0 +1,7 @@
---
"tauri-runtime-wry": minor
"tauri-runtime": minor
"tauri": minor
---
Added `Builder::device_event_filter` and `App::set_device_event_filter` methods.

View File

@@ -1,6 +0,0 @@
---
'tauri-cli': 'minor:feat'
'@tauri-apps/cli': 'minor:feat'
---
Added `tauri completions` to generate shell completions scripts.

5
.changes/fix-2549.md Normal file
View File

@@ -0,0 +1,5 @@
---
"tauri": "patch"
---
Fix resize glitch when double clicking a custom titlebar in the top resize area.

View File

@@ -1,6 +0,0 @@
---
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
---
Fixes the generated mobile build script when using an NPM runner.

View File

@@ -1,5 +0,0 @@
---
'tauri-runtime': 'patch:bug'
---
Fixes typo in `CursorIcon` deserialization of the `ZoomIn` variant.

View File

@@ -1,5 +0,0 @@
---
"tauri": 'patch:enhance'
---
Properly proxy dev server requests with query strings and fragments.

View File

@@ -1,7 +0,0 @@
---
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
"tauri-macros": 'patch:enhance'
---
Resolve Android package name from single word bundle identifiers.

View File

@@ -1,6 +0,0 @@
---
'tauri-cli': 'patch:bug'
'@tauri-apps/cli': 'patch:bug'
---
Fixes Cargo.toml feature rewriting.

View File

@@ -1,5 +0,0 @@
---
"tauri": 'patch:enhance'
---
Use actual iOS plugin instance to run command with `throws`.

View File

@@ -1,6 +0,0 @@
---
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
---
Fixes running on device using Xcode 14.

View File

@@ -1,6 +0,0 @@
---
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
---
Fixes the iOS project script to build the Rust library.

View File

@@ -1,6 +0,0 @@
---
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
---
Fixes `TAURI_*` environment variables for hook scripts on mobile commands.

View File

@@ -1,5 +0,0 @@
---
"@tauri-apps/cli": 'patch:enhance'
---
Update tauri-mobile to fix running ADB scripts.

View File

@@ -1,6 +0,0 @@
---
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
---
Update Android project template with fix to crash on orientation change.

Some files were not shown because too many files have changed in this diff Show More