Commit Graph

4474 Commits

Author SHA1 Message Date
github-actions[bot]
1a58cdf2ed Apply Version Updates From Current Changes (#9279)
* apply version updates

* fix bundler version

* fix bundler version

---------

Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
@tauri-apps/cli-v2.0.0-beta.12 tauri-macros-v2.0.0-beta.11 tauri-codegen-v2.0.0-beta.11 tauri-bundler-v2.0.1-beta.8 @tauri-apps/api-v2.0.0-beta.7 tauri-plugin-v2.0.0-beta.11 tauri-utils-v2.0.0-beta.11 tauri-cli-v2.0.0-beta.12 tauri-runtime-v2.0.0-beta.11 tauri-build-v2.0.0-beta.11 tauri-runtime-wry-v2.0.0-beta.11 tauri-v2.0.0-beta.14
2024-04-02 15:15:12 -03:00
Amr Bashir
284eca9ef2 refactor(core): scope JS resources to the webview (#9272)
* refactor(core): scope JS resources to the webview

* clippy

* change files

* swap args order

* more clippy

* just add them on each type

* clippy

* macro docs

* Update mod.rs

* use random rid

* revert resource table arg change

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-04-02 14:41:47 -03:00
Amr Bashir
8276ab767b chore(cli/plugin): update plugin template (#9346)
closes #9342
2024-04-02 13:59:26 -03:00
Amr Bashir
f8fde4f845 fix(cli): disable directory traversal in builtin dev server (#9344)
* fix(cli): disable directory traversal in builtin dev server

This PR also includes a cleanup refactor of the server

* Update builtin_dev_server.rs
2024-04-02 13:59:16 -03:00
Amr Bashir
dd07a36749 chore(cli/add): clippy, use char instead of str (#9333) 2024-04-01 14:22:30 -03:00
amrbashir
93e0e1392e feat(cli/add): support specifying version
closes #9325
2024-04-01 18:22:26 +02:00
Lucas Fernandes Nogueira
06833f4fa8 feat(ipc): enhance request URL checks, update wry, refactor file drop (#9100)
* feat(ipc): enhance request URL checks

* actually use req url

* fix windows, tests

* wry 0.38, file drop refactor

* wry 0.38.1

* adjust for windows [skip ci]

* wry 0.38.2 [skip ci]

* update to latest tao, wry, muda and tray-icon

* change tag

* serde

* use published crates

* downgrade cargo-platform to 0.1.7

---------

Co-authored-by: amrbashir <amr.bashir2015@gmail.com>
2024-04-01 13:03:39 -03:00
Amr Bashir
b78f90bc9c chore(cli): fix clippy errors (#9330) 2024-04-01 12:44:12 -03:00
Lucas Fernandes Nogueira
a804a70a7a feat(isolation): script now removes itself to hide key from DOM (#9328) 2024-04-01 12:43:29 -03:00
Lucas Fernandes Nogueira
7c334cb185 feat(isolation): make encrypt key unextractable (#9327) 2024-04-01 12:43:19 -03:00
scottpledger
6703b7cbca fix: use $CARGO_MANIFEST_DIR to fully specify include_dir paths in tauri-cli (#9310)
* Allow tauri-cli to work with Bazel.

Signed-off-by: Scott Pledger <scottpledger2005@gmail.com>

* change file

---------

Signed-off-by: Scott Pledger <scottpledger2005@gmail.com>
2024-04-01 16:43:52 +02:00
Tony
5bd47b4467 fix(windows): changing WebView visibility on hide/show/minimize (#9246)
* Fix not changing visibilty for windows webview

* Add change file

* Move is_visible calculation to the caller

* Rename update to set
2024-03-28 16:25:46 +02:00
Vladimir Stoilov
259d845290 feat(bundler): add post/pre install/remove scripts for linux deb and rpm packages (#9209)
* feat(cli/add): add post/pre install/remove scripts for linux

* fix(cli): clippy errors

* fix(cli): remove script struct from deb/rpm bundle

* change files and aliases
2024-03-28 05:13:26 +02:00
Fabian-Lars
c33f6e6cf3 fix(core): Announce new webviews and windows (#9211)
* fix(core): Announce new webviews and windows

fixes #9200
fixes #8144

* fix js import in example

* emit created events to all listeners.

* remove duplicate event
2024-03-28 02:23:19 +02:00
Lucas Fernandes Nogueira
e7cd973123 fix(tauri-runtime-wry): window inner size regression on macOS, closes #9236 (#9276)
* fix(tauri-runtime-wry): window inner size regression on macOS, closes #9236

* lint
2024-03-26 11:38:57 -03:00
github-actions[bot]
7898b601d1 Apply Version Updates From Current Changes (#9222)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
tauri-v2.0.0-beta.13 tauri-cli-v2.0.0-beta.11 @tauri-apps/cli-v2.0.0-beta.11 tauri-bundler-v2.0.1-beta.7
2024-03-20 19:59:04 -03:00
Lucas Fernandes Nogueira
b525ddadf7 fix(cli): openssl is no longer a required macOS dep (#9237) 2024-03-20 19:15:58 -03:00
Fabian-Lars
ee028c414d fix(core): Fix menu.remove trying to remove the item from itself instead of from the menu (#9225)
follow up to https://github.com/tauri-apps/tauri/pull/9219/
2024-03-20 18:36:51 -03:00
Tillmann
edc9923c5b Feat: Initial cargo-vet Support (#9216)
* add cargo-vet with reasonable trusted entities

* update paths

* license header

---------

Co-authored-by: Lucas Nogueira <118899497+lucasfernog-crabnebula@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@crabnebula.dev>
2024-03-19 11:39:42 -03:00
Fabian-Lars
a799f24f97 fix(bundler): Fix path seperators for deep link registry entries (#9185)
* fix(bundler): Fix path seperators for deep link registry entries

* Update bundler-deep-link-reg-path.md
2024-03-19 10:41:55 -03:00
Amr Bashir
ac76a22f38 feat(cli/init): allow empty responses non-crucial questions (#9183)
closes #9181
2024-03-19 10:41:41 -03:00
Fabian-Lars
81b853bc87 fix(core): Set json content type for errors returned from commands (#9213) 2024-03-19 10:34:12 -03:00
Fabian-Lars
75f5cb4015 feat(core): Implement HasDisplayHandle for Window (#9214) 2024-03-19 09:43:15 -03:00
Tony
43230cb6b7 fix(core): menu remove js binding not working (#9219)
* Fix menu `remove` js binding not working

* add change file [skip ci]

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-03-19 09:40:25 -03:00
Dan
fb146339cc chore: Readme typo (#9130) 2024-03-18 22:47:10 +01:00
Lucas Nogueira
72d9876bc8 chore: update autogenerated file tauri-v2.0.0-beta.12 @tauri-apps/cli-v2.0.0-beta.10 tauri-cli-v2.0.0-beta.10 2024-03-18 10:14:27 -03:00
github-actions[bot]
f1df6b2c35 Apply Version Updates From Current Changes (#9162)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
tauri-plugin-v2.0.0-beta.10 tauri-utils-v2.0.0-beta.10 tauri-codegen-v2.0.0-beta.10 tauri-build-v2.0.0-beta.10 tauri-bundler-v2.0.1-beta.6 tauri-macros-v2.0.0-beta.10 @tauri-apps/api-v2.0.0-beta.6 tauri-runtime-v2.0.0-beta.10 tauri-runtime-wry-v2.0.0-beta.10
2024-03-18 09:43:47 -03:00
Amr Bashir
379cc2b354 fix(core/path): remove suffix in basename only once (#9165)
* fix(core/path): remove suffix in `basename` only once

closes #9064

* Update tooling/api/src/path.ts

* remove extra assert

---------

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2024-03-18 08:40:23 -03:00
Lucas Fernandes Nogueira
ea0242db4a refactor(image): expose constructor, unify size getters (#9179) 2024-03-13 22:02:05 -03:00
Amr Bashir
7213b9e472 feat(cli/add): add default permission to capabilities (#9124)
* feat(cli/add): add default permission to capabilities

also cleanup `tauri add` command

* license headers & clippy

* print permission name

* do not error out if default permission is not set

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-03-13 11:58:25 -03:00
Amr Bashir
acdd76833d feat(api/tray): add TrayIcon.getById/removeById (#9155)
* feat(api/tray): add `TrayIcon.getById/removeById`

closes #9135

* generate

* add permissions

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-03-12 13:07:51 -03:00
Lucas Fernandes Nogueira
e227fe02f9 feat(core): allow defining global API script on plugin build (#9156)
* feat(core): allow defining global API script on plugin build

Adds `tauri_plugin::Builder::global_api_script_path` so plugin authors can define the JavaScript global API bindings (supposed to be injected to `window.__TAURI__`) at compile time, so the string is only part of the binary when withGlobalTauri is true.
Currently this needs to be done manually at runtime (and it's always added to the binary via include_str).

* prefix variable

* use list of scripts instead of combining them

* static str

* header [skip ci]

* slice
2024-03-12 12:01:13 -03:00
Amr Bashir
3f039c18b1 chore(deps): update muda and tray-icon crates (#9154)
* chore(deps): update `muda` and `tray-icon` crates

* lock file
2024-03-12 09:50:39 -03:00
Amr Bashir
79b8a3514b enhance(core/event): filter js listeners on rust side only then emit filtered ids to be triggered (#9151)
* fix(core/event): filter js listeners on rust side only then emit filtered ids to be triggerd

fix regression introduced in https://github.com/tauri-apps/tauri/pull/8930 , and reported in https://github.com/tauri-apps/tauri/pull/8930#issuecomment-1986279046

* Update .changes/core-js-unlisten-all-regression.md

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>

* Discard changes to .changes/core-js-unlisten-all-regression.md

* object.defineproperty

* add change file [skip ci]

---------

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2024-03-12 09:41:25 -03:00
github-actions[bot]
d349558abb Apply Version Updates From Current Changes (#9149)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
tauri-runtime-wry-v2.0.0-beta.9 tauri-cli-v2.0.0-beta.9 tauri-v2.0.0-beta.11 tauri-build-v2.0.0-beta.9 @tauri-apps/api-v2.0.0-beta.5 tauri-utils-v2.0.0-beta.9 tauri-codegen-v2.0.0-beta.9 tauri-bundler-v2.0.1-beta.5 tauri-macros-v2.0.0-beta.9 @tauri-apps/cli-v2.0.0-beta.9 tauri-runtime-v2.0.0-beta.9 tauri-plugin-v2.0.0-beta.9
2024-03-11 15:14:25 -03:00
Amr Bashir
a44cd5a183 chore: fix description for Context::assets change from #9141 (#9148) 2024-03-11 14:47:03 -03:00
Lucas Fernandes Nogueira
e673854c83 fix(acl): inconsistencies on urlpattern usage for remote domain URL (#9133)
* fix(acl): inconsistencies on urlpattern usage for remote domain URL

* remove println!

* typo

* fix tests
2024-03-11 13:39:17 -03:00
Lucas Fernandes Nogueira
490a6b424e refactor(core): add setup() to the Assets trait (#9147)
* feat(core): allow swapping the assets implemenetation

* refactor(core): add setup() to the Assets trait

* code review
2024-03-11 13:38:32 -03:00
i-c-b
85de230f31 fix(core): race between drop old JS listeners and create new listeners on page load (#9144)
* fix(core): race between drop old JS listeners and create new listeners on page load

* Create fix-js-unlisten-all-race.md
2024-03-11 18:03:02 +02:00
Tony
c3ea3a2b7d fix(windows): relax UpdaterWindowsConfig to not deny unknowns fields (#9126) 2024-03-11 17:30:14 +02:00
Lucas Fernandes Nogueira
db0a24a973 refactor(core): use the image crate (#9132) 2024-03-11 11:46:34 -03:00
Dimitris Apostolou
26f0f71a40 chore: fix various typos (#9131) 2024-03-11 16:25:20 +02:00
Lucas Fernandes Nogueira
ba0206d8a3 feat(core): allow swapping the assets implementation (#9141) 2024-03-11 11:07:15 -03:00
studystill
db1ea98512 chore(core): remove repetitive word (#9136)
Signed-off-by: studystill <chenghuiyue@outlook.com>
2024-03-11 02:43:12 +02:00
kandrelczyk
45384ab3aa docs: adding 'desktop only' pill to menu module (#9123) 2024-03-08 06:26:31 +02:00
Lucas Nogueira
9247ecf2a4 chore(cli): update Cargo.lock tauri-cli-v2.0.0-beta.8 2024-03-07 20:24:53 -03:00
github-actions[bot]
d701f29f17 Apply Version Updates From Current Changes (#9117)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
tauri-utils-v2.0.0-beta.8 tauri-bundler-v2.0.1-beta.4 tauri-runtime-v2.0.0-beta.8 tauri-build-v2.0.0-beta.8 tauri-runtime-wry-v2.0.0-beta.8 tauri-macros-v2.0.0-beta.8 @tauri-apps/cli-v2.0.0-beta.8 tauri-v2.0.0-beta.10 tauri-codegen-v2.0.0-beta.8 tauri-plugin-v2.0.0-beta.8
2024-03-07 19:56:45 -03:00
renovate[bot]
94ab97a884 chore(deps) Update Rust crate rpm to 0.14.0 (dev) (#9102)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-07 19:35:15 -03:00
renovate[bot]
5deb1202f6 chore(deps) Update dependency rollup to v4.12.1 (dev) (#9101)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-07 19:34:29 -03:00
Lucas Fernandes Nogueira
ed48e2b3c7 feat(core): expose the image module (#9122)
* feat(core): expose the image module

* code review

* fix import

* fix

* fix codegen

* jsimage owned

* fmt

---------

Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
2024-03-07 19:23:21 -03:00