diff --git a/package.json b/package.json index 16203fea..3ee58570 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "test": "vitest", "coverage": "vitest run --coverage", "prepare": "husky install", - "replace-version": "node ./scripts/replace-version.cjs" + "replace-version": "node scripts/replace-version.cjs" }, "dependencies": { "@codemirror/commands": "^6.2.1", diff --git a/plugin-runtime/src/index.worker.ts b/plugin-runtime/src/index.worker.ts index 491adef1..794607b1 100644 --- a/plugin-runtime/src/index.worker.ts +++ b/plugin-runtime/src/index.worker.ts @@ -10,7 +10,7 @@ new Promise(async () => { const pathPkg = path.join(pluginDir, 'package.json'); const pkg = JSON.parse(readFileSync(pathPkg, 'utf8')); - const mod = (await import(pathMod)).default ?? {}; + const mod = (await import(`file://${pathMod}`)).default ?? {}; const info: PluginInfo = { capabilities: [], diff --git a/src-tauri/gen/schemas/windows-schema.json b/src-tauri/gen/schemas/windows-schema.json index 4776f4b7..84b22800 100644 --- a/src-tauri/gen/schemas/windows-schema.json +++ b/src-tauri/gen/schemas/windows-schema.json @@ -2512,69 +2512,6 @@ "clipboard-manager:deny-write-text" ] }, - { - "description": "deep-link:default -> Allows reading the opened deep link via the get_current command", - "type": "string", - "enum": [ - "deep-link:default" - ] - }, - { - "description": "deep-link:allow-get-current -> Enables the get_current command without any pre-configured scope.", - "type": "string", - "enum": [ - "deep-link:allow-get-current" - ] - }, - { - "description": "deep-link:allow-is-registered -> Enables the is_registered command without any pre-configured scope.", - "type": "string", - "enum": [ - "deep-link:allow-is-registered" - ] - }, - { - "description": "deep-link:allow-register -> Enables the register command without any pre-configured scope.", - "type": "string", - "enum": [ - "deep-link:allow-register" - ] - }, - { - "description": "deep-link:allow-unregister -> Enables the unregister command without any pre-configured scope.", - "type": "string", - "enum": [ - "deep-link:allow-unregister" - ] - }, - { - "description": "deep-link:deny-get-current -> Denies the get_current command without any pre-configured scope.", - "type": "string", - "enum": [ - "deep-link:deny-get-current" - ] - }, - { - "description": "deep-link:deny-is-registered -> Denies the is_registered command without any pre-configured scope.", - "type": "string", - "enum": [ - "deep-link:deny-is-registered" - ] - }, - { - "description": "deep-link:deny-register -> Denies the register command without any pre-configured scope.", - "type": "string", - "enum": [ - "deep-link:deny-register" - ] - }, - { - "description": "deep-link:deny-unregister -> Denies the unregister command without any pre-configured scope.", - "type": "string", - "enum": [ - "deep-link:deny-unregister" - ] - }, { "type": "string", "enum": [ diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index c1133305..72b7a8d0 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -897,7 +897,10 @@ async fn cmd_request_to_curl( let request_json = serde_json::to_string(&rendered).map_err(|e| e.to_string())?; let manager: State = app.state(); - let import_response = manager.inner().run_export_curl(request_json.as_str()).await?; + let import_response = manager + .inner() + .run_export_curl(request_json.as_str()) + .await?; Ok(import_response.data) } @@ -1569,6 +1572,7 @@ async fn cmd_check_for_updates( #[cfg_attr(mobile, tauri::mobile_entry_point)] pub fn run() { + #[allow(unused_mut)] let mut builder = tauri::Builder::default() .plugin( tauri_plugin_log::Builder::default() @@ -1613,11 +1617,6 @@ pub fn run() { builder = builder.plugin(tauri_plugin_mac_window::init()); } - #[cfg(target_os = "linux")] - { - builder = builder; // Don't complain about not being mut - } - builder .setup(|app| { let app_data_dir = app.path().app_data_dir().unwrap(); diff --git a/src-tauri/tauri-plugin-plugin-runtime/src/nodejs.rs b/src-tauri/tauri-plugin-plugin-runtime/src/nodejs.rs index e28cf5f1..ec7741a2 100644 --- a/src-tauri/tauri-plugin-plugin-runtime/src/nodejs.rs +++ b/src-tauri/tauri-plugin-plugin-runtime/src/nodejs.rs @@ -24,11 +24,15 @@ pub async fn node_start(app: &AppHandle, temp_dir: &PathBuf) -> S .path() .resolve("plugins", BaseDirectory::Resource) .expect("failed to resolve plugin directory resource"); + let plugins_dir = plugins_dir.to_string_lossy().to_string(); + + // Remove UNC prefix for Windows paths + let plugins_dir = plugins_dir.replace("\\\\?\\", ""); info!( "Starting plugin runtime port_file={} plugins_dir={}", port_file_path.to_string_lossy(), - plugins_dir.to_string_lossy(), + plugins_dir, ); let (mut rx, _child) = app