File tree Expand file tree Collapse file tree
tooling/bundler/src/bundle/windows/msi Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ " tauri-bundler " : patch
3+ ---
4+
5+ Fixes processing of resources with glob patterns when there are nested directories on Windows.
Original file line number Diff line number Diff line change @@ -799,6 +799,13 @@ fn generate_resource_data(settings: &Settings) -> crate::Result<ResourceMap> {
799799 . into_string ( )
800800 . expect ( "failed to read resource path" ) ;
801801
802+ // In some glob resource paths like `assets/**/*` a file might appear twice
803+ // because the `tauri_utils::resources::ResourcePaths` iterator also reads a directory
804+ // when it finds one. So we must check it before processing the file.
805+ if added_resources. contains ( & resource_path) {
806+ continue ;
807+ }
808+
802809 added_resources. push ( resource_path. clone ( ) ) ;
803810
804811 let resource_entry = ResourceFile {
You can’t perform that action at this time.
0 commit comments