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]
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
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
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
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
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
Dimitris Apostolou
26f0f71a40
chore: fix various typos ( #9131 )
2024-03-11 16:25:20 +02: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
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
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
renovate[bot]
cd05827f9f
chore(deps) Update Rust crate log to 0.4.21 (dev) ( #9091 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-06 13:32:43 -03:00
Lucas Fernandes Nogueira
9323fb7cda
fix(utils): ToTokens impl for ResolvedCommand broken on release ( #9087 )
2024-03-05 14:54:24 -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
6a47dd212c
chore(utils): remove unused RemoteDomainAccessScope ( #9073 )
2024-03-04 21:10:45 -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
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
Amr Bashir
4b75834a41
chore: update license headers 2024 ( #9043 )
2024-03-01 08:29:01 -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
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
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
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
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
Lucas Fernandes Nogueira
bc5b5e671a
chore(linux): remove CSP tag on custom protocol response ( #8984 )
2024-02-26 13:08:19 -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
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
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
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
Lucas Nogueira
c426c0dca2
merge from 1.x
2024-02-19 08:03:05 -03:00
Lucas Nogueira
a4b82d9dba
chore: bump tauri-utils
2024-02-18 22:31:35 -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
Amr Bashir
5618f6d2ff
feat: relax plugin identifier requirements to alphanumeric and -
( #8856 )
...
closes #8820
2024-02-16 07:27:56 -03:00
Lucas Fernandes Nogueira
dd7571a780
fix(core): do not generate files if plugin has no permissions ( #8815 )
2024-02-07 22:26:16 -03:00
Fabian-Lars
ae0fe47c4c
fix(core): Compile error when bundle.license is set ( #8774 )
...
* fix(core): Compile error when bundle.license is set
* wrong package
2024-02-05 15:08:32 +02:00
github-actions[bot]
d54a2b055a
Apply Version Updates From Current Changes ( #8759 )
...
Co-authored-by: FabianLars <FabianLars@users.noreply.github.com>
2024-02-04 17:06:31 -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
Lucas Fernandes Nogueira
4e101f8016
refactor(core): enhance app rerun-if-changed for capabilities and frontend dist ( #8756 )
...
* refactor(core): enhance app rerun-if-changed for capabilities and frontend dist
* always rerun-if-changed=capabilities
* fix todo
* rerun if plugin permissions change
* add change files
2024-02-04 11:42:13 -03:00
Lucas Fernandes Nogueira
0f2789cd67
fix(build): do not rewrite unchanged schema ( #8757 )
...
* fix(build): do not rewrite unchanged schema
* typo
2024-02-04 12:45:59 +01:00
github-actions[bot]
88a1dd17c3
Apply Version Updates From Current Changes ( #8638 )
...
* apply version updates
* promote to beta
* fix check version
* update dependencies section [skip ci]
* update npm versions
---------
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-02-03 10:59:09 -03:00