fix: 修复了一些安全问题

This commit is contained in:
hicccc77
2026-03-14 19:34:50 +08:00
parent b274c99b91
commit 2d711cca80

View File

@@ -595,6 +595,8 @@ export class WcdbCore {
const resourcePaths = [
dllDir, // DLL 所在目录
dirname(dllDir), // 上级目录
process.resourcesPath, // 打包后 Contents/Resources
process.resourcesPath ? join(process.resourcesPath as string, 'resources') : null, // Contents/Resources/resources
this.resourcesPath, // 配置的资源路径
join(process.cwd(), 'resources') // 开发环境
].filter(Boolean)