github-actions[bot]
18ff84fc81
Apply Version Updates From Current Changes ( #8775 )
...
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-02-19 15:49:28 -03:00
Lucas Fernandes Nogueira
0e8e9cd064
fix(build): move capability schema definitions to root ( #8906 )
2024-02-19 14:46:21 -03:00
Amr Bashir
6f064a0d6f
chore: add back .changes/readme.md
( #8905 )
...
* chore: add back `.changes/readme.md`
* fix test
2024-02-19 14:39:27 -03:00
Lucas Fernandes Nogueira
258494bd24
feat(core): add Manager::add_capability, closes #8799 ( #8806 )
...
* refactor(core): capabilities must be referenced on the Tauri config file
* add all capabilities by default
* feat(codegen): allow defining additional capabilities, closes #8798
* undo example
* lint
* move add_capability to runtime authority
* feat(core): add Manager::add_capability, closes #8799
* add change file
2024-02-19 11:59:20 -03:00
Lucas Fernandes Nogueira
f284f9c545
refactor: configure URLs instead of domains on capability remote ( #8898 )
2024-02-19 11:14:09 -03:00
Lucas Fernandes Nogueira
8d16a80d2f
feat(codegen): allow defining additional capabilities, closes #8798 ( #8802 )
...
* refactor(core): capabilities must be referenced on the Tauri config file
* add all capabilities by default
* feat(codegen): allow defining additional capabilities, closes #8798
* undo example
* lint
* move add_capability to runtime authority
* add change files
* go through code review
* fix tests
* remove tokens option
2024-02-19 11:13:36 -03:00
Sam Willis
28fb036ce4
fix(core): Incorrect resource_dir when app run from new style target/PLATFORM+ARCH/(debug|release) dir ( #8852 )
...
* Fix resource_dir when app run from new target/someting/(debug|release) dir
* Update core/tauri-utils/src/platform.rs
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
* change file, update logic, add tests
* lint
* fix tests
---------
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-02-18 15:10:21 -03:00
Lucas Fernandes Nogueira
83a68deb56
refactor(core): allow referencing capabilities on the Tauri config file ( #8797 )
...
* refactor(core): capabilities must be referenced on the Tauri config file
* add all capabilities by default
* refactor(cli): reference all capabilities by default
2024-02-18 10:42:09 -03:00
Lucas Fernandes Nogueira
0cb0a15ce2
feat(core): capabilities on multiwebview contexts ( #8789 )
...
* feat(core): capabilities on multiwebview contexts
* fix cli
* lint
* sort
2024-02-16 08:24:51 -03:00
Lucas Fernandes Nogueira
edb11c138d
feat(build): support plugins that are defined in app crate ( #8781 )
...
* feat(build): support plugins that are defined in app crate
* dx
2024-02-16 08:24:40 -03:00
Fabian-Lars
052e8b4311
fix(cli): Downgrade minisign to 0.7.3 once again ( #8838 )
...
* fix(cli): Downgrade minisign to 0.7.3 once again
* add tests
* add change file
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-02-16 08:24:00 -03:00
Amr Bashir
e52d5e573f
enhance: center window before creation ( #8845 )
...
* enhance: center window before creation
closes #4777
* simplify variable name
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-02-16 08:13:49 -03:00
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
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
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
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
fe67ab7f25
fix(core): build on unix failing ( #8761 )
...
* fix(core): build on unix failing
* change file
2024-02-04 19:42:55 +01: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
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
863bc9e55f
fix(core): regression on process-ipc-message-fn ( #8749 )
2024-02-03 17:18:19 -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
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
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
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
f492efd714
feat(cli): update template with permissions and capabilities ( #8666 )
...
* feat(cli): update template with permissions and capabilities
* update gitignore [skip ci]
2024-02-01 08:53:56 -03:00
time-river
6639a579c7
feat(core): add support to setting a webview proxy, closes #4263 ( #8441 )
...
* feat(wry): support proxy in wry runtime
wry has been supported http/socks5 proxy in
[#1006 ](https://github.com/tauri-apps/wry/pull/1006 ), which has been
merged in [commit
3cc4d79](3cc4d79843
).
This patch aims to support its feature.
Signed-off-by: lin fu <river@vvl.me>
* Apply suggestions from code review
* Apply suggestions from code review
* Update core/tauri-runtime-wry/src/lib.rs
* Update core/tauri/src/window/mod.rs
* add macos-proxy flag
* add change file
* delete file
* update change file
* use macos-14 runner to test core
---------
Signed-off-by: lin fu <river@vvl.me>
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-02-01 08:53:32 -03:00
Amr Bashir
a093682d2d
refactor(core): refactor and fix event system following multiwebview support ( #8621 )
...
* clippy
* refactor(core): refactor and fix event system following multiwebview support
* update documentation
* update js docs
* lint
* clippy
* update multiwindow example [skip ci]
* enhance event tests
* fix example
* Update .changes/tauri-event-after-multiwebview.md
Co-authored-by: Lucas Nogueira <118899497+lucasfernog-crabnebula@users.noreply.github.com>
* fix tests
* add diagram
* Add `App/AppHandle` even target
* Discard changes to examples/api/src-tauri/tauri-plugin-sample/permissions/schemas/schema.json
* revert accidental changes
* regenerate schemas
* fix doctests
* add helper methods
* update docs
* update api
* update docs [skip ci]
* update docs [skip ci]
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
Co-authored-by: Lucas Nogueira <118899497+lucasfernog-crabnebula@users.noreply.github.com>
2024-02-01 08:06:27 -03:00
Amr Bashir
7fcc0bcd34
feat(cli/add): add plugin init code to main.rs
( #8490 )
...
* feat(cli/add): add plugin to `main.rs`
closes #7696
* clippy
* fix change file
* adjust regex
* run cargo fmt
* check if already exists
* typo [skip ci]
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-02-01 08:05:45 -03:00
ChAyLom
30be0e3057
feat(bundler/NSIS): Add Russian to supported NSIS languages ( #8303 )
...
* Create Russian.nsh
* Update nsis.rs
* Create nsis-russian.md
2024-02-01 11:25:11 +01:00
Naman Garg
d6c7568c27
feat(bundler): Add files
option to the AppImage Configuration. ( #8720 )
...
* Add `files` option to Appimage
* Add .changes file
2024-02-01 02:53:26 +02:00
thewh1teagle
435d7513e4
feat: add webdriver options for windows ( #8609 )
...
* feat: add webdriver options for windows
* add change file, camel case
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-01-31 15:49:43 -03:00
Lucas Fernandes Nogueira
af61023273
refactor(core)!: Window::close triggers RunEvent::CloseRequested ( #8710 )
...
* refactor(core): Window::close triggers RunEvent::CloseRequested
* Update .changes/runtime-wry-window-close-event.md
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
* add destroy [skip ci]
* change files
* delete files
* fix tests
* fix tests
* fix test impl of the close flow
* fmt
* build bundle
---------
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
2024-01-31 14:54:49 -03:00
Lucas Fernandes Nogueira
aa758a850f
refactor(core): delete the command module ( #8716 )
2024-01-31 14:02:52 -03:00
Amr Bashir
9eaeb5a8cd
refactor: refactor parent APIs on WindowBuilder
( #8622 )
...
* refactor: refactor parent APIs on `WindowBuilder`
closes #8587 #1643
* fix build
* clippy
* support parent in JS and config
* change files
* fix build
* clippy
* fix doctests
* fix linux build
* fix doctests
* update docs
* fix api, update example to use JS API
* fix merge
* lint
* fix tests on windows
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-01-31 13:59:14 -03:00
Amr Bashir
a2fc3a6357
feat(api/window): add visible-on-all-workspaces, closes #8652 ( #8657 )
...
* feat(api/window): add visible-on-all-worksapces, closes #8652
* fix build and generate schema
* Update .changes/api-set-visible-on-all-workspaces.md
* revert permissions
* fix alias
* revert set_icon change
* add missing permission
---------
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2024-01-31 12:36:39 -03:00
Amr Bashir
e1eb911f5e
fix(menu): ensure init & drop is done on main thread ( #8582 )
...
* fix(menu): ensure init & drop is done on main thread
* move macros back
* fix doctests
* fix macos doctests
* generate inner types and add drop implementation on inner
* clippy
* fix leftoever merge conflicts
* fix doctests
* update api example
* add missing change file
* move macro
* fix tray import
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-01-31 12:01:05 -03:00
Amr Bashir
58fe2e812a
fix: improvements and ipc fixes for loading window content using custom protocol ( #8670 )
...
* fix: improvements and ipc fixes for loading window content using custom protocol
closes #5478
* Discard changes to tooling/cli/Cargo.lock
* clippy
* fix tests
* typo
* fix webviewurl deserialize
* resolve todo, fixes
* fmt
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-01-31 09:38:25 -03:00
Lucas Fernandes Nogueira
00e1567584
refactor(core): exit() and restart() triggers ExitRequested and Exit ( #8708 )
...
* refactor(core): exit() and restart() triggers ExitRequested and Exit
* update docs
* update doc
2024-01-30 12:10:22 -03:00
Kasper Seweryn
b3209bb28b
fix(cli): disable global gitignore during tauri.conf.* lookup ( #8688 )
...
* fix: disable global gitignore
There are cases when people use git to manage their dotfiles in the home directory. When a tauri projects uses other name than `src-tauri` for the rust source code, the lookup may fail if there's a global gitignore.
* change file
2024-01-29 17:39:05 +02:00
Lucas Fernandes Nogueira
ec9818accb
refactor(core)!: App::run_iteration improvements ( #8696 )
...
* refactor(core): App::run_iteration improvements
* lint
* fixes
* fix exit
* Apply suggestions from code review
Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
* update cargo.toml
* booooool
* fix mock runtime
* fix doctests
* fix doctest againrrrr
---------
Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
2024-01-29 10:52:44 -03:00
Andrew
9cb9aa7978
fix(cli): add MaybeWorkspace to license field ( #8672 )
...
* Add MaybeWorkspace to license field
* Fix last changes
* Fix formatting
* Add change .MD file
2024-01-26 23:46:51 +01:00
Lucas Fernandes Nogueira
1878766f7f
feat(cli): migrate allowlist to new ACL ( #8667 )
2024-01-24 16:57:40 -03:00
Lucas Fernandes Nogueira
c77b40324e
refactor(core): add support to multiple webviews on a Tauri window ( #8280 )
...
* feat: update to latest wry
* wry dev branch [skip ci]
* fix linux [skip ci]
* refactor(runtime): split webview and window types
* split dispatch
* implement create_webview
* move webview message
* wip webview mod
* create webview manager, finish webview struct and builder
* fix tests and docs
* rename WindowUrl to WebviewUrl
* update examples
* event refactor
* update JS API
* fix events
* update example
* add WebviewWindow class on JS
* fix macos build
* allow creating window+webview on the same runtime call
* rename tauri://window-created to tauri://webview-created
* Window::add_child
* use inner_size from webview on macOS
* add multiwebview example
* automatically resize webviews on window resize
* fix tests
* set_position, set_size
* position, size getters
* set_focus
* add close fn
* update mock runtime
* lint [skip ci]
* fix inner_size getter [skip ci]
* import hwnd [skip ci]
* update webview bound ratios on set_size/set_position
* add auto_resize option
* fix android
* fix build on windows
* typo
* with_webview isnt desktop only
* add WebviewWindow rust struct (and builder)
* fix build on android
* license header
* fix macos/windows
* fix macos build
* resolve todo
* handle window not found
* hide unstable features
* document unstable feature [skip ci]
* webview plugin permissions
* hide more stuff
* fix doctests
* typos
* add change files
* fix examples
* rename hook
2024-01-24 11:05:18 -03:00
Lucas Fernandes Nogueira
74a2a6036a
chore: add change files for #8428 ( #8661 )
2024-01-23 13:19:51 -03:00
Amr Bashir
7f033f6dcd
fix(core): fix undecorated window resizing, #8519 ( #8537 )
...
* fix(core): fix undecorated window resizing, fixes #8519
* js api
* fix invoke call
* Update tauri-window-start-resize-dragging.md
* clippy
2024-01-18 19:34:55 +02:00
Amr Bashir
9f8037c288
fix(core): clear window surface for transparent windows ( #8633 )
...
* fix(core): clear window surface for transparent windows
closes #8632
this may conflict with `tauri-egui` rendering to the surface so we may need to add an option to disable internal rendering
* fix build
2024-01-18 18:35:20 +02:00
github-actions[bot]
e0b38d7434
Apply Version Updates From Current Changes ( #8438 )
...
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2024-01-16 18:11:50 -03:00
Lai Zn
8032b22f2a
feat: enable socks-proxy for bundler download ( #8596 )
...
* feat: enable socks-proxy for bundler download
* change file
2024-01-16 04:03:35 +02:00
Lucas Nogueira
d621d3437c
feat: add tracing (port from #8289 ) ( #8607 )
...
* feat(tracing): add IPC tracing
* span for deserialization
* trace spans for IPC command handlers
* fix spans usage
* app tracing [skip ci]
* window tracing
* fix run never resolving all spans
* fix draw not entered
* change level
* feat(core): Manager::emit_filter and optimize serialization (#7512 )
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
* event spans
* lint & fix tests
* change eval to run sync
* fix instrument
* update wry
* change separator
* Update core/tauri/src/plugin.rs
Co-authored-by: Jonas Kruckenberg <118265418+CrabNejonas@users.noreply.github.com>
* Update core/tauri/src/window.rs
Co-authored-by: Jonas Kruckenberg <118265418+CrabNejonas@users.noreply.github.com>
* Update core/tauri/src/window.rs
Co-authored-by: Jonas Kruckenberg <118265418+CrabNejonas@users.noreply.github.com>
* Update core/tauri/src/window.rs
Co-authored-by: Jonas Kruckenberg <118265418+CrabNejonas@users.noreply.github.com>
* Update core/tauri/src/window.rs
Co-authored-by: Jonas Kruckenberg <118265418+CrabNejonas@users.noreply.github.com>
* instrument separators
* remove on_event trace
* skip all arguments on App::build tracing
* ipc spans adjustments
* delete change file
* improve how request and response are added as values (serialize)
* do not run evalScript sync on android :( freezes the app
* wry 0.35.2
* add change file
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Co-authored-by: Jonas Kruckenberg <118265418+CrabNejonas@users.noreply.github.com>
2024-01-16 02:37:50 +02:00
Fabian-Lars
97e3341299
fix(api.js): mock __TAURI_INTERNALS__
in mockIPC
and mockWindows
( #8534 )
...
* fix(api.js): mock `__TAURI_INTERNALS__` in `mockIPC` and `mockWindows`
* mock internals.invoke instead of internals.ipc
2024-01-04 01:37:27 +02:00
Lucas Fernandes Nogueira
0ec28c39f4
feat(cli): migrate tauri-build version ( #8529 )
...
* feat(cli): migrate tauri-build version
This changes the migrate command to also migrate the tauri-build dependency to v2, previously it only updated the tauri dependency.
* lint
2024-01-02 15:24:50 -03:00
pashokitsme
29ced5ceec
feat: add WindowBuilder::on_download
, closes #8157 ( #8159 )
...
* on_download_started & on_download_completed setters
* macos: default handler fn if not set
* remove default macos handler
* doc comments
* unify hooks, change files
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2023-12-30 11:46:53 -03:00
Palash Bansal
27bad32d4d
feat: Add files field in macos build config, closes #3290 ( #7798 )
...
* Add appContents field in macos tauri config.
* Change MacConfig::appContents to MacConfig::files to make it similar to DebConfig::files.
* Change appContents to files in helloworld/tauri.conf.json
* use common::copy_dir helper
* add change files [skip ci]
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2023-12-28 12:10:50 -03:00
Amr Bashir
4f73057e6f
refactor!: match target triple for TAURI_ENV_ARCH
( #8486 )
...
* refactor!: match target triple for `TAURI_ENV_ARCH`
* fix build
* Update .changes/cli-hooks-env-vars-breaking.md
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
* Update tooling/cli/ENVIRONMENT_VARIABLES.md
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
---------
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2023-12-28 12:10:12 -03:00
Amr Bashir
cb640c8e94
fix(runtime-wry): propagate wry file drop event to tao event loop, closes #8206 ( #8393 )
...
* fix(runtime-wry): propagate wry file drop event to tao event loop
* fix build
* always block default OS file drop behavior
* Update .changes/runevent-filedrop.md [skip ci]
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2023-12-28 10:20:24 -03:00
Olivier Lemasle
091100acbb
feat(bundler): Add RPM packaging, closes #4402 ( #5202 )
...
* feat(bundler): Add RPM packaging
* feat(bundler): Update 'rpm' to 0.13.1
* Fix fmt
2023-12-23 18:38:15 +01:00
Fabian-Lars
41990cd344
fix(cli): Handle target triples with 4 components ( #8448 )
...
* fix(cli): Handle target triples with 4 components
Follow up of #8321 which broke the `TAURI_ENV_` vars for linux, windows and ios-sim
* use host for platform as is
* clippy
2023-12-20 14:14:49 -03:00
Amr Bashir
2032228cad
refactor!: remove GlobalWindowEvent
type ( #8430 )
...
* refactor!: remove `GlobalWindowEvent` type
* takee references instead
2023-12-19 14:20:00 -03:00
Lucas Nogueira
a9b87c057d
Merge branch '1.x' into dev
2023-12-19 13:52:53 -03:00
Lucas Nogueira
6cd6d3fb32
chore(utils): add change file for #7964
2023-12-19 12:48:05 -03:00
Lucas Nogueira
30c5d86f88
fix: bump tauri-runtime-wry for #8213
2023-12-19 11:33:35 -03:00
github-actions[bot]
e44b36fea4
Apply Version Updates From Current Changes ( #8274 )
...
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2023-12-19 11:03:26 -03:00
Lucas Fernandes Nogueira
effe5871af
fix(core): scope checks on Android ( #8420 )
...
* fix(core): scope checks on Android
On Android, when we call canonicalize() on "/data/user/0/appid" (which is the data dir), the result is a "/data/data/appid" path, so we need to adjust our scope for that.
* clarify code
* apply the logic to all targets
2023-12-19 10:19:26 -03:00
Lucas Fernandes Nogueira
b59f2f54e7
feat(core): expose scope::fs::Scope::new ( #8432 )
2023-12-18 21:29:12 -03:00
Amr Bashir
50a3d170f2
fix(core/dialog): reconstruct path using appropriate separator, closes #8074 ( #8408 )
...
* fix(core/dialog): reconstruct path using appropraite separator, closes #8074
* Update dialog-window-forward-slash.md
* Update dialog.rs
* Update core/tauri/src/endpoints/dialog.rs
---------
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2023-12-18 21:08:18 -03:00
Lucas Fernandes Nogueira
11a1529d6a
feat(core): set CORS headers on protocol errors ( #8419 )
...
* feat(core): set CORS headers on protocol errors
This ensures the frontend can read the error message instead of just showing a CORS error
* fix statuscode
2023-12-18 20:54:40 -03:00
Amr Bashir
9b230de7bc
fix(utils/config): fix parsing f64
values, closes #8252 ( #8407 )
2023-12-18 18:18:44 -03:00
Amr Bashir
428ea6524c
feat(api): expose Resource
class ( #8370 )
...
* feat(api): expose `Resource` class
continuation of https://github.com/tauri-apps/tauri/pull/8276
* Apply suggestions from code review
* fmt
---------
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2023-12-18 18:16:21 -03:00
Lucas Fernandes Nogueira
0d0501cb7b
refactor(clipboard): use arboard instead of tao closes #8177 ( #8394 )
...
* refactor(clipboard): use arboard instead of tao closes #8177
* update api lock
* add change file
2023-12-14 13:41:20 -03:00
Amr Bashir
1c582a942e
refactor(api): generate types next to modules ( #8392 )
...
* refactor(api): generate types next to modules"
this fixes an issue with `moduleResolution: node`
* change file
* Update api-module-resolution-node.md
2023-12-14 13:27:48 -03:00
Amr Bashir
ef21b681e2
refactor(api): generate types next to modules ( #8391 )
...
* refactor(api): generate types next to modules"
this fixes an issue with `moduleResolution: node`
* change file
* Update api-moduleresolution-node.md
2023-12-14 13:27:31 -03:00
Alexandre Dang
3c371aa8ee
feat(core): add test::test::get_ipc_response, closes #8199 ( #8228 )
...
* feat(core): Add additional functions to the
* Add documentation and cleanup the code
* Improve and add tests to helper functions
* Clean unecessary code and correct tests
* Make `Ipc` and `IpcKey` public
* Open `Ipc` with public functions
* Update core/tauri/src/test/mod.rs
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
* cleanup, change file
---------
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
Co-authored-by: Lucas Nogueira <lucas@crabnebula.dev>
2023-12-14 11:52:45 -03:00
Alexandre Dang
db12777742
feat(core): allow the MockRuntime
to call a command and get a return value + fix doctest ( #8380 )
...
* Add `get_ipc_response` to the `MockRuntime`
* Fix `MockRuntime` doctests
* Add support for raw ipc
* cleanup, add change file
* only a single get fn
---------
Co-authored-by: Lucas Nogueira <lucas@crabnebula.dev>
2023-12-14 11:52:25 -03:00
Guillem Córdoba
5848b4e8e9
Fixed channel deserialisation in iOS ( #8386 )
...
* Fixed channel
* Change file
2023-12-14 09:25:28 -03:00
github-actions[bot]
f9c97b7e5b
Apply Version Updates From Current Changes (v1) ( #8377 )
...
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2023-12-13 14:43:54 -03:00
Amr Bashir
5ff9d4592a
fix(bundler/nsis): only kill processes of current user ( #8390 )
...
* fix(bundler/nsis): only kill processes of current user
Co-authored-by: FabianLars-crabnebula <fabianlars@crabnebula.dev>
* change file
---------
Co-authored-by: FabianLars-crabnebula <fabianlars@crabnebula.dev>
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
2023-12-13 18:57:32 +02:00
Amr Bashir
777ddf434a
fix(bundler): unset NSISDIR
and NSISCONFDIR
when running makensis
( #8376 )
...
closes #8359
2023-12-12 12:17:03 +02:00
Sean Boult
803c3a794d
feat(cli): expose CLI signer flags as environment variables ( #8327 )
...
* feat(cli): expose signer flags as environment variables
* Update .changes/cli-signer-env-vars.md
2023-12-12 11:13:30 +02:00
Michael Howell
f98ce5aa47
fix: fix incorrect predefined menu item for Close Window ( #8328 )
...
* Fix incorrect predefined menu item for Close Window
* change file
---------
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
2023-12-12 00:29:55 +02:00
github-actions[bot]
61cc7d9c5a
Apply Version Updates From Current Changes (v1) ( #8203 )
...
* apply version updates
* fmt
---------
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
Co-authored-by: amrbashir <amr.bashir2015@gmail.com>
2023-12-01 03:05:05 +02:00
i-c-b
977a39f4f7
fix(bundler): migrate WebView2 offline installer to shorturl ( #8292 )
2023-11-29 03:51:42 +02:00
Lucas Nogueira
5e05236b49
feat(core): add tracing for vital functionality closes #5204 ( #8289 )
...
* feat(core): add tracing for vital functionality
* Update core/tauri-runtime-wry/src/lib.rs [skip ci]
* Update Cargo.toml [skip ci]
* tracing feature
* wry 0.24.6
* add change tag
* add tracing to CI test
* enhance spans for update check
* remove app from debug impl
2023-11-27 16:56:46 +02:00
Lucas Nogueira
b3e53e7243
feat(core): add AssetManager::iter ( #8288 )
...
This new function allows users to iterate on all embedded assets, important if you want to AssetManager::get an asset you are not sure exists.
2023-11-23 16:12:38 +02:00