Commit Graph

4698 Commits

Author SHA1 Message Date
Amr Bashir
783ef0f2d3
refactor!(core): return result in Webview/WebviewWindow::url getter (#9647)
* refactor!(core): return result in `Webview/WebviewWindow::url` getter

* clippy

* Apply suggestions from code review
2024-05-07 17:16:17 +03:00
Fabian-Lars
d2fc48f0e6
fix: rename kill-children.sh to tauri-stop-dev-processes.sh (#9669) 2024-05-07 16:45:37 +03:00
Lucas Fernandes Nogueira
a5205f179e
fix(utils): wrong ToTokens impl of the window proxy_url config (#9691) 2024-05-07 15:59:58 +03:00
Tony
5529c5ab69
’ -> ' (#9686) 2024-05-07 11:22:36 +02:00
Tony
5ce0737e9a
Update denpendencies (#9688) 2024-05-07 11:22:05 +02:00
github-actions[bot]
83acd85788
apply version updates (#9639)
Co-authored-by: FabianLars <FabianLars@users.noreply.github.com>
2024-05-07 00:02:54 +02:00
Hankung
3fbc1703f1
fix: schemars 0.8.18 compatibility (#9676)
* fix: schemars 0.8.18 compatibility

* fix cli cargo issue

* update tauri-utils v1

---------

Co-authored-by: FabianLars <fabianlars@fabianlars.de>
2024-05-06 23:22:35 +02:00
Tony
8385733a69
chore: rename .cargo/config to .cargo/config.toml (#9655) 2024-05-04 17:54:29 +03:00
Andrej Mihajlov
07ff78c2de
feat(tray): add TrayIcon::rect method (#9615) 2024-05-03 05:56:54 +03:00
Eugene Hauptmann
f1badb9fb3
fix: fixed typo in menu and submenu tooling (#9645)
* Update menu.ts

replaced `Platform-spcific` to `Platform-specific`

* Update submenu.ts

replaced `Platform-spcific` to `Platform-specific`
2024-05-02 21:20:34 +03:00
Amr Bashir
97ec422f22
fix(cli/icon): return with an error instead of panic (#9638)
* fix(cli/icon): return with an error instead of panic

closes #9636

* Update .changes/cli-icon-non-0-exit.md
2024-05-02 13:26:53 +02:00
Oscar Beaumont
7f6d2698c9
fix(core): better error when deserializing plugin config (#9631)
* Better error for errors decoding plugin config

* changes
2024-05-02 00:44:40 +03:00
Oscar Beaumont
8a71858eb2
feat: configure a default runtime for menu and tray icon types (#9630)
* Use `tauri::Wry` as default runtime for menu types

* do it properly

* changes

* same for tray icon

* change file

---------

Co-authored-by: amrbashir <amr.bashir2015@gmail.com>
2024-05-02 00:44:15 +03:00
Oscar Beaumont
bf2635ab62
fix(plugin): improve error for missing links property (#9632)
* Better error

* Improve errors
2024-05-02 00:40:31 +03:00
Oscar Beaumont
cd5580749c
update link (#9637) 2024-05-01 18:58:17 +03:00
Fabian-Lars
b0421cbb21
chore: rebuild bundle.global.js (#9625) 2024-04-30 21:30:09 +02:00
github-actions[bot]
d5775ed6a4
apply version updates (#9617)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2024-04-30 19:31:34 +02:00
Fabian-Lars
007af10d43
Partially Revert "Apply Version Updates From Current Changes (#9551)" (#9620)
This partially reverts commit 108ab9094a.
2024-04-30 19:23:26 +03:00
Zihan Hu
aa080696e0
fix(core): fix incorrect isTauri return type (#9618) 2024-04-30 19:03:49 +03:00
Tony
1bb87a3a22
feat(cli): generate signature for updater-enabled bundles (#9446) 2024-04-30 18:45:24 +03:00
Tony
6c047aee14
fix(windows): hide windows on cleanup (#9612)
* Hide windows on cleanup

* Add change file

* Move hide window to a loop above
2024-04-30 18:37:17 +03:00
github-actions[bot]
108ab9094a
Apply Version Updates From Current Changes (#9551)
* apply version updates

* update wry to 0.39.3 to prevent dependency version mismatches

---------

Co-authored-by: FabianLars <FabianLars@users.noreply.github.com>
Co-authored-by: FabianLars <fabianlars@fabianlars.de>
2024-04-30 16:22:46 +02:00
renovate[bot]
380c507d38
chore(deps) Update Rust crate heck to 0.5 (dev) (#9555)
* chore(deps) Update Rust crate heck to 0.5

* let's help renovate out :)

* remove unicode feature

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: FabianLars <fabianlars@fabianlars.de>
2024-04-30 14:52:50 +02:00
Amr Bashir
128c580009
chore(cli/deps): update nsis-tauri-utils to 0.3 (#9604) 2024-04-30 13:54:49 +02:00
Amr Bashir
3f08054885
refactor(cli): use windows-sys instead of winapi (#9603)
* refactor(cli): use `windows-sys` instead of `winapi`

* Update cli-windows-sys.md
2024-04-29 20:50:37 +03:00
Amr Bashir
477bb8cd4e
feat: add cursor_position getter (#9297)
* feat: add `cursor_position` getter

closes #9250

* js api

* Update mod.rs

* fix build on iOS and android

* use existing wrapper

* fmt

* adjust wording

* update docs

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-04-29 18:28:01 +03:00
Fabian-Lars
5a213a4bdc
ci: Fix publishing of cli-macos-x64 (#9584) 2024-04-29 16:23:13 +03:00
Lucas Fernandes Nogueira
eff778b8f0
fix(core): run plugin init script in a separate context (#9571) 2024-04-28 11:15:29 -03:00
Fabian-Lars
6d5a396ae9
ci: Remove nodejs14 test in cli.js publishing workflow (#9568) 2024-04-25 12:45:15 +02:00
Lucas Fernandes Nogueira
98101cb17f
fix(core): allow any headers on custom protocol IPC (#9561) 2024-04-25 01:00:03 +02:00
Tony
68c39b8c0c
refactor(nsis): use nsis's built-in com plugin instead of ApplicationID plugin (#9527)
* Use WinShell instead of ApplicationID

* Uninst shortcut before removing start menu one

* Use nsis's buit-in com plugin instead of WinShell

* Remove download ApplicationID code

* Add change file

* Clippy and format

* Allow dead code on extract_zip

* Qualify extract_zip path to make clippy happy

* Move macro up
2024-04-24 16:14:30 +02:00
Oscar Beaumont
12b4159bda
feat(core): add Specta integration (#9392) 2024-04-23 04:29:39 +02:00
github-actions[bot]
ac9bfada4a
Apply Version Updates From Current Changes (#9548)
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-04-22 17:09:51 -03:00
Amr Bashir
e22e61af6c
Revert "Apply Version Updates From Current Changes (#9489)" (#9549)
This reverts commit 198f11ae7b.
2024-04-22 15:42:46 -03:00
github-actions[bot]
198f11ae7b
Apply Version Updates From Current Changes (#9489)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2024-04-22 19:02:28 +02:00
Amr Bashir
07f2af0002
chore(deps): update to windows-rs 0.56 (#9493)
* chore(deps): update to windows-rs 0.56

* lockfile

* use latest versions

* update lock file
2024-04-22 18:33:16 +02:00
Tony
de7bcf3cc5
fix(bundler/nsis): auto append product name when choosing a new install path (#9478)
* Fix picking install folder
doesn't auto append product name folder for nsis installer

* Add change file

* patch -> patch:enhance

* Update nsis-append-product-name.md
2024-04-22 17:59:16 +02:00
Tony
a1e0e268f0
fix(utils): temp permission file names on windows (#9477)
* Replace `tauri:` with `tauri-`

* Add change file

* Apply suggestions from code review

* patch -> "patch:bug"

---------

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2024-04-22 11:18:16 -03:00
André Kohn
be7eab209c
fix(api): add type definitions to package.json exports (#9486) 2024-04-22 16:18:00 +02:00
Amr Bashir
aaa332c6e7
fix(cli/migrate): migrate only known plugins (#9540)
* fix(cli/migrate): migrate only known plugins

closes #9533

* use tuple

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-04-22 15:28:19 +02:00
Lucas Fernandes Nogueira
35b25f7e5c
fix: optional chaining is not supported on older webviews (#9530) 2024-04-22 10:27:45 -03:00
Amr Bashir
70c51371e0
feat(core): add isTauri (#9539)
* feat(core): add `isTauri`

* generate api
2024-04-22 15:07:11 +02:00
Amr Bashir
005fe8ce1e
fix(runtime-wry): apply closable, maximizable and minimizable effects from config (#9410)
closes #9409
2024-04-21 11:43:30 -03:00
Graham Held
cf615e8e4d
Set internal message ID to nextId after handling pending messages (#9463)
* Set internal message ID to nextId after handling pending messages

* add change file

* update bundle

* update reference.md

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-04-21 11:21:34 -03:00
dependabot[bot]
de7a294cc4
chore(deps): bump rustls from 0.22.3 to 0.22.4 (#9512)
Bumps [rustls](https://github.com/rustls/rustls) from 0.22.3 to 0.22.4.
- [Release notes](https://github.com/rustls/rustls/releases)
- [Changelog](https://github.com/rustls/rustls/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rustls/rustls/compare/v/0.22.3...v/0.22.4)

---
updated-dependencies:
- dependency-name: rustls
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-21 11:05:16 -03:00
Amr Bashir
88c0ad9cf5
fix(build): check if permissions dir exists before adding cargo:rerun-if-changed (#9471)
closes #9062
2024-04-21 11:04:46 -03:00
Tony
daf018e4f5
fix(core): clear resource table in cleanup_before_exit (#9505)
* Clear resource table in `cleanup_before_exit`

* Add change file

* Update .changes/cleanup-resource-table.md
2024-04-19 05:50:12 +02:00
Amr Bashir
05088b0679
feat(bundler): expose {{long_description}} to custom templates (#9494)
* feat(bundler): expose `{{long_description}}` to custom templates

closes #9437

* fix linux
2024-04-18 17:09:05 +02:00
Fabian-Lars
e64b8f1dce
chore: merge remote-tracking branch '1.x' into v2 (#9479)
* chore: port PR template from `dev` branch (#9004)

* fix(runtime-wry): avoid panic during clipboard initialization on wayland (#9003)

closes #8964

* ci: downgrade thread_local to 1.1.7 in msrv list (#9012)

* Apply Version Updates From Current Changes (v1) (#9013)

Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>

* fix(bundler): escape potentially problematic strings in an XML (#9040)

* fix(bundler): escape potentially problematic strings in an XML (#9030)

- replace characters invalid in XML with their escaped form to properly bundle resources with such characters in their pathnames.

* change file

* fix(cli): use `matched_path_or_any_parents` when checking if a file is ignored (#8903)

* fix: taurignore ignoreing folders not working for watch

* docs: add to changes

* fix: panic: path is expected to be under the root

* Update taurignore-ignoring-folders-not-working-for-watch.md

* Update taurignore-ignoring-folders-not-working-for-watch.md

* fix(cli): migrate to stable features of `log` crate (#9119)

* fix(cli): migrate to stable features of `log` crate

* to_cow_str

* Apply Version Updates From Current Changes (v1) (#9074)

Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>

* fix(core/path): remove suffix in basename only once (#9166)

* fix(core/path): remove suffix in basename only once

ref: #9064

* Update tooling/api/src/path.ts

---------

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

* fix(cli): Clone Options struct after mutating it. (#9188)

* fix(bundler): Fix nsis resource paths on non-windows build systems. (#9281)

* fix(bundler): Fix nsis resource paths on non-windows build systems.

* remove leftover from alternative

* fix(bundler/nsis): Don't use /R flag on installation dir (#9282)

* fix(cli): upgrade heck to better support Chinese/Japanese prodcut name on Linux (#9298)

* chore: fix clippy false positive (#9329)

* fix(cli/info): fix crash when checking node version (#9411)

closes #9396

---------

Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
Co-authored-by: bifs <127015052+bifs@users.noreply.github.com>
Co-authored-by: anatawa12 <anatawa12@icloud.com>
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
Co-authored-by: Jet Li <jing.i.qin@icloud.com>
2024-04-18 05:21:21 +02:00
Amr Bashir
a07b513201
fix(core): add permission for window.start_resize_dragging (#9490)
closes #9485
2024-04-17 18:25:35 +02:00