Commit Graph

2189 Commits

Author SHA1 Message Date
Lucas Fernandes Nogueira
9fe846615b
fix(core): plugin permissions documentation heading (#10547)
Co-authored-by: Tillmann <28728469+tweidinger@users.noreply.github.com>
2024-08-13 03:58:44 +03:00
Lucas Fernandes Nogueira
3bec7b1595
feat(cli): add support to Svelte and Vue.js code on v1 migration (#10544)
* feat(cli): add support to Svelte and Vue.js code on v1 migration

* clippy
2024-08-12 13:45:42 +09:00
Lucas Fernandes Nogueira
3998570fd3
fix(cli): manifest v1 migration (#10540)
update features that got removed/renamed, and also migrate any core crate on any dependency table
2024-08-12 12:23:39 +09:00
Lucas Fernandes Nogueira
3beba92b5b
fix(cli): incorrect JS generated by frontend migration closes #10500 (#10542)
* fix(cli): incorrect JS generated by frontend migration closes #10500
2024-08-12 12:10:27 +09:00
Lucas Fernandes Nogueira
f3837d5b98
fix(cli): broken v1 updater migration, add TOML support, closes #10508 (#10539)
- make the v1 config migration more resilient by checking null values
- fix "targets: all" incorrectly migrating createUpdaterArtifacts when there's no updater configuration (this is problematic because this targets config is the default)
- migrate Tauri.toml
- add more tests
2024-08-12 11:56:13 +09:00
苏向夜
71d00646a9
feat(cli): detect project NPM package manager on init (#10504)
* feat(cli): improve init behavior to ask once

* chore(cli): bump version

* fix(clippy): fix clippy warning

* feat(cli): add `bun` and fix version bump msg

* refactor(cli): auto detect the package manager

* move function

* update change file

* update change file

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-08-11 18:33:26 -03:00
Sam Kearney
2d47352a07
fix(cli): make app_dir() logic consistent (#10418)
* fix(cli): Make app_dir() consistent by basing it on the explicit invocation directory rather than the current working directory

* resolve app paths before everything else

* fix xcode script

* fix test

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-08-11 09:44:15 -03:00
Yuri Astrakhan
0afee5ed80
chore: update brotli dependency to v6 (#10436)
* chore: update brotli dependency to v6

brotli v6 plays nice with other versions of the same crate

* add change file

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-08-11 08:23:31 -03:00
AHQ
bfc49cc7a1
refactor(android): Remove targetSdk from gradle config (#10558)
* refactor: remove targetSdk as it is being removed in DSL 9.0

* note

* fix: typo

* update: changelog

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

---------

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2024-08-11 07:06:14 -03:00
anatawa12
4bfe4880fb
fix: fails to build universal fat binary if main bin is renamed to another name (#10550)
* fix: fails to build universal fat binary if main bin is renamed to another name

* lint

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-08-11 06:56:53 -03:00
Maarten
bba1a44191
feat(cli): allow skipping rustfmt project reformatting when adding a plugin (#10457)
* feat(cli): allow skipping rustfmt project reformatting

* Apply suggestions from code review

* fixes, change file

* fix change file

---------

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2024-08-10 17:09:07 -03:00
rwv
008b9f7481
chore: generate provenance statements for npm package (#10477)
* chore: generate provenance statements for npm package

See also https://docs.npmjs.com/generating-provenance-statements#example-github-actions-workflow

* also add --provenance for covector publishes

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-08-10 15:48:04 -03:00
Norbiros
0bb7b0f352
feat: Add option to generate default permissions for inlined plugins (#10559)
* feat: Add option to allow all commands by default

* option to use a list of permissions, move logic to tauri-build

* fix plugin

* add utils change file

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-08-10 15:34:49 -03:00
github-actions[bot]
ab4e56f5d2
apply version updates (#10532)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-08-08 23:52:47 -03:00
Fabian-Lars
f5dfc02800
fix(core/cli): Add custom default implementation for ios config (#10533)
* fix(cli): Add custom `default` implementation for ios config

* fix change
2024-08-08 19:57:56 -03:00
Fabian-Lars
5f56cb0a8b
feat(cli): Upgrade gradle to 8.9 and gradle-android to 8.5.1 (#10507)
* feat(cli): Upgrade gradle to 8.9 and gradle-android to 8.5.1

* Update .changes/android-gradle-8-9.md

---------

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2024-08-08 08:48:54 -03:00
github-actions[bot]
393428e5c8
apply version updates (#10524)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-08-07 14:50:33 -03:00
Lucas Fernandes Nogueira
8dc81b6cc2
feat(core): add option for custom Xcode project template (XcodeGen) (#10496) 2024-08-07 13:17:01 -03:00
Lucas Fernandes Nogueira
02c00abc63
feat(core): add config for the minimum iOS version (#10495)
* feat(core): add config for the minimum iOS version

* revert api exapmle
2024-08-07 13:16:27 -03:00
Catalin Andrei Cacuci
a440a3f9d8
fix(bundler): Correct nsis pre-uninstall hook to post-uninstall (#10498)
* fix(bundler): Correct nsis pre-uninstall hook to post-uninstall

* Create change-pr-10498.md

* Update change-pr-10498.md [skip ci]

---------

Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
2024-08-05 19:15:45 +02:00
Lucas Fernandes Nogueira
2e8ab7bac1
fix(cli): v1 migration should add the updater plugin if it is enabled (#10481)
* fix(cli): v1 migration should add the updater plugin if it is enabled

* fix change tag

* move to process_updater

* Update tooling/cli/src/migrate/migrations/v1/config.rs

Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>

---------

Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
2024-08-05 10:00:33 -03:00
Lucas Fernandes Nogueira
a3cd9779a4
chore(cli): remove android open and ios open commands (#10480)
It is recommended to use `[android|ios] dev --open` or `[android|ios] build --open` instead as it properly sets up the requirements for developing and building apps with Tauri.
2024-08-05 09:57:54 -03:00
Lucas Fernandes Nogueira
8e1e15304e
feat(cli): check if Rust lib contains required Android and iOS symbols #10094 (#10483)
* feat(cli): check if Rust lib contains required Android symbols #10094

* check for ios aswell
2024-08-05 09:46:28 -03:00
Lucas Fernandes Nogueira
ca68689564
feat(cli): check if project identifier or lib name changed (#10479)
* feat(cli): check if project identifier changed

* implement ios check

* also check lib name

* clippy

* ensure_init from xcode-script

* fill change file [skip ci]
2024-08-05 09:45:18 -03:00
anatawa12
7e810cb2a3
fix: permission file uses ':' in file name (#10485)
* fix: permission file uses ':' in file name

* style: rustfmt
2024-08-05 09:45:00 -03:00
github-actions[bot]
b9a4410516
apply version updates (#10468)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-08-03 10:22:38 -03:00
Lucas Fernandes Nogueira
fb1933f174
fix(cli): android dev --open failing due to adb not finding device (#10467) 2024-08-03 10:04:26 -03:00
Lucas Fernandes Nogueira
206914fe8d
fix(cli): adb reverse failing in Node.js (#10466) 2024-08-03 09:47:50 -03:00
Lucas Fernandes Nogueira
88619e8914
feat: promote v2 to RC (#10434)
* feat: promote v2 to RC

* update changelog
2024-08-02 10:28:06 -03:00
Lucas Fernandes Nogueira
7ba67b4aca
refactor!: use localhost for development on Android devices and emulators or iOS simulators (#10437)
* feat(cli): use localhost on mobile!

* change cargo-mobile2

* use public network address on iOS device :(

* add change file

* actually breaking

* pin cargo-mobile2

* rename env var
2024-08-02 07:35:18 -03:00
Lucas Fernandes Nogueira
a5bfbaa62b
feat: add iOS frameworks config option, closes #9962 (#10393)
* feat: add iOS frameworks config option, closes #9962

* fix template

* typo
2024-08-02 07:35:03 -03:00
Oscar Beaumont
6755af2302
fix: Specta remote implementation for Channel (#10435)
* Update channel.rs
* Don't rely on `DataType` reexport
2024-08-01 16:26:52 +09:00
Lucas Fernandes Nogueira
24445d71de
fix(core): usage without the compression feature (#10432) 2024-07-31 18:40:02 -03:00
Lucas Fernandes Nogueira
1e0793b682
feat(core): fallback to file system for AssetResolver::get, closes #8411 (#10357)
* feat(core): fallback to file system for AssetResolver::get, closes #8411

Ports #10356 to v2

* fix test

---------

Co-authored-by: Chip Reed <chip@chip.sh>
2024-07-31 07:13:40 -03:00
Lucas Fernandes Nogueira
d5511c3117
feat(cli): add migration from 2.0.0-beta to 2.0.0-rc (#10395)
* refactor(cli): check tauri version on migration

* rc migration

* license headers

* fix tests

* add path

* update schema
2024-07-30 16:32:59 -03:00
chip
426d14bb41
check the main frame's origin in isolation.js (#10423)
* check the main frame's origin in isolation.js

* add changefile

* correct changefile tag

* use strict origin checking
2024-07-30 16:32:32 -03:00
Lucas Fernandes Nogueira
758d28c8a2
refactor: core plugin permissions are now prefixed core:, closes #10359 (#10390)
* refactor: core plugin permissions are now prefixed core:, closes #10359

* code review

* expand reserved plugin names

* fix

* add core:default permission set

* fix permission usage

---------

Co-authored-by: Tillmann <28728469+tweidinger@users.noreply.github.com>
2024-07-30 07:52:43 -03:00
Tillmann
a0841d509a
Add change file for #10360 (#10421) 2024-07-30 14:29:06 +09:00
chip
cf994a6bb0
add failable try_build for plugin builder (#10405)
* add failable try_build for plugin builder

* add changefile

* implement `Hash`, `PartialEq` for `BuilderError`

* mark config and acl items as unstable

give some doc tips if they need to be used from Rust

* Revert "mark config and acl items as unstable" [skip ci]

This reverts commit e23728edb6.
2024-07-29 10:51:56 -03:00
Lucas Fernandes Nogueira
289ae5555d
feat: re-enable TLS checks for Android and dev proxy (#10386)
* feat: re-enable TLS checks for Android and dev proxy

* update time
2024-07-29 10:43:59 -03:00
Vladimir Stoilov
7aeac39e7f
feat(core): make setting of gtk app id optional (#10397)
* feat(core): make setting of gtk app id optional

* Fix change file

* Update .changes/linux-option-gtk-app-id.md

Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>

* [skip ci] Update linux-option-gtk-app-id.md

* Update app.rs

* Update app.rs

---------

Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
2024-07-29 15:26:13 +02:00
Ernest M. van der Linden
498f405ca8
fix(core): Conf parsing error always displays tauri.conf.json file name even when using toml or json5 (#10404)
* Conf parsing error displays `tauri.conf.json` when using toml or json5

Conf parsing error always displays `tauri.conf.json` as path, even when using `Tauri.toml` or `tauri.conf.json5`

Example Error Message when using Tauri.toml:
Error unable to parse toml Tauri config file at
/Users/bla/repo/bla/bla/src-tauri/tauri.conf.json because
invalid TOML value, did you mean to use a quoted string? at line 41
column 7

* merge changefile pr into main pr

* Update and rename fix-conf-parsing-error-filepath to fix-conf-parsing-error-filepath.md

---------

Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
2024-07-29 14:54:21 +02:00
github-actions[bot]
2a402b4845
apply version updates (#10281)
Co-authored-by: FabianLars <FabianLars@users.noreply.github.com>
2024-07-29 07:27:56 -03:00
Brendan Allan
e1776946ad
fix(core): use specta's derive feature (#10362)
* use specta's derive feature

* use specta rc.15

* .changes file

* try patched specta

* specta rc.16

* Update .changes/specta-derive-feature.md

Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>

* Update specta-derive-feature.md [skip ci]

---------

Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
2024-07-24 12:47:51 +02:00
Jason Tsai
9546548ec0
fix(macos): set default title-bar style to Visible, close #10225 (#10297)
* fix(macos): set default title-bar style to `Visible`

* chore: add TODO
2024-07-17 06:40:38 +03:00
Amr Bashir
da25f73530
feat: add granular size constraints APIs (#10242) 2024-07-17 04:05:56 +03:00
Tony
9f0a5fceac
changes(nsis): move pre hooks before kill app (#10271) 2024-07-15 14:54:02 +03:00
Tony
d1df6be701
fix(bundler): warning for self contained updaters (#10270)
* Fix warning for self contained updaters

* Add change file
2024-07-15 16:18:48 +08:00
Tony
3c17fb64fd
Fix Webview.reparent pointing to wrong Rust API (#10277) 2024-07-14 19:20:56 +08:00
github-actions[bot]
6d965e9fbf
apply version updates (#10179)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-07-12 16:37:38 -03:00
Lucas Fernandes Nogueira
7c7fa0964d
feat(cli): iOS signing for CI usage (#9963)
* feat(cli): iOS signing for CI usage

* license headers

* change file

* chore: support more cert types

* xplicit method arg

* keep keychain alive

* fix early keychano drop

* set team id

* use common name as cert name
2024-07-12 11:08:55 -03:00
Amr Bashir
261c9f942d
refactor!(core & api): rename drag events for better consistency and clarity (#10170)
* refacotr!(core & api): rename drag events for better consistency and clarity

* more renames

* remove imports

* fix drag over listen

* update example

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-07-12 10:22:06 -03:00
Lucas Fernandes Nogueira
69dcfdfe0f
fix(build): skip rerun-if-changed when Info.plist do not exist (#10267) 2024-07-12 10:13:08 -03:00
Lucas Fernandes Nogueira
5d29229858
fix(codegen): icon rewriting always triggering build to rerun (#10268) 2024-07-12 10:12:58 -03:00
Amr Bashir
4c239729c3
fix(core): fix raw invoke body for isolation pattern (#10167)
* fix(core): fix raw invoke body for isolation pattern

The `isolation` pattern requests are made using JSON but the payload could be raw bytes, so we send the original `Content-Type`  from frontend and make sure to deserialize the payload using that one instead of `Content-Type` from request headers

* clippy

* disable plist embed in generate_context in tests

* change file

* docs [skip ci]

* move unused_variables [skip ci]

* last commit regression [skip ci]

* fix test

* add example, do not text encode raw request

* check type instead of contenttype

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-07-12 09:52:53 -03:00
Amr Bashir
c01e87ad46
refactor(cli/migrate): use oxc kit to parse and migrate js/ts files (#10198)
* refactor(cli/migrate): use `oxc` kit to parse and migrate js/ts files

closes #10192

* fix tests

* use majic-string to perserve formatting

* more comments

* Discard changes to package.json

* Update cli-migrate-enhancemnets.md

* Update cli-migrate-enhancemnets.md

* more context

* add missing quotes, rename getcurrent

* fix change file

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-07-12 09:03:30 -03:00
Amr Bashir
ba9590aa92
feat!: add Listener and Emitter traits (#9640)
* feat!: add `Listener` and `Emitter` traits

* keep only trait implementation

* change file

* fix doctests

* fix build
2024-07-12 09:01:40 -03:00
Amr Bashir
2b1ceb40d3
refactor(api)!: renamed getCurrent functions to avoid ambiguity (#10229)
* refactor(api)!: renamed `getCurrent` functions to avoid ambiguity

closes #10193

* Update .changes/get-current-ambguity.md

* rename `getAll` and update docs and examples
2024-07-11 14:26:15 +03:00
Tony
080b6e1272
enhance: use EventName on window's once and remove listener before calling handler (#10246)
* Refactor

* Revert event => void

* Change file
2024-07-10 19:59:01 +03:00
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
Amr Bashir
15e1259966
fix(cli): parse cargo--target-dir flag (#10234)
* fix(cli): parse cargo`--target-dir` flag

closes #10190

* clippy
2024-07-10 16:01:04 +03:00
Fabian-Lars
c734b9e3cd
feat(bundler/windows): Update wix to fix vulnerabilities and add arm support (#9861) (#10072)
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-07-08 15:51:26 +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
Amr Bashir
5998a90f3f
fix(bundler): update nsis_tauri_utils to 0.4.1 (#10184) 2024-07-08 13:33:40 +02:00
Amr Bashir
94136578bc
fix(cli/migrate): fix clipboard permissions migration (#10186)
closes #10185

The plugin has been updated recently and its permissions has changed.
2024-07-04 10:47:44 +03:00
Fabian-Lars
96f65fef36
fix(bundler): Fix updater bundler warning condition for v2 artifacts (#10188) 2024-07-04 10:47:14 +03: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
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
Amr Bashir
27838365a6
fix(cli): parse --profile=<profile> syntax (#10135)
* fix(cli): parse `--profile=<profile>` syntax

ref: https://github.com/tauri-apps/tauri/issues/6255#issuecomment-2192466839

* Update tooling/cli/src/interface/rust.rs

* safe check next arg

* add test

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-06-27 06:53:26 -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
Jesper L. Nielsen
1601da5b52
fix(cli): removed alpha channel from default IOS AppIcons (#10114)
* bug: removed alpha channel from default IOS AppIcons

According to Apple's human interface guideline
(https://developer.apple.com/design/human-interface-guidelines/app-icons)
transparent or icons with alpha channel are not allowed, and will be rejected
upon upload to Apple appstore.

* Update .changes/ios-non-transparent-icons.md
2024-06-26 21:10:16 +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
f21029b1bc
feat!(nsis): add an option to customize start menu folder (#9994) 2024-06-26 09:17:02 +03:00
Tony
35110dba21
fix(nsis): delete app data button gone on higher scaling (#10106)
* Fix delete app data button gone on high DPI

* Add change file

* change back translation template

* Use w string instead of t

* Add in some comment explaining PerMonitorV2
2024-06-26 09:01:34 +03:00
Fabian-Lars
61bbd8373f
fix(bundler/wix): Add AUTOLAUNCHAPP and LAUNCHAPPARGS public properties (#10117) 2024-06-26 06:27:12 +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
Tony
faf282ca6c
fix(nsis): use runtime ${If} check to clean up deep link on uninstall (#10103) 2024-06-24 10:48:02 +03:00
Tony
58821fc0e5
fix(nsis): esitmated size unit (#10086)
* Fix nsis esitmated size unit

* Add change file
2024-06-19 23:04:40 +02:00
Amr Bashir
3fd84cb3c9
fix(NSIS): rewrite license file with BOM (#10049)
* fix(NSIS): rewrite license file with BOM

closes #9031

This also includes a change to NSIS bundler to use UTF8 by default

* refactor and cleanup
2024-06-13 18:31:27 +03:00
Fabian-Lars
c98f385cb5
fix(api.js): Export mocks module (#10044) 2024-06-12 19:22:55 +03:00
Roy Laurie
79542f4d45
fix(cli): icon should render explicit svg text node fonts (fix: #10022) (#10039)
* fix(cli): icon should render explicit svg text node fonts (fix: #10022)

* fix(cli): icon should render explicit svg text node fonts (fix: #10022)

added a .change file for the fix
2024-06-12 04:25:11 +03:00
Pylogmon
f56cdc9e39
fix: missing depends for rpm package (#10016)
* fix: missing depends for rpm package

* chore: add changes
2024-06-12 04:24:36 +03:00
Jonas Kruckenberg
b9e11a8b97
fix(bundler): AppImage startup crash (#10036)
* Update appimage

* Update appimage.rs

* changefile

---------

Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
2024-06-11 17:07:17 +02:00
Amr Bashir
f44a2ec47c
feat(cli): include default.toml and capabilities in plugin template (#10030)
* feat(cli): include default.toml and capabilities in plugin template

* replace execute usage with ping

* add to capabilities

* use default permission set
2024-06-11 13:06:46 +09:00
Tony
5b769948a8
feat(core): add include_image macro (#9959) 2024-06-06 06:03:11 +03:00
Tony
6f469534b0
fix(nsis): run app as normal user (#9944) 2024-06-06 03:53:11 +03:00
Amr Bashir
de7da04a62
fix(rpm): use product name for output package (#9974)
* fix(rpm): use product name for output package

ref: https://github.com/tauri-apps/tauri/pull/9375
ref: https://github.com/tauri-apps/tauri/pull/9375#issuecomment-2144997488

* use kebab-case product-name for rpm

* fmt
2024-06-05 19:57:32 +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
Lucas Fernandes Nogueira
40c0f44e1c
fix(cli): plugin iOS Xcode project deployment target should be 13.0 (#9971) 2024-06-04 17:55:40 -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
Tony
ea78bf5558
fix(nsis): migrate old shortcuts by setting the path only instead of re-creating a new one (#9915) 2024-06-04 04:27:17 +03:00
Kareem Ebrahim
019a74e970
fix(cli): correct module name resolution for clipboard and globalShortcut plugins (#9931) 2024-06-03 21:57:46 +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]
916a26c2a1
apply version updates (#9913) 2024-05-29 17:02:21 -03:00
Amr Bashir
38df6ea1c1
fix(nsis): fix regression in shortcuts pointing to a non-existing file (#9909) 2024-05-29 16:33:24 -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
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
8b032c3cf6
fix(ios): add LaunchScreen.storyboard to iOS project template, fix#9853 (#9896)
* fix(ios): add LaunchScreen storyboard file

* chore: add changelog
2024-05-28 11:46:42 -03:00
Jason Tsai
adac2185a3
fix(android): check version code in release mode (#9898) 2024-05-28 11:37:38 -03:00
Jason Tsai
aa55e03354
fix: set window origin default to null (#9899) 2024-05-28 11:34:36 -03:00
Jason Tsai
71a5e2ba24
fix(android): allow and escape Kotlin keywords as package identifier, closes #9743 (#9799)
* fix(android): escape kotlin only keyword in template

* fix: escape keywords in wry templates aswell

* chore: add changelog

* chore: remove unused code

* fix(android): wry template, package name should reverse

* update cargo-mobile2

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-05-28 07:52:48 -03:00
Fabian-Lars
4754786aa2
fix(bundler/macos): Fix incorrect deep link plist property (#9885) 2024-05-27 15:59:00 -03:00
Lucas Fernandes Nogueira
9970d88bec
chore(android): update to latest Gradle (#9892) 2024-05-27 15:58:00 -03:00
Rajaniraiyn R
aaecb6a72e
refactor: rename tauri::dev to is_dev and mark as constant fn (#9890)
* refactor: made `tauri::dev` as constant function

this enables the `tauri::dev()` can be used as const or static

* is_dev && change files

---------

Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
2024-05-27 19:03:48 +03:00
Amr Bashir
9e4b2253f6
feat(cli): add tauri bundle subcommand (#9734)
* feat(cli): add `tauri bundle` subcommand

closes #8734

* license header

* log application path after building

* fix no-bundle check

* typo

* enhance error with deep causes

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-05-25 11:46:55 -03:00
Amr Bashir
5462e5cadc
feat(nsis): support installer hooks (#9731)
* feat(nsis): support installer hooks

closes #9668

* update change files

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-05-25 10:23:08 -03:00
Amr Bashir
418d72d72d
feat(bundler/nsis): add /UPDATE flag (#9559)
* feat(bundler/nsis): add `/UPDATE` flag

* typo

* typo

* skip webview2 installation on updating
2024-05-25 09:41:09 -03:00
Lucas Fernandes Nogueira
80aa504987
chore(cli): update Android target SDK to 34 (#9870) 2024-05-25 07:46:34 -03:00
Amr Bashir
c4410daa85
feat(tray): add enter, move and leave events (#9777)
* feat(tray): add `enter`, `move` and `leave` events

closes #8584

* update api example

* check button state [skip ci]

* fix enum [skip ci]

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-05-24 14:56:32 -03:00
Amr Bashir
276c4b1438
fix(Windows): sync menubar theme with the window theme (#9832)
* fix(Windows): sync menubar theme with the window theme

ref: https://github.com/tauri-apps/muda/issues/170

* fix moc runtime

* muda 0.13.4

* missing change file

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-05-24 14:23:54 -03:00
Jonas Kruckenberg
9ac930380a
chore: emit rustc-check-cfg for nightly (#9850)
* fix: emit cargo cfg alias using new syntax too

* Update lib.rs

* fixes for other crates

* clippy

* readd clone

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-05-24 13:12:51 -03:00
Amr Bashir
d6d3efbd12
feat(bundler): support custom sign command on Windows (#9865)
* feat(bundler): support custom sign command on Windows

closes #7188
closes #9578

* fix double quotes

* fix build

* fix build

* clippy

* Update sign.rs

* clippy && replace `winreg` with `windows-registry`

* remove log [skip ci]

* Apply suggestions from code review

* tweak arg so path with spaces work on macOS

* create nsis toolset paths

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-05-24 10:25:13 -03:00
Amr Bashir
fc1543c65e
refactor!: remove skip_webview_install option (#9864) 2024-05-24 10:13:55 -03:00
Jason Tsai
1df5cdeb06
refactor!: use tauri.conf.json > identifier as package name and bundle id, close #9851 (#9858)
* fix(android): use identifier as Android package name

* update android_binding and android_fn interface

* chore: rename TAURI_ANDROID_PACKAGE_PREFIX to TAURI_ANDROID_PACKAGE_NAME

* revert back to split prefix and app_name

* rename `domain` to `identifier`

* add change log

* simplify reverse config identifier

* Update .changes/mobile-use-identifier-as-id.md

* Update core/tauri-build/src/lib.rs

* lint

* cargo-mobile2 0.12

* fmt

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-05-24 09:22:41 -03:00
Lucas Fernandes Nogueira
8a1ae2deaf
feat(plugin): add option to use a Xcode project for iOS (#9843)
* wip

* add option to use xcode project

* configuration

* clear env

* add change file

* remove xcuserdatad

* delete xcuserstate
2024-05-24 08:23:41 -03:00
github-actions[bot]
51b5d581b5
Apply Version Updates From Current Changes (#9752)
* apply version updates

* fix tests

* fix tests

---------

Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-05-22 23:20:59 -03:00
Tillmann
d950ac1239
Merge pull request from GHSA-57fm-592m-34r7
* only allow tauri-initialized frames to call the ipc

* dont regenerate the invoke key

* return early if the invoke key does not match

* add change file

* wry 0.40

* update change file

* trigger ci

---------

Co-authored-by: Chip Reed <chip@chip.sh>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-05-22 17:49:08 -03:00
Fabian-Lars
beda18bce9
fix(cli/add): Fix handling of more rust-only and non cross platform plugins (#9855) 2024-05-22 19:57:57 +03:00
Tony
ae6b13dfc0
feat(core): add app-region: drag to data-tauri-drag-region (#9789) 2024-05-22 19:45:39 +03:00
Amr Bashir
0b690f242f
fix(core): export UriSchemeResponder (#9845) 2024-05-21 20:13:40 +03:00
Fabian-Lars
781d74799a
fix(bundler/rpm): Reduce compression level to gzip/6 (#9840) 2024-05-21 19:03:47 +03:00
Lucas Fernandes Nogueira
5d20530c91
feat(core): add AppHandle::set_activation_policy (#9842) 2024-05-21 11:45:08 -03:00
Amr Bashir
d0d974fa5e
fix(bundler/nsis): fix registering deep-link protocols (#9833)
* fix(bundler/nsis): fix registering deep-link protocols

* Update bundler-nsis-deep-links.md

---------

Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
2024-05-21 11:01:37 +02:00
Lucas Fernandes Nogueira
be95d8d37c
fix(utils): incorrect ToTokens impl for Capability (#9782) 2024-05-15 03:52:05 +03:00
Siddharth
ec0e092ecd
feat: adds monitor_from_point method (#9770) 2024-05-14 19:48:51 +03:00
Lucas Fernandes Nogueira
4a33bc6a62
fix(cli): pnpm detection on mobile init and xcode-script (#9553)
* fix(cli): pnpm detection on mobile init

* small outputFiles fix

* same check for xcode-script

* Discard changes to tooling/cli/node/index.js

* Discard changes to tooling/cli/node/index.d.ts

---------

Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
2024-05-11 23:32:05 -03:00
Amr Bashir
bd64982fe6
ci: pull .crate file from workspace target directory (#9733) 2024-05-10 02:32:25 +03:00
github-actions[bot]
6968c40053
Apply Version Updates From Current Changes (#9722)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-05-09 15:22:54 -03:00
Lucas Fernandes Nogueira
5a85ee2826
Revert "Apply Version Updates From Current Changes" (#9723)
This reverts commit 1bee4f279f.
2024-05-09 14:02:22 -03:00
github-actions[bot]
1bee4f279f
Apply Version Updates From Current Changes (#9693)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2024-05-09 12:28:30 -03:00
Lucas Fernandes Nogueira
c0bcc6c0b7
fix(tauri-runtime-wry): window draw span not closing (#9717)
* fix(tauri-runtime-wry): window draw span not closing

* use .retain
2024-05-09 10:09:41 -03:00
Lucas Fernandes Nogueira
fedca73860
fix(core): IPC tracing field incompatibility (#9720) 2024-05-09 15:41:41 +03:00
Golden Water
78839b6d2f
feat(macos): Expose tao event Event::Reopen, closes #3084 (#4865)
* feat: expose tao event Event::Reopen

* Update .changes/event-reopen.md

* deps(core::tauri-runtime-wry): update tao to 0.28
2024-05-07 21:36:48 +03:00
Amr Bashir
783ef0f2d3
refactor!(core): return result in Webview/WebviewWindow::url getter (#9647)
* refactor!(core): return result in `Webview/WebviewWindow::url` getter

* clippy

* Apply suggestions from code review
2024-05-07 17:16:17 +03:00
Lucas Fernandes Nogueira
a5205f179e
fix(utils): wrong ToTokens impl of the window proxy_url config (#9691) 2024-05-07 15:59:58 +03:00
github-actions[bot]
83acd85788
apply version updates (#9639)
Co-authored-by: FabianLars <FabianLars@users.noreply.github.com>
2024-05-07 00:02:54 +02:00
Hankung
3fbc1703f1
fix: schemars 0.8.18 compatibility (#9676)
* fix: schemars 0.8.18 compatibility

* fix cli cargo issue

* update tauri-utils v1

---------

Co-authored-by: FabianLars <fabianlars@fabianlars.de>
2024-05-06 23:22:35 +02:00
Andrej Mihajlov
07ff78c2de
feat(tray): add TrayIcon::rect method (#9615) 2024-05-03 05:56:54 +03:00
Amr Bashir
97ec422f22
fix(cli/icon): return with an error instead of panic (#9638)
* fix(cli/icon): return with an error instead of panic

closes #9636

* Update .changes/cli-icon-non-0-exit.md
2024-05-02 13:26:53 +02:00
Oscar Beaumont
7f6d2698c9
fix(core): better error when deserializing plugin config (#9631)
* Better error for errors decoding plugin config

* changes
2024-05-02 00:44:40 +03:00
Oscar Beaumont
8a71858eb2
feat: configure a default runtime for menu and tray icon types (#9630)
* Use `tauri::Wry` as default runtime for menu types

* do it properly

* changes

* same for tray icon

* change file

---------

Co-authored-by: amrbashir <amr.bashir2015@gmail.com>
2024-05-02 00:44:15 +03:00
Oscar Beaumont
bf2635ab62
fix(plugin): improve error for missing links property (#9632)
* Better error

* Improve errors
2024-05-02 00:40:31 +03:00
github-actions[bot]
d5775ed6a4
apply version updates (#9617)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2024-04-30 19:31:34 +02:00
Fabian-Lars
007af10d43
Partially Revert "Apply Version Updates From Current Changes (#9551)" (#9620)
This partially reverts commit 108ab9094a.
2024-04-30 19:23:26 +03:00
Zihan Hu
aa080696e0
fix(core): fix incorrect isTauri return type (#9618) 2024-04-30 19:03:49 +03:00
Tony
6c047aee14
fix(windows): hide windows on cleanup (#9612)
* Hide windows on cleanup

* Add change file

* Move hide window to a loop above
2024-04-30 18:37:17 +03:00
github-actions[bot]
108ab9094a
Apply Version Updates From Current Changes (#9551)
* apply version updates

* update wry to 0.39.3 to prevent dependency version mismatches

---------

Co-authored-by: FabianLars <FabianLars@users.noreply.github.com>
Co-authored-by: FabianLars <fabianlars@fabianlars.de>
2024-04-30 16:22:46 +02:00
Amr Bashir
128c580009
chore(cli/deps): update nsis-tauri-utils to 0.3 (#9604) 2024-04-30 13:54:49 +02:00
Amr Bashir
3f08054885
refactor(cli): use windows-sys instead of winapi (#9603)
* refactor(cli): use `windows-sys` instead of `winapi`

* Update cli-windows-sys.md
2024-04-29 20:50:37 +03:00
Amr Bashir
477bb8cd4e
feat: add cursor_position getter (#9297)
* feat: add `cursor_position` getter

closes #9250

* js api

* Update mod.rs

* fix build on iOS and android

* use existing wrapper

* fmt

* adjust wording

* update docs

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-04-29 18:28:01 +03:00
Lucas Fernandes Nogueira
eff778b8f0
fix(core): run plugin init script in a separate context (#9571) 2024-04-28 11:15:29 -03:00
Lucas Fernandes Nogueira
98101cb17f
fix(core): allow any headers on custom protocol IPC (#9561) 2024-04-25 01:00:03 +02:00
Tony
68c39b8c0c
refactor(nsis): use nsis's built-in com plugin instead of ApplicationID plugin (#9527)
* Use WinShell instead of ApplicationID

* Uninst shortcut before removing start menu one

* Use nsis's buit-in com plugin instead of WinShell

* Remove download ApplicationID code

* Add change file

* Clippy and format

* Allow dead code on extract_zip

* Qualify extract_zip path to make clippy happy

* Move macro up
2024-04-24 16:14:30 +02:00
Oscar Beaumont
12b4159bda
feat(core): add Specta integration (#9392) 2024-04-23 04:29:39 +02:00
github-actions[bot]
ac9bfada4a
Apply Version Updates From Current Changes (#9548)
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-04-22 17:09:51 -03:00
Amr Bashir
e22e61af6c
Revert "Apply Version Updates From Current Changes (#9489)" (#9549)
This reverts commit 198f11ae7b.
2024-04-22 15:42:46 -03:00
github-actions[bot]
198f11ae7b
Apply Version Updates From Current Changes (#9489)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2024-04-22 19:02:28 +02:00
Tony
de7bcf3cc5
fix(bundler/nsis): auto append product name when choosing a new install path (#9478)
* Fix picking install folder
doesn't auto append product name folder for nsis installer

* Add change file

* patch -> patch:enhance

* Update nsis-append-product-name.md
2024-04-22 17:59:16 +02:00
Tony
a1e0e268f0
fix(utils): temp permission file names on windows (#9477)
* Replace `tauri:` with `tauri-`

* Add change file

* Apply suggestions from code review

* patch -> "patch:bug"

---------

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2024-04-22 11:18:16 -03:00
André Kohn
be7eab209c
fix(api): add type definitions to package.json exports (#9486) 2024-04-22 16:18:00 +02:00
Amr Bashir
aaa332c6e7
fix(cli/migrate): migrate only known plugins (#9540)
* fix(cli/migrate): migrate only known plugins

closes #9533

* use tuple

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-04-22 15:28:19 +02:00
Lucas Fernandes Nogueira
35b25f7e5c
fix: optional chaining is not supported on older webviews (#9530) 2024-04-22 10:27:45 -03:00
Amr Bashir
70c51371e0
feat(core): add isTauri (#9539)
* feat(core): add `isTauri`

* generate api
2024-04-22 15:07:11 +02:00
Amr Bashir
005fe8ce1e
fix(runtime-wry): apply closable, maximizable and minimizable effects from config (#9410)
closes #9409
2024-04-21 11:43:30 -03:00
Graham Held
cf615e8e4d
Set internal message ID to nextId after handling pending messages (#9463)
* Set internal message ID to nextId after handling pending messages

* add change file

* update bundle

* update reference.md

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-04-21 11:21:34 -03:00
Amr Bashir
88c0ad9cf5
fix(build): check if permissions dir exists before adding cargo:rerun-if-changed (#9471)
closes #9062
2024-04-21 11:04:46 -03:00
Tony
daf018e4f5
fix(core): clear resource table in cleanup_before_exit (#9505)
* Clear resource table in `cleanup_before_exit`

* Add change file

* Update .changes/cleanup-resource-table.md
2024-04-19 05:50:12 +02:00
Amr Bashir
05088b0679
feat(bundler): expose {{long_description}} to custom templates (#9494)
* feat(bundler): expose `{{long_description}}` to custom templates

closes #9437

* fix linux
2024-04-18 17:09:05 +02:00
Fabian-Lars
e64b8f1dce
chore: merge remote-tracking branch '1.x' into v2 (#9479)
* chore: port PR template from `dev` branch (#9004)

* fix(runtime-wry): avoid panic during clipboard initialization on wayland (#9003)

closes #8964

* ci: downgrade thread_local to 1.1.7 in msrv list (#9012)

* Apply Version Updates From Current Changes (v1) (#9013)

Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>

* fix(bundler): escape potentially problematic strings in an XML (#9040)

* fix(bundler): escape potentially problematic strings in an XML (#9030)

- replace characters invalid in XML with their escaped form to properly bundle resources with such characters in their pathnames.

* change file

* fix(cli): use `matched_path_or_any_parents` when checking if a file is ignored (#8903)

* fix: taurignore ignoreing folders not working for watch

* docs: add to changes

* fix: panic: path is expected to be under the root

* Update taurignore-ignoring-folders-not-working-for-watch.md

* Update taurignore-ignoring-folders-not-working-for-watch.md

* fix(cli): migrate to stable features of `log` crate (#9119)

* fix(cli): migrate to stable features of `log` crate

* to_cow_str

* Apply Version Updates From Current Changes (v1) (#9074)

Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>

* fix(core/path): remove suffix in basename only once (#9166)

* fix(core/path): remove suffix in basename only once

ref: #9064

* Update tooling/api/src/path.ts

---------

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

* fix(cli): Clone Options struct after mutating it. (#9188)

* fix(bundler): Fix nsis resource paths on non-windows build systems. (#9281)

* fix(bundler): Fix nsis resource paths on non-windows build systems.

* remove leftover from alternative

* fix(bundler/nsis): Don't use /R flag on installation dir (#9282)

* fix(cli): upgrade heck to better support Chinese/Japanese prodcut name on Linux (#9298)

* chore: fix clippy false positive (#9329)

* fix(cli/info): fix crash when checking node version (#9411)

closes #9396

---------

Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
Co-authored-by: bifs <127015052+bifs@users.noreply.github.com>
Co-authored-by: anatawa12 <anatawa12@icloud.com>
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
Co-authored-by: Jet Li <jing.i.qin@icloud.com>
2024-04-18 05:21:21 +02:00
Amr Bashir
a07b513201
fix(core): add permission for window.start_resize_dragging (#9490)
closes #9485
2024-04-17 18:25:35 +02:00
Amr Bashir
8a63ceb4f3
feat(cli): ignore .DS_Store by default for dev watcher (#9473)
* feat(cli): ignore `.DS_Store` by default for dev watcher

closes #9451

* Update cli-ds-store-dev-watch.md
2024-04-17 14:51:24 +02:00
github-actions[bot]
535691a711
Apply Version Updates From Current Changes (#9348)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2024-04-15 09:32:40 -03:00
Lucas Fernandes Nogueira
02eaf07872
fix(tauri-runtime-wry): Window::inner_size crash when the window has no webviews (#9428) 2024-04-15 13:28:59 +02:00
Amr Bashir
c8a82ad223
fix(core): fix deadlock when using resources_table in menu/image/tray plugins (#9379)
* fix(core): fix deadlock when using resources_table in menu/image/tray plugins

closes #9369

* document the resources_table requirement
2024-04-15 12:15:37 +02:00
Amr Bashir
48a7a78f80
fix(api): fix dpi types serialization (#9376)
* fix(api): fix dpi types serialization

closes #9370

* Update api-position-size-args.md

* lint

* setMinSize and setMaxSize

* Update api-position-size-args.md
2024-04-15 12:04:20 +02:00
Tony
f22ea29986
fix(core): revert fix visibility change (#9246) (#9465)
* Revert "fix(windows): changing WebView visibility on hide/show/minimize (#9246)"

This reverts commit 5bd47b4467.

* Change files

* change file

* Update revert-fix-visibility-change.md
2024-04-15 11:50:11 +02:00
Fabian-Lars
f1674fce6d
feat(core/windows): Convert UNC paths to simple paths in JS apis. (#9420) 2024-04-15 11:41:31 +02:00
Kornel
73c1c2d338
fix(cli/migrate): tolerate non-UTF-8 in migration (#9457) 2024-04-15 11:39:53 +02:00
Amr Bashir
9331435a50
fix(cli/info): fix crash when checking node version (#9412)
closes #9396
2024-04-15 11:39:19 +02:00