Commit Graph

4419 Commits

Author SHA1 Message Date
阿良仔
1ca69bcf2f
fix(clipboard): build issues on wayland (fix #8515) (#8546)
* fix(clipboard): fail to build on wayland

* specify exact version

* bump MSRV to 1.63

* revert msrv changes

---------

Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
2024-01-15 19:52:49 +02:00
Naman Garg
6bdba1f330
fix(bundler/deb): use lintian-compliant permissions , closes #7992 (#8585) 2024-01-15 18:08:07 +02:00
Fabian-Lars
b546b42db7
fix(core): Retain order of map keys in ipc, fixes #7922 (#8577)
* fix(core): Retain order of map keys in ipc, fixes #7922

* enable dep on http-api feature instead of http-request

* Create fix-formbody-order.md

* Update fix-formbody-order.md
2024-01-10 21:03:25 +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
Fabian-Lars
67d7877f27
fix(cli): Watch workspace members if tauri dir is workspace root (#8520)
* fix(cli): Watch workspace members if tauri dir is ws root

See title. This PR also includes a fix/workaround for paths with funny characters that may not make the glob expansion panic.

Fixes #8509

* extract into function

* cleanup
2024-01-04 01:37:05 +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
Jason Tsai
89911296e4
feat(bundler): codesign nested code on macos (#8259)
* feat(bundler): codesign nested code on macos

* chore: update changelog tag

* typo

* also sign stuff in the Libraries folder

tested this for spacedrive, which has a bunch of dylib inside the libraries folder

* Update .changes/mac-bundler-nested-code-sign.md [skip ci]

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2023-12-28 13:58:24 -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
Amr Bashir
8f8729d918
fix(core): allow canceling data-tauri-drag-region maximization on macOS, closes #8306 (#8312)
* fix(core): allow canceling `data-tauri-drag-region` maximization on macOS, closes #8306

* Update .changes/tauri-data-drag-region-macos-maximize.md

* fix typo

* cancel if mouse moves

* Update tauri-data-drag-region-macos-maximize.md

[skip ci]

* Update core/tauri/scripts/core.js [skip ci]

---------

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2023-12-28 09:13:48 -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
Amr Bashir
446fc99bbe
ci: use default options for repository-dispatch (#8456) 2023-12-27 13:00:37 -03:00
Amr Bashir
6e48837860
feat: re-export Url (#8474)
* feat: re-exoprt `Url`

`Url` is used/returned from public API, we should re-export it

* Update .changes/export-url.md
2023-12-27 12:59:26 -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
renovate[bot]
883e52153e
chore(deps) Update Tauri API Definitions (1.x) (#8449)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-20 14:16:58 -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
github-actions[bot]
5966812735
Apply Version Updates From Current Changes (v1) (#8396)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2023-12-20 13:50:17 -03:00
Amr Bashir
b44e9c0fcb
feat(bundler): redownload outdated/mis-hashed files (#8431)
* feat(bundler): redownload outdata/mis-hashed files

* change import location

* Update util.rs

* Update util.rs

* Update bundler-mishashed-files.md

* Update bundler-mishashed-files.md

* rename fn

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2023-12-20 12:46:19 -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
Fabian-Lars
b2f83f03a8
fix(core): Replace Rc with Arc to prevent crashes when sending events (#8402)
* fix(core): Prevent crash when sending events.

* add change file

* use dedicated type for windows refcell map

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2023-12-20 12:13:00 -03:00
Fabian-Lars
0a2175eabb
fix(cli): expand globs in workspace member paths (#8439)
* fix(cli): Expand globs in workspace member paths

fixes #8403

* unusued import

* into_iter

* return error instead of of empty vec

* Update dev-watcher-glob.md
2023-12-20 15:57:10 +02:00
Amr Bashir
645e1dcc6e
fix(core/updater): check if installer args are not empty before passing -ArgumentList closes #8296 (#8404) 2023-12-20 01:08:38 +02: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