tauri/core
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
..
tauri feat(core): allow defining global API script on plugin build (#9156) 2024-03-12 12:01:13 -03:00
tauri-build feat(core): allow defining global API script on plugin build (#9156) 2024-03-12 12:01:13 -03:00
tauri-codegen feat(core): allow defining global API script on plugin build (#9156) 2024-03-12 12:01:13 -03:00
tauri-config-schema fix(acl): inconsistencies on urlpattern usage for remote domain URL (#9133) 2024-03-11 13:39:17 -03:00
tauri-macros Apply Version Updates From Current Changes (#9149) 2024-03-11 15:14:25 -03:00
tauri-plugin feat(core): allow defining global API script on plugin build (#9156) 2024-03-12 12:01:13 -03:00
tauri-runtime Apply Version Updates From Current Changes (#9149) 2024-03-11 15:14:25 -03:00
tauri-runtime-wry Apply Version Updates From Current Changes (#9149) 2024-03-11 15:14:25 -03:00
tauri-utils feat(core): allow defining global API script on plugin build (#9156) 2024-03-12 12:01:13 -03:00
tests fix(acl): inconsistencies on urlpattern usage for remote domain URL (#9133) 2024-03-11 13:39:17 -03:00