tauri/examples
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
..
.icons fix(cli): corrupted icons in bundled macOS icons (#5698) 2022-11-28 08:57:32 -03:00
api chore(deps): update tao and wry to latest (#10655) 2024-08-16 20:30:34 -03:00
commands style: simplify string formatting (#10259) 2024-07-12 13:33:14 +03:00
file-associations chore: update license headers 2024 (#9043) 2024-03-01 08:29:01 -03:00
helloworld chore: update license headers 2024 (#9043) 2024-03-01 08:29:01 -03:00
isolation chore: update license headers 2024 (#9043) 2024-03-01 08:29:01 -03:00
multiwebview chore: update license headers 2024 (#9043) 2024-03-01 08:29:01 -03:00
multiwindow feat!: add Listener and Emitter traits (#9640) 2024-07-12 09:01:40 -03:00
navigation chore: update license headers 2024 (#9043) 2024-03-01 08:29:01 -03:00
parent-window feat!: add Listener and Emitter traits (#9640) 2024-07-12 09:01:40 -03:00
plugins/tauri-plugin-example chore: update license headers 2024 (#9043) 2024-03-01 08:29:01 -03:00
resources fix(utils): fix resources map becomes directory (#10293) 2024-08-16 23:03:14 -03:00
run-iteration chore: update license headers 2024 (#9043) 2024-03-01 08:29:01 -03:00
splashscreen feat(core): allow swapping the assets implementation (#9141) 2024-03-11 11:07:15 -03:00
state fix(example/state): correct invoke method path to __TAURI__.core.invoke() (#9817) 2024-05-19 11:16:23 +02:00
streaming refactor(core): return 200 on any IPC call, closes #10286 (#10585) 2024-08-13 08:39:20 -03:00
web chore: update license headers 2024 (#9043) 2024-03-01 08:29:01 -03:00
workspace chore: update license headers 2024 (#9043) 2024-03-01 08:29:01 -03:00
README.md docs(examples): add missing Readme and clarify existing (#3327) 2022-02-04 17:56:57 -03:00

Examples

Following directories contain examples of tauri app functionality.

There are different execution steps depending on the example. See each directory README.md for execution method.