Lucas Fernandes Nogueira
d0510f52eb
refactor(core): serialize response once, closes #5641 ( #10641 )
...
* refactor(core): serialize response once closes #5641
This change impacts both the custom protocol and the postMessage based IPC implementations. Basically it changes the whole IPC mechanism to work on raw JSON strings so we do not need to serialize a serde_json::Value after serializing to it from a user-provided type.
i benchmarked this with a 150MB file response (returning Vec<u8> instead of tauri::ipc::Response since the latter does not serialize at all) and it went from 29s to 23s (custom protocol) and from 54s to 48s (post message) on macOS.
* fix mobile & lint
* clippy
2024-08-15 16:15:11 -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
KV
10e30c5139
fix: 'ndecorated' typo in window shadow description ( #10527 )
2024-08-08 10:47:52 +08: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
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
chip
b32295de18
prevent unnecessary rebuilds when working in the cargo workspace ( #10442 )
...
* hash codegen image cache output
* remove left over dbg! statement
* prevent info.plist from workspace rebuilds
* prevent schema generation from workspace rebuilds
* use new `Cached` struct in `CachedIcon`
* fmt
* use full import for cached plist
* use `to_vec()` for raw icons
2024-08-02 07:30:02 -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
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
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
Fabian-Lars
7acac58d23
docs(core): Fix syntax in tauri.conf.json example ( #10299 )
2024-07-17 04:27:20 +03:00
Tony
11aa7743e7
enhance!(nsis): use !ifmacrodef
for installer hooks ( #10177 )
2024-07-03 05:48:22 +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
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
Tony
f21029b1bc
feat!(nsis): add an option to customize start menu folder ( #9994 )
2024-06-26 09:17:02 +03:00
Tillmann
b2ff840e83
Feat: Improved Security Docstrings and Schema Newline Handling ( #10028 )
...
* Refactor Code Docs
* updated schemas
* cargo fmt whitespace fix
* downgrade cargo-platform to 0.1.7
---------
Co-authored-by: Lucas Nogueira <118899497+lucasfernog-crabnebula@users.noreply.github.com>
2024-06-13 18:31:12 +03:00
Tony
5b769948a8
feat(core): add include_image
macro ( #9959 )
2024-06-06 06:03:11 +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
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
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
Tillmann
4942d809ab
feat: Auto Generation of ACL Schema File for Documentation ( #9903 )
...
* Add auto generated acl schema files for docs
* update CI
---------
Co-authored-by: Lucas Nogueira <118899497+lucasfernog-crabnebula@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@crabnebula.dev>
2024-05-29 09:32:58 -03:00
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
Mariotaku
fd2d7cf8b3
feat(android): aware of version info from tauri config ( #9856 )
...
* feat(android): versionName and versionCode support
* formatted code and updated schema
* fix config, cleanup generation
* update docs
* mention default version for android
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-05-24 10:56:21 -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
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
Tony
4973d73a23
feat: Add zoom hotkey polyfill for non windows platforms ( #9386 )
2024-04-08 22:42:51 +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
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
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
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
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
Amr Bashir
4b75834a41
chore: update license headers 2024 ( #9043 )
2024-03-01 08:29:01 -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
a76fb118ce
refactor(core): allow configuring both local and remote URLs on capability ( #8950 )
2024-02-22 15:15:16 -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 Nogueira
c426c0dca2
merge from 1.x
2024-02-19 08:03:05 -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
Fabian-Lars
3bf6bc36da
docs: Fix broken config link ( #8752 )
...
* docs: Fix broken config link
* regen
2024-02-04 11:56:28 -03:00
Amr Bashir
8de308d1bf
feat(core): implement new config structure ( #8723 )
...
* feat(core): implement new config structure
RFC#5 f3e82a6b0c/texts/0005-tauri-config-restructure.md
* fixes
* remove tauri-plugin copy [skip ci]
* move platform specific configs
* fix build
* fix cli
* doctests
* change files
* read updater plugin config on CLI
* doctests
* remove env var from docs
* fix getting pubkey
* add migrations
* clippy
* update change file [skip ci]
* rename frontendDist to prodFrontend?
* Revert "rename frontendDist to prodFrontend?"
This reverts commit ef7394f085
.
* fix all_features check
* fix field name
* single license getter on bundler
* readd msiexec_args
* remove unused fixture
* update template
* Update .changes/tauri-bundle-settings-rfc-5.md
* Update .changes/config-restructure-rfc-5.md
* lint bundler, fix change file
* rename AppUrl to FrontendDist, add explicit variants for docs
* fix build
* lint
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2024-02-03 00:39:48 -03:00
time-river
6639a579c7
feat(core): add support to setting a webview proxy, closes #4263 ( #8441 )
...
* feat(wry): support proxy in wry runtime
wry has been supported http/socks5 proxy in
[#1006 ](https://github.com/tauri-apps/wry/pull/1006 ), which has been
merged in [commit
3cc4d79](3cc4d79843
).
This patch aims to support its feature.
Signed-off-by: lin fu <river@vvl.me>
* Apply suggestions from code review
* Apply suggestions from code review
* Update core/tauri-runtime-wry/src/lib.rs
* Update core/tauri/src/window/mod.rs
* add macos-proxy flag
* add change file
* delete file
* update change file
* use macos-14 runner to test core
---------
Signed-off-by: lin fu <river@vvl.me>
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-02-01 08:53:32 -03:00
Naman Garg
d6c7568c27
feat(bundler): Add files
option to the AppImage Configuration. ( #8720 )
...
* Add `files` option to Appimage
* Add .changes file
2024-02-01 02:53:26 +02:00
Amr Bashir
9eaeb5a8cd
refactor: refactor parent APIs on WindowBuilder
( #8622 )
...
* refactor: refactor parent APIs on `WindowBuilder`
closes #8587 #1643
* fix build
* clippy
* support parent in JS and config
* change files
* fix build
* clippy
* fix doctests
* fix linux build
* fix doctests
* update docs
* fix api, update example to use JS API
* fix merge
* lint
* fix tests on windows
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-01-31 13:59:14 -03:00
Amr Bashir
a2fc3a6357
feat(api/window): add visible-on-all-workspaces, closes #8652 ( #8657 )
...
* feat(api/window): add visible-on-all-worksapces, closes #8652
* fix build and generate schema
* Update .changes/api-set-visible-on-all-workspaces.md
* revert permissions
* fix alias
* revert set_icon change
* add missing permission
---------
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2024-01-31 12:36:39 -03:00
Amr Bashir
58fe2e812a
fix: improvements and ipc fixes for loading window content using custom protocol ( #8670 )
...
* fix: improvements and ipc fixes for loading window content using custom protocol
closes #5478
* Discard changes to tooling/cli/Cargo.lock
* clippy
* fix tests
* typo
* fix webviewurl deserialize
* resolve todo, fixes
* fmt
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-01-31 09:38:25 -03:00
Fabian-Lars
38b8e67237
feat: Add support for deep links ( #8680 )
...
* initial windows impl
* macos
* adapt windows impl to config changes for macos
* debian
* add missing x-scheme-handler prefix
* bundle xdg-mime
* typo
* revert messed up fmt
* rm pnpm lock
* rm todo
* Update core/tauri-utils/src/config.rs
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
* Update core/tauri-utils/src/config.rs
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
* &Option<> -> Option<&>
* DL0 -> R7
---------
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
2024-01-29 18:59:45 +02:00