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
Kornel
8f4b1050c4
feat(cli): show full expected path of frontendDist
if not found ( #9459 )
...
* feat(cli): show full expected path of frontendDist
2024-04-15 09:18:46 +02:00
Tony
4973d73a23
feat: Add zoom hotkey polyfill for non windows platforms ( #9386 )
2024-04-08 22:42:51 +02:00
Tony
58a7a552d7
feat: Expose webview zoom ( #9378 )
...
* Expose webview zoom
* Add js side support
* Generate bundle script
* Format
* Add change file
2024-04-05 02:10:07 +02:00
Tony
9273d7b379
feat(windows): Expose webview2 zoom hotkeys from wry ( #9352 )
...
* Expose webview2 zoom hotkeys from wry
* Add change file
* Apply suggestions from code review
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
* Regenerate schema files
---------
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
2024-04-03 20:14:17 +02:00
Mariotaku
36b4c12497
feat(bundler): added provides, conflicts and replaces for deb and rpm ( #9331 )
...
* feat(bundler): added provides, conflicts and replaces for deb and rpm packages
* added change file
* update .changes/deb-rpm-provides-conflicts-replaces.md according to review
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
* inlined provides/conflicts/replaces(obsoletes) variables
* fmt
2024-04-03 18:02:56 +02:00
Fabian-Lars
2f20fdf1d6
fix(core): compile error for 32bit targets ( #9361 )
...
* fix(core): compile error for 32bit targets
* clippy giving me trust issues
2024-04-03 17:19:21 +02:00
Fabian-Lars
6251645acf
fix(core): Update webview metadata on window close ( #9360 )
...
* fix(core): Update webview metadata on window close
* make it multiwebview friendlier
* support webview.close() too -> THIS IS STILL MISSING AN EVENT LIKE tauri://destroyed !!!
2024-04-03 17:18:13 +02:00
Tony
4c2e7477e6
fix(windows) window center doesn't consider taskbar size ( #9309 )
...
* Fix window center doesn't consider taskbar size
* Clean up
* Add change file
* Calculate title bar size on initial creation
* Comment about not adding in rect.bottom
* Tweak comment
* Fix center existing window a bit too high
* us NSWindow::center on macOS
* skip if undecorated
2024-04-02 20:32:30 +02:00
github-actions[bot]
1a58cdf2ed
Apply Version Updates From Current Changes ( #9279 )
...
* apply version updates
* fix bundler version
* fix bundler version
---------
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-04-02 15:15:12 -03:00
Amr Bashir
284eca9ef2
refactor(core): scope JS resources to the webview ( #9272 )
...
* refactor(core): scope JS resources to the webview
* clippy
* change files
* swap args order
* more clippy
* just add them on each type
* clippy
* macro docs
* Update mod.rs
* use random rid
* revert resource table arg change
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-04-02 14:41:47 -03:00
amrbashir
93e0e1392e
feat(cli/add): support specifying version
...
closes #9325
2024-04-01 18:22:26 +02:00
Lucas Fernandes Nogueira
06833f4fa8
feat(ipc): enhance request URL checks, update wry, refactor file drop ( #9100 )
...
* feat(ipc): enhance request URL checks
* actually use req url
* fix windows, tests
* wry 0.38, file drop refactor
* wry 0.38.1
* adjust for windows [skip ci]
* wry 0.38.2 [skip ci]
* update to latest tao, wry, muda and tray-icon
* change tag
* serde
* use published crates
* downgrade cargo-platform to 0.1.7
---------
Co-authored-by: amrbashir <amr.bashir2015@gmail.com>
2024-04-01 13:03:39 -03:00
Lucas Fernandes Nogueira
a804a70a7a
feat(isolation): script now removes itself to hide key from DOM ( #9328 )
2024-04-01 12:43:29 -03:00
Lucas Fernandes Nogueira
7c334cb185
feat(isolation): make encrypt key unextractable ( #9327 )
2024-04-01 12:43:19 -03:00
scottpledger
6703b7cbca
fix: use $CARGO_MANIFEST_DIR to fully specify include_dir paths in tauri-cli ( #9310 )
...
* Allow tauri-cli to work with Bazel.
Signed-off-by: Scott Pledger <scottpledger2005@gmail.com>
* change file
---------
Signed-off-by: Scott Pledger <scottpledger2005@gmail.com>
2024-04-01 16:43:52 +02:00
Tony
5bd47b4467
fix(windows): changing WebView visibility on hide/show/minimize ( #9246 )
...
* Fix not changing visibilty for windows webview
* Add change file
* Move is_visible calculation to the caller
* Rename update to set
2024-03-28 16:25:46 +02:00
Vladimir Stoilov
259d845290
feat(bundler): add post/pre install/remove scripts for linux deb and rpm packages ( #9209 )
...
* feat(cli/add): add post/pre install/remove scripts for linux
* fix(cli): clippy errors
* fix(cli): remove script struct from deb/rpm bundle
* change files and aliases
2024-03-28 05:13:26 +02:00
Fabian-Lars
c33f6e6cf3
fix(core): Announce new webviews and windows ( #9211 )
...
* fix(core): Announce new webviews and windows
fixes #9200
fixes #8144
* fix js import in example
* emit created events to all listeners.
* remove duplicate event
2024-03-28 02:23:19 +02:00
Lucas Fernandes Nogueira
e7cd973123
fix(tauri-runtime-wry): window inner size regression on macOS, closes #9236 ( #9276 )
...
* fix(tauri-runtime-wry): window inner size regression on macOS, closes #9236
* lint
2024-03-26 11:38:57 -03:00
github-actions[bot]
7898b601d1
Apply Version Updates From Current Changes ( #9222 )
...
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-03-20 19:59:04 -03:00
Lucas Fernandes Nogueira
b525ddadf7
fix(cli): openssl is no longer a required macOS dep ( #9237 )
2024-03-20 19:15:58 -03:00
Fabian-Lars
a799f24f97
fix(bundler): Fix path seperators for deep link registry entries ( #9185 )
...
* fix(bundler): Fix path seperators for deep link registry entries
* Update bundler-deep-link-reg-path.md
2024-03-19 10:41:55 -03:00
Amr Bashir
ac76a22f38
feat(cli/init): allow empty responses non-crucial questions ( #9183 )
...
closes #9181
2024-03-19 10:41:41 -03:00
Fabian-Lars
81b853bc87
fix(core): Set json content type for errors returned from commands ( #9213 )
2024-03-19 10:34:12 -03:00
Fabian-Lars
75f5cb4015
feat(core): Implement HasDisplayHandle for Window ( #9214 )
2024-03-19 09:43:15 -03:00
Tony
43230cb6b7
fix(core): menu remove
js binding not working ( #9219 )
...
* Fix menu `remove` js binding not working
* add change file [skip ci]
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-03-19 09:40:25 -03:00
github-actions[bot]
f1df6b2c35
Apply Version Updates From Current Changes ( #9162 )
...
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-03-18 09:43:47 -03:00
Amr Bashir
379cc2b354
fix(core/path): remove suffix in basename
only once ( #9165 )
...
* fix(core/path): remove suffix in `basename` only once
closes #9064
* Update tooling/api/src/path.ts
* remove extra assert
---------
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2024-03-18 08:40:23 -03:00
Lucas Fernandes Nogueira
ea0242db4a
refactor(image): expose constructor, unify size getters ( #9179 )
2024-03-13 22:02:05 -03:00
Amr Bashir
7213b9e472
feat(cli/add): add default permission to capabilities ( #9124 )
...
* feat(cli/add): add default permission to capabilities
also cleanup `tauri add` command
* license headers & clippy
* print permission name
* do not error out if default permission is not set
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-03-13 11:58:25 -03:00
Amr Bashir
acdd76833d
feat(api/tray): add TrayIcon.getById/removeById
( #9155 )
...
* feat(api/tray): add `TrayIcon.getById/removeById`
closes #9135
* generate
* add permissions
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-03-12 13:07:51 -03:00
Lucas Fernandes Nogueira
e227fe02f9
feat(core): allow defining global API script on plugin build ( #9156 )
...
* feat(core): allow defining global API script on plugin build
Adds `tauri_plugin::Builder::global_api_script_path` so plugin authors can define the JavaScript global API bindings (supposed to be injected to `window.__TAURI__`) at compile time, so the string is only part of the binary when withGlobalTauri is true.
Currently this needs to be done manually at runtime (and it's always added to the binary via include_str).
* prefix variable
* use list of scripts instead of combining them
* static str
* header [skip ci]
* slice
2024-03-12 12:01:13 -03:00
Amr Bashir
79b8a3514b
enhance(core/event): filter js listeners on rust side only then emit filtered ids to be triggered ( #9151 )
...
* fix(core/event): filter js listeners on rust side only then emit filtered ids to be triggerd
fix regression introduced in https://github.com/tauri-apps/tauri/pull/8930 , and reported in https://github.com/tauri-apps/tauri/pull/8930#issuecomment-1986279046
* Update .changes/core-js-unlisten-all-regression.md
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
* Discard changes to .changes/core-js-unlisten-all-regression.md
* object.defineproperty
* add change file [skip ci]
---------
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2024-03-12 09:41:25 -03:00
github-actions[bot]
d349558abb
Apply Version Updates From Current Changes ( #9149 )
...
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-03-11 15:14:25 -03:00
Amr Bashir
a44cd5a183
chore: fix description for Context::assets change from #9141 ( #9148 )
2024-03-11 14:47:03 -03:00
Lucas Fernandes Nogueira
e673854c83
fix(acl): inconsistencies on urlpattern usage for remote domain URL ( #9133 )
...
* fix(acl): inconsistencies on urlpattern usage for remote domain URL
* remove println!
* typo
* fix tests
2024-03-11 13:39:17 -03:00
Lucas Fernandes Nogueira
490a6b424e
refactor(core): add setup() to the Assets trait ( #9147 )
...
* feat(core): allow swapping the assets implemenetation
* refactor(core): add setup() to the Assets trait
* code review
2024-03-11 13:38:32 -03:00
i-c-b
85de230f31
fix(core): race between drop old JS listeners and create new listeners on page load ( #9144 )
...
* fix(core): race between drop old JS listeners and create new listeners on page load
* Create fix-js-unlisten-all-race.md
2024-03-11 18:03:02 +02:00
Tony
c3ea3a2b7d
fix(windows): relax UpdaterWindowsConfig
to not deny unknowns fields ( #9126 )
2024-03-11 17:30:14 +02:00
Lucas Fernandes Nogueira
db0a24a973
refactor(core): use the image crate ( #9132 )
2024-03-11 11:46:34 -03:00
Lucas Fernandes Nogueira
ba0206d8a3
feat(core): allow swapping the assets implementation ( #9141 )
2024-03-11 11:07:15 -03:00
github-actions[bot]
d701f29f17
Apply Version Updates From Current Changes ( #9117 )
...
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-03-07 19:56:45 -03:00
Lucas Fernandes Nogueira
ed48e2b3c7
feat(core): expose the image module ( #9122 )
...
* feat(core): expose the image module
* code review
* fix import
* fix
* fix codegen
* jsimage owned
* fmt
---------
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
2024-03-07 19:23:21 -03:00
Amr Bashir
5541aafef3
fix(core): fix emit skipping webview listeners if filter wasn't provided ( #9107 )
...
* fix(core): fix emit skipping webview listeners if filter wasn't provided
* Update .changes/core-emit-js-all-targets.md
* update api example
---------
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-03-07 20:36:52 +02:00
Lucas Fernandes Nogueira
80c12ead46
fix(ipc): wrong response format when using a channel ( #9121 )
2024-03-07 14:53:49 -03:00
Lucas Fernandes Nogueira
3e472d0afc
refactor(acl): permission and capability platforms are optional ( #9115 )
...
* refactor(acl): permission and capability platforms are optional
* add iterator version
* fix build
---------
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
2024-03-07 14:18:15 -03:00
Lucas Fernandes Nogueira
4ef17d0833
refactor(acl): use URLPattern instead of glob for remote URLs ( #9116 )
2024-03-07 13:08:57 -03:00
Lucas Fernandes Nogueira
9dc9ca6e38
feat(core): add dev function ( #9113 )
2024-03-07 11:02:53 -03:00
github-actions[bot]
e7f245e81e
Apply Version Updates From Current Changes ( #9035 )
...
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-03-06 19:00:57 -03:00
Amr Bashir
720357fd5c
refactor!: remove re-export from tauri::path
module ( #9104 )
2024-03-06 18:31:23 -03:00
Lucas Fernandes Nogueira
b5c7432769
feat(core): use a strict CSP on the isolation iframe ( #9086 )
2024-03-05 14:20:17 -03:00
Amr Bashir
bb23511ea8
feat: enhance multiple capabilities file format & fix mixed permissions schema ( #9079 )
...
* feat: enhance multiple capabilities file format & fix mixed permissions schema
* change files
2024-03-05 13:09:32 -03:00
Lucas Fernandes Nogueira
4bf1c55b0d
Revert "feat(core): use a strict CSP on the isolation iframe ( #9075 )" ( #9078 )
2024-03-04 22:22:49 -03:00
Lucas Fernandes Nogueira
fe18012d30
fix(core): resolve symlink on fs scope check ( #9072 )
2024-03-04 21:10:55 -03:00
Lucas Fernandes Nogueira
7cec1049e8
feat(core): use a strict CSP on the isolation iframe ( #9075 )
2024-03-04 21:10:34 -03:00
Amr Bashir
86fa339de7
fix(core): fix invalid path for Color
in context generation ( #9071 )
2024-03-04 17:03:55 -03:00
Lucas Fernandes Nogueira
e62ca4ee95
feat(ipc): preserve channel message order ( #9070 )
2024-03-04 17:03:24 -03:00
Lucas Fernandes Nogueira
6c06832246
fix(acl): scope resolution should be per window ( #9068 )
...
* fix(acl): scope resolution should be per window
* Update core/tauri-utils/src/acl/resolved.rs
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
* update snapshots
* lint
---------
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
2024-03-04 17:01:30 -03:00
Amr Bashir
9aa0d6e959
chore: remove unstable log features & use qualified log::<macro>
path ( #9069 )
...
* chore: remove unstable log features & use qualified `log::<macro>` path
* fmt
* fix build
2024-03-04 21:22:07 +02:00
Lucas Fernandes Nogueira
46de49aaad
feat(core): always use child webviews on the unstable feature ( #9059 )
...
* feat(core): always use child webviews on the unstable feature
* fmt
2024-03-04 16:09:16 -03:00
i-c-b
947a50b8e2
fix(cli): migration for http plugin ACL ( #9049 )
...
* fix cli migration of http allowlist to ACL
* Create fix-cli-migration-http-acl.md
2024-03-03 09:28:31 -03:00
Amr Bashir
77b9a508a4
feat(api): add Image
class ( #9042 )
...
* feat(api): add `Image` class
* clippy
* license headers
* small cleanup
* fixes
* code review
* readd from_png_bytes and from_ico_bytes
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-03-03 04:31:08 +02:00
Lucas Fernandes Nogueira
03098b5315
feat(core): dynamic runtime capability ( #9036 )
...
* feat(core): dynamic runtime capability
* local(), windows(), webviews()
* enhance identation
2024-03-01 08:27:29 -03:00
Lucas Fernandes Nogueira
a77be97474
fix(ipc): fallback to postMessage if protocol fails, closes #8476 ( #9038 )
2024-02-29 18:24:43 -03:00
Amr Bashir
c68218b362
refactor(cli): add --no-bundle
flag, skip bundling on invalid formats ( #8990 )
...
* refactor(cli): add `--no-bundle` flag, skip bundling on invalid formats
* enhance bundle format parsing
* lint [skip ci]
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-02-29 10:49:42 -03:00
Lucas Fernandes Nogueira
4f78941763
chore(cli): update deps, fix log compilation issue ( #9034 )
2024-02-29 10:22:47 -03:00
Amr Bashir
d1e77acd8d
refactor!(core): remove Icon
enum and add Image
type ( #9011 )
...
* refactor!(core): remove `Icon` enum and add `Image` type
* clippy
* revert api example config change
* Update image.rs
* fix build
* clippy
* change files
* add back removed methods as setter functions
* simplify error message
* Update .changes/runtime-icon-lifetime.md
* Update .changes/ico-featrue-flags.md
* Update core/tauri/src/image.rs
* update api lockfile
* update api ref
* lint
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-02-29 09:05:11 -03:00
github-actions[bot]
ab060ebb34
Apply Version Updates From Current Changes ( #9000 )
...
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-02-29 00:06:59 -03:00
Lucas Fernandes Nogueira
d7f56fef85
feat(acl): allow a permission to apply to a subset of target platforms ( #9014 )
...
* feat(acl): allow a permission to apply to a subset of target platforms
* fix cli
2024-02-28 17:23:52 -03:00
Lucas Fernandes Nogueira
d7d03c7197
fix(cli): dev watcher infinite loop on mobile ( #9017 )
2024-02-28 17:22:45 -03:00
canxin
e4463f0814
fix(event): clear residual js listeners ( #8916 ) ( #8930 )
...
* fix clear residual listeners tauri-apps#8916
* Comment out `println` on successful removal of `js_listeners`
* follow review changes.
* remvoe uneeded result
* Update fix-clear-residual-listeners.md
2024-02-28 20:26:27 +02:00
Amr Bashir
f5f3ed5f6f
fix(cli): CLI path issues on mobile project initialization ( #9009 )
...
* fix(cli): fix panic when `android init` using cargo or yarn
closes #8531
* clippy
* try with fullpath
* clippy
* move cli
* Update test-android.yml
* add to path instead
* clippy
* try moving
* use cargo subcommand
* delete unused logic [skip ci]
* truncate on init [skip ci]
* enhance binary/args check
* update change files
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-02-28 14:38:24 -03:00
i-c-b
b658ded614
fix(cli): Truncate BuildTask.kt before writing ( #9015 )
...
* truncate BuildTask.kt before write
* Create truncate-before-write-buildtask.md
* remove unused checks
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-02-28 13:42:21 -03:00
Vitor Ayres
04440edce8
feat(utils): generate table markdown of permissions ( #9019 )
...
* generate table
* Create permission-table.md
2024-02-28 18:15:44 +02:00
Lucas Fernandes Nogueira
3657ad82f8
feat(core): allow defining permissions for the app commands ( #9008 )
...
* feat(core): allow defining permissions for the app commands
* global scope
* command scope
* write to disk
* lint
* fix path
* get autogenerated commands from generate_handler macro
* revert
* remove cli
* use const instead of empty str
2024-02-28 08:45:28 -03:00
Lucas Fernandes Nogueira
222a96b74b
fix(core): multiwebview mode fixes for auto resize, reparent and add_child ( #8999 )
...
* refactor(core): simplify multiwebview impl, fix autoresize
* add_child on main thread
* fix reparent
* revert some changes
* add change files
2024-02-27 17:36:21 -03:00
Lucas Fernandes Nogueira
e1d5b79063
fix(core): wrong ACL validation on multiwebview contexts ( #8995 )
2024-02-27 11:42:11 -03:00
github-actions[bot]
5a19147b06
Apply Version Updates From Current Changes ( #8991 )
...
* apply version updates
* update versions
---------
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-02-26 23:53:48 -03:00
github-actions[bot]
31a33d4680
Apply Version Updates From Current Changes ( #8980 )
...
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2024-02-26 23:05:51 -03:00
Amr Bashir
b9e6a01879
refactor(cli): use tauri/custom-protocol
instead of relying on user having custom-protocol
in their cargo features ( #8937 )
...
* refactor(cli): use `tauri/custom-protocol` instead of relying on user having `custom-protocol` in their cargo features
* tauri-build dev cfg
* pass build-feature when building apk
* run beforeBuildCommand before first build for plugins
* clippy
* fix
* mut
* enhance dev/prod checks
* lint [skip ci]
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-02-26 15:17:45 -03:00
Amr Bashir
60bf11abcb
fix(core): export ProgressBarStatus
( #8986 )
...
closes #8960
2024-02-26 19:52:14 +02:00
Amr Bashir
06d63d67a0
feat(cli): add new acl subcommands ( #8827 )
...
* unify `CI` var handling, and lay foundation for `permission` subcommand
* feat(cli/init&new): create `permissions` directory by default for plugins
* generate permissions with consistent pathing on windows and unix
* `pemrission create` initial implementation
* add ls command
* finalize `permission create` subcommand
* `permission rm` subcommand
* `permission add` subcommand
* remove empty `permission copy` subcommand
* clippy
* `capability create` subcommand and move modules under `acl` directory
* fix multiselect for `permission add` when capabilty doesn't have identifier
* clippy
* `create` -> `new` and change file
* license headers
* more license headers
* clippy
* Discard changes to examples/resources/src-tauri/.gitignore
* fix build
* cleanup
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-02-26 14:42:13 -03:00
Amr Bashir
9be314f07a
feat(cli/migrate): add plugins to Cargo.toml ( #8951 )
...
* feat(cli/migrate): add plugins to Cargo.toml
closes #8933
* small cleanup
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-02-26 13:29:16 -03:00
Lucas Fernandes Nogueira
bc5b5e671a
chore(linux): remove CSP tag on custom protocol response ( #8984 )
2024-02-26 13:08:19 -03:00
Lucas Fernandes Nogueira
6cb601d42e
fix(core): convert mobile command name to camelCase, closes #8872 ( #8983 )
2024-02-26 12:54:31 -03:00
Lucas Fernandes Nogueira
cbd9755e09
fix: process logs not showing on iOS ( #8977 )
2024-02-25 17:38:27 -03:00
github-actions[bot]
f5e4b67203
Apply Version Updates From Current Changes ( #8954 )
...
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-02-22 22:24:49 -03:00
Lucas Fernandes Nogueira
6edc563cf9
fix(core): deadlock on window destroy ( #8953 )
2024-02-22 22:02:13 -03:00
github-actions[bot]
0606ab326b
Apply Version Updates From Current Changes ( #8938 )
...
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-02-22 18:50:24 -03:00
Lucas Fernandes Nogueira
a76fb118ce
refactor(core): allow configuring both local and remote URLs on capability ( #8950 )
2024-02-22 15:15:16 -03:00
Lucas Fernandes Nogueira
e538ba586c
fix(cli): process spawn not working on Node.js for mobile commands, closes #6203 ( #8949 )
2024-02-22 15:14:55 -03:00
Amr Bashir
84c783f6bc
fix(bundler): remove fallback for license_file ( #8948 )
...
* fix(bundler): remove fallback for license_file
closes #8944
* Update .changes/bundler-license.md
* use license only on rpm
* change file
* Update .changes/bundler-rpm-license.md
---------
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2024-02-22 14:56:22 -03:00
Philipp Bokatius
6e3bd4b9f8
fix: center window ignores scale factors ( #8942 )
...
* fix: center window ignores scale factors
* chore: add .changes
* clippy
2024-02-22 16:30:27 +02:00
Lucas Fernandes Nogueira
fdcaf935fa
feat(webview): add reparent API ( #8939 )
...
* feat(webview): add reparent API
* fix build
* fix import
* remove cfg
* fix windows
* clone
* clone value
* ()
2024-02-22 08:52:27 -03:00
Amr Bashir
b5eb64728a
feat(bundler): enable dpi awareness for NSIS ( #8940 )
...
closes #8896
2024-02-22 08:52:19 -03:00
Lucas Fernandes Nogueira
d75713ac6c
chore(deps): update to wry 0.37 ( #8936 )
2024-02-21 18:45:05 -03:00
github-actions[bot]
af646520cf
Apply Version Updates From Current Changes ( #8918 )
...
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-02-21 12:00:32 -03:00
Lucas Fernandes Nogueira
361ec37fd4
chore(deps): update to tao 0.26 ( #8932 )
...
* chore(deps): update to tao 0.26
* fallback to crate name
* move struct to runtime
* tests
2024-02-21 11:25:42 -03:00
Lucas Fernandes Nogueira
a029b9f77e
feat(cli): codesign on iOS is optional for the simulator ( #8910 )
...
* feat(cli): codesign on iOS is optional for the simulator
* cargo-mobile2 0.10
2024-02-21 09:52:46 -03:00
Jason Tsai
3fb414b61a
fix(event): let once event return EventId
, close #8912 ( #8914 )
...
* fix(event): let once event return EventId
* Update .changes/core-once-event-return-event-id.md
2024-02-20 17:36:15 +02:00
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