Commit Graph

1829 Commits

Author SHA1 Message Date
Brendan Allan
57612ab249
feat: add TSend generic to Channel (#10139)
* add TSend to Channel

* add changeset

* fix tray Channel

* Update .changes/ipc-channel-generic.md

---------

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2024-07-10 10:03:20 -03:00
Tony
afb102c59b
fix(runtime-wry): window edge not working after setting resizable false and decorated false dynamically (#10211)
* Fix window edge not working
after setting resziable false and decorated false dynamically

* Fix example don't go crazy on resize

* cargo fmt
2024-07-08 15:24:55 +03:00
zrq8
24aaf0f5af
docs(tauri-macros): fix typo in documentation of do_menu_item macro (#10200) 2024-07-04 18:03:26 +02:00
Tony
11aa7743e7
enhance!(nsis): use !ifmacrodef for installer hooks (#10177) 2024-07-03 05:48:22 +03:00
Lucas Fernandes Nogueira
55733aba9c
fix(core): iOS compilation without the wry feature (#10176)
Ref https://github.com/tauri-apps/plugins-workspace/pull/1402
2024-07-03 05:40:01 +03:00
Jason Tsai
7bc6a2a1d6
feat(macos): support changing title bar style dynamically, close #9763 (#9788) 2024-07-03 05:36:51 +03:00
Amr Bashir
a7354f9a81
feat(core): mark AppHandle::restart and process::restart as diverging functions (#10171)
closes #10160
2024-07-02 07:58:34 -03:00
github-actions[bot]
ff79161b0d
apply version updates (#10166)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-07-01 23:30:21 -03:00
Lucas Nogueira
f5b121be6e
Revert "apply version updates (#9926)"
This reverts commit 1cc9aa4b66.
2024-07-01 23:14:57 -03:00
github-actions[bot]
1cc9aa4b66
apply version updates (#9926)
Co-authored-by: FabianLars <FabianLars@users.noreply.github.com>
2024-07-01 22:40:01 -03:00
Tony
911242f092
feat!(core): add bundle createUpdaterArtifacts configuration (#9883)
* Add updater field

* Don't sign updaters when updater field is false

* Clippy

* Add updater to bundle migration

* Format

* Add updater config to api example

* No warning if update is not enabled

* Build

* Add change file

* We don't generate updater for dmg package

* Warning only for v1 compatible

* clean up

* More clean up

* little bit more

* Apply suggestions from code review

Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>

* Revert license header change

* Remove option around pubkey and msi args

* More migration tests

* Refactor private_key getter

* Only generate signature for updater for v1 compat

* Format

* Use map_err instead of anyhow context

* Don't generate updater for api example

* Fix misaligned comment

* Rename `updater` to `createUpdaterArtifacts`

* Revert changes in helloworld example

* Add warning for v1 compatible

* Update .changes/separate-updater-field.md

Co-authored-by: Lucas Nogueira <118899497+lucasfernog-crabnebula@users.noreply.github.com>

* update error messages [skip ci]

---------

Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
Co-authored-by: Lucas Nogueira <118899497+lucasfernog-crabnebula@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-07-01 08:34:58 -03:00
Simon Hyll
e7fd7c60d6
docs: fix broken link (#10147) 2024-06-28 12:48:28 +02:00
Amr Bashir
3afe828940
refactor!: change Webview::navigate to return result (#10134)
closes #9935
2024-06-27 09:43:34 -03:00
Amr Bashir
e93ca1df3b
fix(core): fix InvokeBody::Raw deserialization (#10138)
closes #9948
2024-06-27 06:55:49 -03:00
Simon Richard
167b51a8de
feat: improve deserialization errors by using serde-untagged on enums (#9952)
* Use serde-untagged instead of derive trait for capabilities structs

* Update core/tauri-utils/Cargo.toml

* improve errors for other untagged enums

* clippy

* add tests, fix deserialization

* use schemars attribute instead

---------

Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-06-26 17:54:49 -03:00
Tony
878198777e
feat(schema): make acl permissions schema unique (#9999)
* Make acl permissions schema unique

* Add change file

* use a hashset

* fix cli

* Revert "use a hashset"

This reverts commit 778d316f34.

* Revert "fix cli"

This reverts commit cfc0e39182.

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-06-26 17:13:55 -03:00
olexiyb
1f6e478c84
fix: #7614 - rebuild every time on macos because of Info.plist changes (#9878)
* fix: #7614: rebuild every time on macos because of Info.plist changes

* apply proposed patch from lucasfernog

* Update core/tauri-codegen/src/context.rs

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

* Update core/tauri-codegen/src/context.rs

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

* added changes file

---------

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2024-06-26 08:08:14 -03:00
Tony
7d85f7cf82
chore(deps): update tao to 0.28.1 (#10130) 2024-06-26 09:18:29 +03:00
Tony
f21029b1bc
feat!(nsis): add an option to customize start menu folder (#9994) 2024-06-26 09:17:02 +03:00
Tony
a15a97594f
chore: generate schema (#10129)
* Generate schema

* -

* Revert "-"

This reverts commit a456975cd2.
2024-06-26 09:04:01 +03:00
Tillmann
bb50315c50
refactor: Improve Automated Permission Documentation Generation (#10113)
* generate permission table with html

* cargo fmt

* clippy fix

* clippy fix

---------

Co-authored-by: Lucas Nogueira <118899497+lucasfernog-crabnebula@users.noreply.github.com>
2024-06-26 07:59:47 +03:00
Amr Bashir
6c9e24a683
fix: fix new clippy errors (#10054)
* fix: fix new clippy errors

* more clippy
2024-06-24 20:54:43 +03:00
Tony
cee0bfcd6c
feat(core): make all tray and menu permissions enable by default (#10092)
* Make all tray and menu permissions on by default

* Update example capabilities

* Add change file
2024-06-24 19:50:06 +03:00
Amr Bashir
d4c908cfb8
fix(deps): update rust crate windows to 0.57 and webview2-com to 0.31 (#10048)
* fix(deps): update rust crate windows to 0.57 and webview2-com to 0.31

* revert fmt

* wry@0.41
2024-06-24 19:20:47 +03:00
Amr Bashir
669b9c6b5a
feat(core): set gtk app id (#9621)
* feat(core): set gtk app id

ref: https://github.com/tauri-apps/tao/issues/910

* Update core/tauri-runtime-wry/Cargo.toml

* Discard changes to Cargo.lock
2024-06-24 19:20:03 +03:00
Matt Nield
82c2eb3284
chore: Correct grammar typo in documentation of generate_handler macro (#10110) 2024-06-24 09:01:44 +03:00
chip
3bbfac8f3b
don't use invoke key template name in comment (fix #10084) (#10088) 2024-06-18 19:42:40 +03:00
Tillmann
b2ff840e83
Feat: Improved Security Docstrings and Schema Newline Handling (#10028)
* Refactor Code Docs

* updated schemas

* cargo fmt whitespace fix

* downgrade cargo-platform to 0.1.7

---------

Co-authored-by: Lucas Nogueira <118899497+lucasfernog-crabnebula@users.noreply.github.com>
2024-06-13 18:31:12 +03:00
Yasunari Fujieda
4ca297b35b
fix(core): check if listener.handler is undefined (#10007) 2024-06-12 19:32:06 +03:00
Fabian-Lars
c98f385cb5
fix(api.js): Export mocks module (#10044) 2024-06-12 19:22:55 +03:00
Tony
5b769948a8
feat(core): add include_image macro (#9959) 2024-06-06 06:03:11 +03:00
Amr Bashir
148f048871
feat(api): add defaultWindowIcon to app module (#9979) 2024-06-05 19:17:06 +03:00
Tony
3ab170917e
feat(nsis): add an option to disable compression (#9932) 2024-06-05 19:07:49 +03:00
thewh1teagle
656a649744
feat(cli): add macos hardened runtime signing config option (#9318)
* feat(cli): add macos signing config option

* rename option to hardened_runtime

* chore(cli): use default true in hardened runtime config

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-06-05 18:04:08 +02:00
Amr Bashir
f29b788110
fix(core/wry): implement resizing natively on Windows (#9862)
closes #7388
closes #9510
closes #9464

ref #9268
ref #9053
ref #8770
ref #8750
ref #4012
2024-06-05 19:03:22 +03:00
Amr Bashir
fafc238f72
feat: add bundle > homepage option (#9977)
* feat: add `bundle > homepage` option

If unspecified, it will fallback to `homepage` define in Cargo.toml

closes #9949

* Update settings.rs
2024-06-05 19:01:48 +03:00
Tony
f955f7b490
chore(deps): migrate dirs_next to dirs (#9929) 2024-06-04 06:03:25 +03:00
Tony
e6e17ad1c8
fix(core): add std feature to raw-window-handle (#9954) 2024-06-04 05:19:54 +03:00
Amr Bashir
ddaabda365
feat: expose WebviewWinowBuilder::on_download (#9922)
* feat: expose `WebviewWinowBuilder::on_download`

closes #9921

* fix tests
2024-06-03 21:14:00 +03:00
Lucas Fernandes Nogueira
3cca5c2be8
chore(cli): update to new buildConfig format (#9924)
* chore(cli): update to new buildConfig format

the existing usage has been deprecated and will be removed on gradle plugin v9, as Android Studio warns

* add config to our lib too
2024-05-30 16:56:11 -03:00
github-actions[bot]
a0a76cea2f
Apply Version Updates From Current Changes (#9911)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-05-29 13:58:51 -03:00
Amr Bashir
dfd05441c7
Revert "feat(core): add app-region: drag to data-tauri-drag-region (#9789)" (#9860)
* Revert "feat(core): add `app-region: drag` to `data-tauri-drag-region` (#9789)"

This reverts commit ae6b13dfc0.

* Update pre.json

* change files

* Discard changes to .changes/pre.json
2024-05-29 12:20:05 -03:00
Simon Hyll
5e8aa6f946
fix: workaround for broken example (#9906)
`schemars` improperly parses the docstring, causing a missing newline before the codeblock closing tics.
2024-05-30 00:16:29 +09:00
Tillmann
4942d809ab
feat: Auto Generation of ACL Schema File for Documentation (#9903)
* Add auto generated acl schema files for docs

* update CI

---------

Co-authored-by: Lucas Nogueira <118899497+lucasfernog-crabnebula@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@crabnebula.dev>
2024-05-29 09:32:58 -03:00
github-actions[bot]
594e3e2939
Apply Version Updates From Current Changes (#9869)
* apply version updates

* fix bundler version

* update lockfile

---------

Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-05-29 00:10:20 -03:00
Amr Bashir
265c23886e
refactor(cli&bundler): avoid renaming main executable and preserve cargo name (#9375)
* refactor(cli&bundler): avoid renaming main executable and reserve cargo name

closes #8109
closes #8349

* fix bundler

* fix test

* Discard changes to core/tauri-build/Cargo.toml

* revert Cargo.toml changes

* Discard changes to Cargo.lock

* Discard changes to tooling/cli/Cargo.lock

* lock file

* use product name for installers

* only warn for sign on windows

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2024-05-28 13:50:41 -03:00
Amr Bashir
e8f6eb59a5
refactor(core)!: include all args in Env.args_os, closes #9430 (#9552)
* refactor(core)!: include all args in `Env.args_os`, closes #9430

* skip first arg on restart fn

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-05-28 13:49:44 -03:00
Amr Bashir
19b696b61c
fix(build): avoid copying resource onto itself (#9710)
* fix(build): avoid copying resource onto itself

closes #9666

* canonicalize once

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-05-28 13:48:52 -03:00
Amr Bashir
ccc3ea729d
fix(codegen): use TAURI_ENV_TARGET_TRIPLE to determine the current platform-specific config (#9646)
* fix(codegen): use `TAURI_ENV_TARGET_TRIPLE` to determine the current platform-specific config

* set env var

* Update .changes/tauri-codegen-use-correct-env.md

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-05-28 13:48:24 -03:00
Jason Tsai
adac2185a3
fix(android): check version code in release mode (#9898) 2024-05-28 11:37:38 -03:00