Commit Graph

5107 Commits

Author SHA1 Message Date
amrbashir ae024b8299
remove unneeded register_template_string 2024-10-28 15:00:40 +03:00
amrbashir 657ecc0564
feat(cli): process `bundle > windows > wix > fragmentPaths` with Handlebars
closes #11520
2024-10-28 14:58:00 +03:00
Lucas Fernandes Nogueira c43d5df158
feat(cli): associate newly created capability with the main window (#11512)
without this change the capability is not applied to any context and it might be hard for users to figure out why
2024-10-28 14:05:24 +03:00
Alex Adewole 1065f632f2
feat(cli): remove UNC path prefix in `TAURI_APP_PATH` and `TAURI_FRONTEND_PATH` (#11514) 2024-10-28 12:21:42 +03:00
Vincent Esche ac22950f39
fix(cli): Fix mixup of `TAURI_APP_PATH` and `TAURI_FRONTEND_PATH` (#11492)
* Fix mixup of `env_tauri_app_path()` and `env_tauri_frontend_path()` in tauri's path resolutions

* Rename functions in `app_paths` to match their corresponding, publicly exposed env var keys

* Rename `app_dir`/`app_path` variables that deal with the frontend app's directory to `frontend_dir

* Rename `APP_DIR` to `FRONTEND_DIR`

* Improve comment on meaning of tauri path env vars
2024-10-27 17:55:23 -03:00
阿良仔 a8105eccb2
docs: fix wrongly rendered links on `docs.rs` (#11483) 2024-10-24 16:02:49 +03:00
renovate[bot] 888277ec40
chore(deps) Update Rust crate syn to v2.0.85 (#11472)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-24 13:23:24 +08:00
renovate[bot] 0014f9ae69
chore(deps) Update dependency @types/node to v20.17.0 (#11470)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-24 13:15:04 +08:00
Amr Bashir 8036c78e08
feat(core/path): add `PathResolver::home_dir` on Android (#11455)
ref: https://github.com/tauri-apps/tauri/issues/10478#issuecomment-2383754176
2024-10-24 06:43:02 +03:00
renovate[bot] 516c7d9f63
chore(deps) Update Rust crate syn to v2.0.83 (#11473)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-24 10:39:59 +08:00
Amr Bashir 54cbf59b5a
fix(api/menu): fix submenus when created using an object in `items` field in the object passed to `Menu/Submenu.new` (#11441)
* fix(api/menu): fix submenus when created using an object in `items` field in the object passed to `Menu/Submenu.new`

closes #11435

also closes #11422 as I included the docs in this PR

* Update .changes/js-submenu-in-options.md

* Update packages/api/src/menu/base.ts

---------

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2024-10-23 10:47:32 -03:00
renovate[bot] ce864cebfd
chore(deps) Update Rust crate image to v0.25.4 (dev) (#11457)
* chore(deps) Update Rust crate image to v0.25.4

* Also bump json-patch and resvg

* Just json-patch for now

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tony <legendmastertony@gmail.com>
2024-10-23 17:46:59 +08:00
renovate[bot] ed78f52cd1
chore(deps) Update Rust crate json-patch to v3 (#11466)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-23 17:25:16 +08:00
renovate[bot] ccf20eb3ff
chore(deps) Update Rust crate json-patch to v3 (#11467)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-23 17:25:08 +08:00
renovate[bot] d0c1189b91
chore(deps) Update Tauri API Definitions (#11464)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-23 17:04:56 +08:00
renovate[bot] 0d31fe99c7
chore(deps) Update Rust crate thiserror to v1.0.65 (#11463)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-23 16:57:41 +08:00
renovate[bot] d4b3659523
chore(deps) Update Rust crate proc-macro2 to v1.0.89 (#11459)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-23 16:25:22 +08:00
renovate[bot] 8e083c99c8
chore(deps) Update Tauri Build to v1.0.91 (#11456)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-23 12:25:08 +08:00
Amr Bashir 8c6d1e8e6c
fix(runtime-wry): run `cursor_position` getter on main thread (#11401)
* fix(runtime-wry): run `cursor_position` getter on main thread

closes #10340

* clippy

* clippy

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-10-22 09:59:21 -03:00
Amr Bashir 6dea12a067
feat(bundler): add `recommends` for deb and rpm (#11402)
closes #10351
2024-10-21 15:38:14 -03:00
Amr Bashir 1f311832ab
enhance(cli): add context to public/secret key decoding errors (#11405)
* enhance(cli): add context to public/secret key decoding errors

closes #10488

* Update .changes/cli-updater-errorr.md

---------

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2024-10-21 15:37:28 -03:00
Czxck001 e0d1307d3f
feat(cli) Make `tauri migrate` update $schema in tauri.conf.json (#11414)
* Make `tauri migrate` update $schema in tauri.conf.json

* add change file

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-10-21 15:24:59 -03:00
Lucas Fernandes Nogueira f0da0bde87
feat(core): add WebviewWindow::resolve_command_scope (#11439)
* feat(core): add WebviewWindow::resolve_command_scope

This new functionality exposes the `CommandScope` resolution as a function (currently only commands can resolve them as a dependency injection via CommandItem)

This function is useful to validate the configuration at runtime (do some asserts at setup phase to ensure capabilities are properly configured) and to resolve scopes in a separate thread or context

* adjust return type
2024-10-21 15:16:08 -03:00
Lucas Nogueira a5bf48eab0
fix: CLI version on metadata file 2024-10-21 09:24:34 -03:00
Lucas Nogueira 7a1a3276c4
chore: bump tauri-utils dependency versions 2024-10-21 07:30:06 -03:00
Lucas Nogueira 8ca0e4dd2c
chore(ci): bump tauri-utils with WiX version change 2024-10-20 11:13:40 -03:00
github-actions[bot] 1367ff5ec6
apply version updates (#11373)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-10-20 10:29:13 -03:00
Lucas Fernandes Nogueira fbb45c674c
fix(api): broken `addPluginListener` implementation, closes #8068 (#11423) 2024-10-20 09:07:51 -03:00
Lucas Fernandes Nogueira eb61d44f9f
feat(core): fallback to Window and AppHandle resource table on close (#11398)
this changes the resource plugin close() API to fallback to the parent window and AppHandle resource tables, letting the JS to delete global resources.
The need for this was brought up on https://github.com/tauri-apps/plugins-workspace/pull/1860#issuecomment-2419175001
the store plugin stores the resources in the AppHandle, and we want the existing close() API to work on global resources otherwise every consumer needs their own resource close commands
2024-10-17 12:37:35 -03:00
Amr Bashir c8f55b615d
feat(bundler): add `wix > version` option (#11388)
* feat(bundler): add `wix > version` option

closes #11253

* Update crates/tauri-bundler/src/bundle/settings.rs

---------

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2024-10-17 12:37:15 -03:00
renovate[bot] bd1b2a1e85
chore(deps) Update Tauri API Definitions (#10807)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-17 11:04:06 -03:00
renovate[bot] 37557ffa35
chore(deps) Update Tauri CLI (dev) (#10808)
* chore(deps) Update Tauri CLI

* html5ever 0.26

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-10-17 11:03:46 -03:00
Amr Bashir 6cd917c227
feat(core): add methods for predefined items with specific text on `Menu/SubmenuBuilder` (#11390)
closes #11326
2024-10-17 11:03:20 -03:00
renovate[bot] 8278a36318
chore(deps) Update Rust crate uuid to v1.11.0 (#11049)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-10-17 10:24:00 -03:00
renovate[bot] f8b559dacd
chore(deps) Update Rust crate windows-registry to 0.3.0 (#11193)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-17 10:23:30 -03:00
renovate[bot] add09c8034
chore(deps) Update Rust crate brotli to v7 (#11195)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-17 10:21:30 -03:00
renovate[bot] ea50f65f89
chore(deps) Update Rust crate brotli to v7 (#11197)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-10-17 10:07:20 -03:00
Huang Xin e1bf6ef8cb
fix(core): expose `content-range` header in `asset` protocol (#11374) 2024-10-17 08:41:27 -03:00
renovate[bot] 20c142f749
chore(deps) Update Rust crate json-patch to v3 (#11377)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-17 08:38:19 -03:00
Vincent Esche e4c9268b19
feat(cli): make tauri/cli fully support projects with non-standard structure (#11258)
* feat(cli): add support for providing custom app/src paths to tauri's CLI via optional env vars

* fix tests

* rename env vars (app vs src is confusing)

* add change file

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-10-17 08:24:20 -03:00
Lucas Fernandes Nogueira 2e88633ba4
chore: remove references to unused __TAURI_INTERNALS__.metadata (#11369) 2024-10-15 13:26:43 -03:00
Lucas Nogueira 25cc5655c0
chore(ci): delete processed change file 2024-10-14 23:20:41 -03:00
github-actions[bot] df83e5c7fc
apply version updates (#11361)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-10-14 22:46:51 -03:00
Lucas Fernandes Nogueira 3cb73d08c6
fix(core): mark event commands as async (#11355)
* fix(core): mark event commands as async

this fixes a deadlock on certain situations

* add tag
2024-10-14 22:44:22 -03:00
Lucas Fernandes Nogueira ef2482ddec
fix(core): crash on macOS older than Sequoia (#11366)
ref https://github.com/tauri-apps/wry/pull/1389
2024-10-14 21:55:42 -03:00
Lucas Fernandes Nogueira e3b09be7f0
feat(core): add channel interceptor API (#11362) 2024-10-14 19:48:22 -03:00
Amr Bashir bcf279278d
feat(core): add `ContextMenu::hpopupmenu` on Windows (#11354)
* feat(core): add `ContextMenu::hpopupmenu` on Windows

closes #11339

* Update crates/tauri/src/menu/mod.rs

---------

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2024-10-14 13:46:21 -03:00
Kartonrad 68d4460361
docs(android): warn users that passing raw bytes over ipc is not possible on android (#11333)
* Warn that android is not supported

* Warn that Android is not supported.

* Update crates/tauri/src/ipc/mod.rs

---------

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2024-10-14 13:19:46 -03:00
Amr Bashir f3f521f038
fix(core): fallback to `WRY_ANDROID_PACKAGE` with backticks replaced (#11348)
ref: https://github.com/tauri-apps/tauri/issues/11332
2024-10-14 13:15:15 -03:00
renovate[bot] e75f0d27ef
chore(deps) Update Rust crate proc-macro2 to v1.0.87 (#11192)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-13 22:44:29 +08:00