From 4626c26a41b5765bae84d7ba46f0ab625c292e32 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Fri, 2 May 2025 21:15:17 +0200 Subject: [PATCH] Update library paths and resource configuration for PDFium integration --- app/Build/Commands/Pdfium.cs | 4 ++-- runtime/tauri.conf.json | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/Build/Commands/Pdfium.cs b/app/Build/Commands/Pdfium.cs index d3e72ef8..349e3590 100644 --- a/app/Build/Commands/Pdfium.cs +++ b/app/Build/Commands/Pdfium.cs @@ -55,14 +55,14 @@ public static class Pdfium } var pdfiumLibSourcePath = Path.Join(pdfiumTmpExtractPath.FullName, library.Path); - var pdfiumLibTargetPath = Path.Join(cwd, "target", "resources", library.Filename); + var pdfiumLibTargetPath = Path.Join(cwd, "resources", "libraries", library.Filename); if (!File.Exists(pdfiumLibSourcePath)) { Console.WriteLine($" failed to find the library file '{pdfiumLibSourcePath}'"); return; } - Directory.CreateDirectory(Path.Join(cwd, "target", "resources")); + Directory.CreateDirectory(Path.Join(cwd, "resources", "libraries")); if (File.Exists(pdfiumLibTargetPath)) File.Delete(pdfiumLibTargetPath); diff --git a/runtime/tauri.conf.json b/runtime/tauri.conf.json index 2a89fd03..5f7d46d9 100644 --- a/runtime/tauri.conf.json +++ b/runtime/tauri.conf.json @@ -29,6 +29,9 @@ "scope": [ "http://localhost" ] + }, + "fs": { + "scope": ["$RESOURCE/resources/*"] } }, "windows": [ @@ -57,6 +60,9 @@ "externalBin": [ "../app/MindWork AI Studio/bin/dist/mindworkAIStudioServer" ], + "resources": [ + "resources/*" + ], "macOS": { "exceptionDomain": "localhost" },