mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-05-03 09:39:47 +00:00
Update library paths and resource configuration for PDFium integration
This commit is contained in:
parent
2bfaf1f3f5
commit
4626c26a41
@ -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);
|
||||
|
||||
|
@ -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"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user