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
Ning Sun
ef9fb982f8
feat: upgrade handlebars to 5.0 ( #8615 )
2024-01-16 17:21:18 +02: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
5cb196976e
fix(examples): Update web example to latest dialog plugin ( #8567 )
2024-01-09 02:03:23 +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
Lucas Fernandes Nogueira
af565c2a20
fix(macos): allow canceling data-tauri-drag-region
maximization #8312 ( #8487 )
2023-12-28 10:03:14 -03:00
Jérôme Rx
3e00116e9f
rename appimage.sh => build_appimage.sh in error ( #8295 )
2023-12-28 08:04:43 -03:00
Amr Bashir
0ea1a47254
ci: use default options for repository-dispatch ( #8455 )
2023-12-27 13:00:39 -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
Lucas Fernandes Nogueira
7e4580afed
fix(cli): remove test only relevant to v1 branch, adjust migration test ( #8451 )
2023-12-20 18:35:50 -03: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
renovate[bot]
6892a8cbc1
chore(deps) Update dependency eslint-plugin-security to v2 (dev) ( #8440 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-20 12:14:39 -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
dependabot[bot]
ea03adee74
chore(deps-dev): bump vite from 4.4.9 to 4.4.12 in /examples/api ( #8342 )
...
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite ) from 4.4.9 to 4.4.12.
- [Release notes](https://github.com/vitejs/vite/releases )
- [Changelog](https://github.com/vitejs/vite/blob/v4.4.12/packages/vite/CHANGELOG.md )
- [Commits](https://github.com/vitejs/vite/commits/v4.4.12/packages/vite )
---
updated-dependencies:
- dependency-name: vite
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-18 18:42:51 -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
50e9caad64
ci: access cli release id directly ( #8398 )
2023-12-18 18:17:39 -03:00
Amr Bashir
31b3545e31
ci: access cli release id directly ( #8397 )
2023-12-18 18:17:33 -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
Amr Bashir
e5cc72eb40
ci: fix msrv tests ( #8409 )
...
* ci: remove `is-terminal` from crate pinning step
* pin cross-beam
* crossbeam-utils
* image
* linux-raw-sys
* fix version
* comon
* ha?
* tar
* now?
* rustix
* kill me, kill me now
* tar first???
* is-terminal
* I am dying
* remove rustix
* image
2023-12-18 18:15:28 -03:00
Amr Bashir
face0b6a89
chore: cleanup issue and PR templates ( #8410 )
...
* chore: cleanup issue and PR templates
* Delete .github/config.yml
* Update bug_report.yml
* Update .github/PULL_REQUEST_TEMPLATE.md
Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
* Update PULL_REQUEST_TEMPLATE.md
---------
Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
2023-12-18 18:15:04 -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
Amr Bashir
c1bc4d2948
chore(cli/help): mention the need for a second --
in tauri dev
( #8388 )
...
* chore(cli/help): mention the need for a second `--` in `tauri dev`
ref: https://github.com/tauri-apps/tauri/issues/8382#issuecomment-1854016310
* add example to clarify [skip ci]
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2023-12-14 09:20:52 -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
30adc8d45d
ci: fix publish @tauri-apps/api
to latest
instead of next
( #8371 )
...
* ci: fix publish `@tauri-apps/api` to `latest` instead of `next`
closes #8335
* just remove tag
2023-12-12 12:17:11 +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
Ananth
b6ca8885ff
feat(cli): improve error message with invalid target for build
( #8321 )
2023-12-12 00:06:43 +02:00
Lucas Fernandes Nogueira
327c7aec30
fix(ci): skip installing unnecessary deps ( #8277 )
2023-12-01 17:06:59 +02:00