tauri/core
Amr Bashir 9e891933d8
fix(utils): fix resources map becomes directory (#10293)
* fix(utils): fix resources map becomes directory

closes #10187

Fixes the behavior of mapped resources generating extra directory, for example:
`"../resources/user.json": "resources/user.json"` generates this resource `resources/user.json/user.json`
where it should generate `resources/user.json`

This PR includes a refactor of the Iterator implementation which splits it into more scoped functions and relis on recursing instead of a loop which makes the code a lot more readable and easier to maintain.

* clippy

* cover more cases

* clippy

* fix glob into directory, not resolving target correctly

* return error when resource origin path doesn't exist

* fix resources example build

* Update .changes/resources-map-becoming-dirs.md

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-08-16 23:03:14 -03:00
..
tauri chore(deps): update tao and wry to latest (#10655) 2024-08-16 20:30:34 -03:00
tauri-acl-schema prevent unnecessary rebuilds when working in the cargo workspace (#10442) 2024-08-02 07:30:02 -03:00
tauri-build chore(deps) Update Rust crate json-patch to v2 (dev) (#10515) 2024-08-10 16:45:24 -03:00
tauri-codegen chore: update brotli dependency to v6 (#10436) 2024-08-11 08:23:31 -03:00
tauri-config-schema refactor(core): serialize response once, closes #5641 (#10641) 2024-08-15 16:15:11 -03:00
tauri-macros apply version updates (#10532) 2024-08-08 23:52:47 -03:00
tauri-plugin apply version updates (#10532) 2024-08-08 23:52:47 -03:00
tauri-runtime chore(deps): update tao and wry to latest (#10655) 2024-08-16 20:30:34 -03:00
tauri-runtime-wry chore(deps): update tao and wry to latest (#10655) 2024-08-16 20:30:34 -03:00
tauri-utils fix(utils): fix resources map becomes directory (#10293) 2024-08-16 23:03:14 -03:00
tests yarn prettier --write core (#10471) 2024-08-10 15:44:33 -03:00