|
@@ -175,6 +175,16 @@ fn get_internal(merge_config: Option<&str>, reload: bool) -> crate::Result<Confi
|
|
// revert to previous working directory
|
|
// revert to previous working directory
|
|
set_current_dir(current_dir)?;
|
|
set_current_dir(current_dir)?;
|
|
|
|
|
|
|
|
+ for (plugin, conf) in &config.plugins.0 {
|
|
|
|
+ set_var(
|
|
|
|
+ format!(
|
|
|
|
+ "TAURI_{}_PLUGIN_CONFIG",
|
|
|
|
+ plugin.to_uppercase().replace('-', "_")
|
|
|
|
+ ),
|
|
|
|
+ serde_json::to_string(&conf)?,
|
|
|
|
+ );
|
|
|
|
+ }
|
|
|
|
+
|
|
*config_handle().lock().unwrap() = Some(ConfigMetadata {
|
|
*config_handle().lock().unwrap() = Some(ConfigMetadata {
|
|
inner: config,
|
|
inner: config,
|
|
extensions,
|
|
extensions,
|