fix(build): fix app permissions not included when there isn't any inlined plugins (#9025)

* fix(build): fix app permissions not included when there isn't any inlined plugins

* simplify

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
This commit is contained in:
Amr Bashir 2024-02-29 04:41:40 +02:00 committed by GitHub
parent f5e7f3843e
commit 8fcbce9404
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -434,9 +434,9 @@ pub fn app_manifest_permissions(
&app_out_dir,
// filter out directories containing inlined plugins
|p| {
inlined_plugins_permissions
!inlined_plugins_permissions
.iter()
.any(|inlined_path| p.strip_prefix(inlined_path).is_err())
.any(|inlined_path| p.starts_with(inlined_path))
},
)?);
}