* enhance: include permissions in default permission description
* Only include in schema
* Remove 'which includes` to tauri's build script
* Also bump utils
* Clippy
My local clippy didn't report this, weird
* Use `which enables all commands`
for default permissions that enables everything
* Extract description into a variable
* Generate permissions with or without description
* Tweak the docs and generate 'which includes'
* Simplify to just `includes`
* Docs change change file
* Put the change in minor
* Update .changes/include-permissions-in-schema.md
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
* Remove unused change file
---------
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
* fix: channel no longer being always allowed
* Prettier
* Don't change the plugin name just yet
* Handle TAURI_CHANNEL as a special case in macro
* remove commented out code
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
The initial version of the MR that introduced this to Wry
(https://github.com/tauri-apps/wry/pull/1496)
had no Android implementation, but it has been added
in a later version of the MR, so the comment is no longer valid.
* docs: remove outdated `tauri_build::build` docs
The docstring has been unchanged ever since
40ac52971e (2021).
The `build()` function has grown massivly since then,
now it's not only about Windows.
* docs: `tauri_build::build`: see `try_build` for more config
`try_build` is not only about not panicing, but it also takes the
`attributes: Attributes` argument,
which is very important for controlling command permissions.
* Update crates/tauri-build/src/lib.rs
Co-authored-by: Amr Bashir <github@amrbashir.me>
* update docs
---------
Co-authored-by: Amr Bashir <github@amrbashir.me>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
* docs: clarify Capability::windows/webviews OR nature
It is intuitive to expect that for the capability to be enabled,
_both_ the window label and the webview label have to match.
However, this is not the case: the capability is enabled
if _either_ the window label matches a pattern
in `Capability::windows` _or_ the webview label matches a pattern
in `Capability::webviews`.
This commit should somewhat clarify this oddity
and protect developers from adding excessive permissions.
For reference, `Capability::webviews` was added in
0cb0a15ce2
(https://github.com/tauri-apps/tauri/pull/8789).
* Apply suggestions from code review
Co-authored-by: Amr Bashir <github@amrbashir.me>
* update schemas
---------
Co-authored-by: Amr Bashir <github@amrbashir.me>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
* feat(uninstaller): remove autostart entry during uninstallation
Signed-off-by: animeshchaudri <animeshchaudhri3@gmail.com>
* add change file
* check when not updating
* delete registry value only if install mode is "currentUser"
---------
Signed-off-by: animeshchaudri <animeshchaudhri3@gmail.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
* Remove description from runtime
* Just use none instead
* global_scope_schema and add comments about it
* Tweak wording
* remove comments [skip ci]
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
* fix: AppHandle::restart() may not send RunEvent::Exit event
* docs: add changelog: `AppHandle::restart()` may not send `RunEvent::Exit` event before exiting the application.
* style: cargo fmt
* avoid deadlock on main thread
* do not let the restart be prevented
leads to a deadlock currently
* Apply suggestions from code review
* lint
* do not emit RunEvent on main thread
* re-export RESTART_EXIT_CODE
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
* Use a single closure for filtering
* clippy
* Update crates/tauri/src/manager/mod.rs
---------
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
* Add a new option to remove unused commands
* Fix compile
* Add markers to all core plugins
* Clippy
* Add allow unused when running with this
* Use build script to generate allowed-commands.json
* Clean up and add proper reruns
* Wrong path
* Revert to #[cfg_attr(not(debug_assertions), allow(unused))]
* Add change files
* Some more docs
* Add version requirement note
* Avoid rerun if no capabilities folder
* Remove unused box
* small cleanup
* fix channel
* implement for app handler too
* rely on core:default for channel perms
* Move this feature to config
* Docs change
* Forget one last remove_unused_commands
* Remove removeUnusedCommands from helloworld
* tell handler that the app ACL manifest exists
* update change file
* update doc
* update change file
* Use a struct to pass the data instead of env var
* Clippy
* Fix can't exclude inlined plugins on Windows
due to UNC paths...
* Apply suggestion from code review
* Remove remove on empty to tauri-build
* Revert "Remove remove on empty to tauri-build"
This reverts commit b727dd621e.
* Centralize remove_file(allowed_commands_file_path)
* Escape glob pattern
* update change file
* remove unused commands for dev too
* Update crates/tauri-utils/src/config.rs
Co-authored-by: Fabian-Lars <github@fabianlars.de>
* regen schema
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
Co-authored-by: Fabian-Lars <github@fabianlars.de>
* Add support for fetching cookies by url
* Add support for fetching all cookies
* add missing getters, update change file
* update docs for windows deadlock
* fix mobile build
* Update crates/tauri-runtime/Cargo.toml
* add docs for stability [skip ci]
---------
Co-authored-by: Adam Charron <acharron@higherlogic.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
* moving to macbook
* that was so weird to implement
* rm patch
* Discard changes to Cargo.lock
* Create change-pr-12366.md
* add missing builder fn
* remove test
* split change files
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app>