Update library paths and resource configuration for PDFium integration

This commit is contained in:
Thorsten Sommer 2025-05-02 21:15:17 +02:00
parent 2bfaf1f3f5
commit 4626c26a41
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 8 additions and 2 deletions

View File

@ -55,14 +55,14 @@ public static class Pdfium
} }
var pdfiumLibSourcePath = Path.Join(pdfiumTmpExtractPath.FullName, library.Path); 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)) if (!File.Exists(pdfiumLibSourcePath))
{ {
Console.WriteLine($" failed to find the library file '{pdfiumLibSourcePath}'"); Console.WriteLine($" failed to find the library file '{pdfiumLibSourcePath}'");
return; return;
} }
Directory.CreateDirectory(Path.Join(cwd, "target", "resources")); Directory.CreateDirectory(Path.Join(cwd, "resources", "libraries"));
if (File.Exists(pdfiumLibTargetPath)) if (File.Exists(pdfiumLibTargetPath))
File.Delete(pdfiumLibTargetPath); File.Delete(pdfiumLibTargetPath);

View File

@ -29,6 +29,9 @@
"scope": [ "scope": [
"http://localhost" "http://localhost"
] ]
},
"fs": {
"scope": ["$RESOURCE/resources/*"]
} }
}, },
"windows": [ "windows": [
@ -57,6 +60,9 @@
"externalBin": [ "externalBin": [
"../app/MindWork AI Studio/bin/dist/mindworkAIStudioServer" "../app/MindWork AI Studio/bin/dist/mindworkAIStudioServer"
], ],
"resources": [
"resources/*"
],
"macOS": { "macOS": {
"exceptionDomain": "localhost" "exceptionDomain": "localhost"
}, },