Commit Graph

4299 Commits

Author SHA1 Message Date
Amr Bashir
16e550ec15
refactor(core): add webview events (#8844)
* refactor(core): add webview events

* license header

* clippy

* fix doctests

* more doctests

* fix JS `listen` with `EventTarget::Any`

* typo

* update module import

* clippy

* remove console.log

* fix api example

* fix documentation for emiTo [skip ci]

* actually add RunEvent::WebviewEvent

* update migration

* lint

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-02-16 08:07:39 -03:00
Amr Bashir
5618f6d2ff
feat: relax plugin identifier requirements to alphanumeric and - (#8856)
closes #8820
2024-02-16 07:27:56 -03:00
i-c-b
11a5816bdf
feat(core): recursive asset scope on directory file-drop event (#8864)
* allow recursive asset scope on directory file-drop events

* Create allow-recursive-asset-scope-on-file-drop-directory.md

* Update .changes/allow-recursive-asset-scope-on-file-drop-directory.md
2024-02-15 16:56:04 +02:00
Jason Tsai
3cee26a58a
fix(cli): use UTF-8 encoding for vswhere.exe output (#8865) 2024-02-15 16:55:31 +02:00
Philipp Bokatius
46b6598a94
fix: target specific window for window events (#8826)
* fix: target specific window for CLOSE_REQUESTED_EVENT emission

* fix: use emit_filter() instead of emit_to()

* fix: try sending event regardless of existing js listener

* cleanups

* change file

* emit_self -> emit_to_window

---------

Co-authored-by: amrbashir <amr.bashir2015@gmail.com>
2024-02-12 17:55:20 +02:00
Jason Tsai
cf3e40cc47
fix(core): use event.code to check which key pressed (#8819)
* fix(core): use event.code to check which key pressed

* Discard changes to .changes/fix-devtool-hotkey-code.md
2024-02-08 16:29:54 +02:00
Lucas Fernandes Nogueira
2f55bfecbf
chore(deps): update wry to 0.36 (#8795)
* chore(deps): update wry to 0.36

* rwh 0.6

* remove raw_window_handle usage

* fix build

* fix windows test
2024-02-07 22:26:29 -03:00
Lucas Fernandes Nogueira
dd7571a780
fix(core): do not generate files if plugin has no permissions (#8815) 2024-02-07 22:26:16 -03:00
Priyadarshan Giri
aa06a0534c
fix(cli): fix code output of tauri plugin android init (#8810)
* Fix: code output of tauri plugin android init
double quotes `"` wasn't matching in plugin android init command

* change file
2024-02-07 18:40:46 +02:00
Lucas Fernandes Nogueira
fb0d997117
fix(cli): regression on --config not accepting file paths (#8783)
* fix(cli): regression on --config not accepting file paths

* enhance dev server config parsing

* use serde_json::json!

* pass config to setup
2024-02-07 17:08:05 +02:00
Jason Tsai
8751c3299f
fix: correct invoke command for toggling devtools by hotkey, closes #8771 (#8793) 2024-02-06 07:41:54 -03:00
Amr Bashir
2e6db908d7
fix(core): make tauri::Error sync again (#8777)
* fix(core): make `tauri::Error` sync again

closes #8754

* add unit test

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-02-05 14:52:10 -03:00
Amr Bashir
19fb5f0b20
fix(build): fix writing schema file (#8782)
* fix(build): fix writing schema file

* Update .changes/schema_str.md
2024-02-05 14:32:27 -03:00
Lucas Fernandes Nogueira
f2e4c9de3a
chore: remove nix workaround following zbus release (#8773) 2024-02-05 10:32:10 -03:00
Fabian-Lars
ae0fe47c4c
fix(core): Compile error when bundle.license is set (#8774)
* fix(core): Compile error when bundle.license is set

* wrong package
2024-02-05 15:08:32 +02:00
Lucas Fernandes Nogueira
baca704d4b
fix(cli): skip migrating updater config if not active (#8768) 2024-02-05 09:54:29 -03:00
Lucas Fernandes Nogueira
bd73ab0a1a
fix(multiwebview): remove webview from store on close (#8766) 2024-02-04 23:22:09 -03:00
Lucas Fernandes Nogueira
48b1fd74b1
fix(tauri-runtime-wry): enable the nix user feature ref #8761 (#8765) 2024-02-04 17:40:46 -03:00
github-actions[bot]
d54a2b055a
Apply Version Updates From Current Changes (#8759)
Co-authored-by: FabianLars <FabianLars@users.noreply.github.com>
2024-02-04 17:06:31 -03:00
Lucas Fernandes Nogueira
f99d140bbe
fix(cli): OsString::as_encoded_bytes is only available on Rust 1.74 (#8764) 2024-02-04 16:51:49 -03:00
Lucas Fernandes Nogueira
fe67ab7f25
fix(core): build on unix failing (#8761)
* fix(core): build on unix failing

* change file
2024-02-04 19:42:55 +01:00
Fabian-Lars
3bf6bc36da
docs: Fix broken config link (#8752)
* docs: Fix broken config link

* regen
2024-02-04 11:56:28 -03:00
Lucas Fernandes Nogueira
4e101f8016
refactor(core): enhance app rerun-if-changed for capabilities and frontend dist (#8756)
* refactor(core): enhance app rerun-if-changed for capabilities and frontend dist

* always rerun-if-changed=capabilities

* fix todo

* rerun if plugin permissions change

* add change files
2024-02-04 11:42:13 -03:00
Lucas Fernandes Nogueira
0f2789cd67
fix(build): do not rewrite unchanged schema (#8757)
* fix(build): do not rewrite unchanged schema

* typo
2024-02-04 12:45:59 +01:00
timotheeMM
b43c423165
chore: fix a typo in core/tauri/CHANGELOG.md (#8748)
accomodate -> accommodate

[skip ci]
2024-02-04 00:29:49 +02:00
github-actions[bot]
509e35f209
Apply Version Updates From Current Changes (#8751)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-02-03 17:55:13 -03:00
Lucas Nogueira
584bb5ba66
fix(ci): adjust covector configuration 2024-02-03 17:38:27 -03:00
Lucas Fernandes Nogueira
ce1655ec22
fix(cli): integration tests not failing when build fails (#8746) 2024-02-03 17:18:34 -03:00
Lucas Fernandes Nogueira
863bc9e55f
fix(core): regression on process-ipc-message-fn (#8749) 2024-02-03 17:18:19 -03:00
Lucas Nogueira
8f0e50f396
fix(webdriver): update lock file 2024-02-03 13:38:16 -03:00
Lucas Nogueira
c31c94ceb7
fix(cli): trailing comma on capability template 2024-02-03 13:14:56 -03:00
Lucas Nogueira
6b981d37dc
fix(core): properly import HeaderName 2024-02-03 13:00:39 -03:00
Lucas Nogueira
2333cd1c83
fix: set tauri-plugin crate description 2024-02-03 12:34:45 -03:00
Lucas Nogueira
f1d0f452a2
chore: pin tao to 0.25 2024-02-03 11:57:54 -03:00
Lucas Nogueira
ab57f9531a
chore: run pnpm format on the repo 2024-02-03 11:08:13 -03:00
github-actions[bot]
88a1dd17c3
Apply Version Updates From Current Changes (#8638)
* apply version updates

* promote to beta

* fix check version

* update dependencies section [skip ci]

* update npm versions

---------

Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-02-03 10:59:09 -03:00
Lucas Fernandes Nogueira
3364b6727c
fix(cli): build command features and bundles can have multiple values (#8744)
* fix(cli): build command  and  can have multiple values

* add value delimiter on bundles

* gitignore dist
2024-02-03 09:14:02 -03:00
Fabian-Lars
4806f9fc70
fix(core): Rename FrontendDist::Dist to Dir (#8743)
* fix(core): Rename FrontendDist::Dist to Dir

* Directory

* fix totokens impl

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-02-03 09:08:20 -03:00
Lucas Fernandes Nogueira
0cdfda2876
refactor: move plugin functionality from tauri-build to tauri-plugin (#8737)
* refactor: move plugin functionality from tauri-build to tauri-plugin

* fixes

* fix build

* move docs function

* autogenerated

* fix path
2024-02-03 08:48:57 -03:00
Lucas Fernandes Nogueira
63d6d474fd
fix(cli): UpdaterConfig is not flexible (#8741) 2024-02-03 08:24:15 -03:00
Lucas Fernandes Nogueira
1d21446e21
fix(bundler): add default value for xdg_mime env var (#8742) 2024-02-03 08:24:05 -03:00
Lucas Fernandes Nogueira
0a01b5b720
fix(core): do not embed assets on dev when using a URL (#8739) 2024-02-03 08:18:59 -03:00
Lucas Fernandes Nogueira
cb613beea6
fix(ci): test-android NDK error (#8738)
* fix(ci): test-android NDK error

* only on unix
2024-02-03 08:11:02 -03:00
Amr Bashir
8de308d1bf
feat(core): implement new config structure (#8723)
* feat(core): implement new config structure

RFC#5 f3e82a6b0c/texts/0005-tauri-config-restructure.md

* fixes

* remove tauri-plugin copy [skip ci]

* move platform specific configs

* fix build

* fix cli

* doctests

* change files

* read updater plugin config on CLI

* doctests

* remove env var from docs

* fix getting pubkey

* add migrations

* clippy

* update change file [skip ci]

* rename frontendDist to prodFrontend?

* Revert "rename frontendDist to prodFrontend?"

This reverts commit ef7394f085.

* fix all_features check

* fix field name

* single license getter on bundler

* readd msiexec_args

* remove unused fixture

* update template

* Update .changes/tauri-bundle-settings-rfc-5.md

* Update .changes/config-restructure-rfc-5.md

* lint bundler, fix change file

* rename AppUrl to FrontendDist, add explicit variants for docs

* fix build

* lint

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2024-02-03 00:39:48 -03:00
Lucas Fernandes Nogueira
e691208e7b
fix(cli): prevent creating interface twice avoiding double manifest rewrite (#7837) 2024-02-02 21:43:33 -03:00
Lucas Fernandes Nogueira
791e291a9f
fix(build): ignore changes on autogenerated files (#8736) 2024-02-02 20:55:27 -03:00
Jingyu
b09b94204c
docs(examples): multiwindow example run command (#8735) 2024-02-02 19:54:59 +01:00
Amr Bashir
e8d3793c3c
feat(tauri-build): add config-json feature flag (#8732)
* feat(tauri-build): add `config-json` feature flag

This allows disabling rebuilding when `tauri.conf.json` when using another config format

see https://github.com/tauri-apps/tauri/issues/8721

* document feature flag

* Update .changes/tauri-build-config-json.md [skip ci]

* Update core/tauri/src/lib.rs [skip ci]

* disable default features for tauri-build on tauri, plugins

* fmt

---------

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-02-02 14:11:59 -03:00
Jingyu
95da1a2747
fix(core): macos #5122 app.runtime panic in app.set_activation_policy (#8713)
* fix #5122 app.runtime panic in set_activation_policy

* allow setting the policy at runtime

* add change file

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-02-02 09:40:10 -03:00
Lucas Fernandes Nogueira
a35b416e38
refactor(core): merge scope and commands resolving permission sets (#8731) 2024-02-02 09:18:59 -03:00