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 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);
|
||||||
|
|
||||||
|
@ -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"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user