bunite-core 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/shared/paths.ts +2 -3
package/package.json
CHANGED
package/src/shared/paths.ts
CHANGED
|
@@ -35,8 +35,7 @@ export function resolveBunitePackageRoot(): string | null {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
function hasCefRuntime(dir: string): boolean {
|
|
38
|
-
return existsSync(join(dir, "libcef.dll")) || existsSync(join(dir, "libcef.so"))
|
|
39
|
-
|| existsSync(join(dir, "Release", "libcef.dll")) || existsSync(join(dir, "Release", "libcef.so"));
|
|
38
|
+
return existsSync(join(dir, "libcef.dll")) || existsSync(join(dir, "libcef.so"));
|
|
40
39
|
}
|
|
41
40
|
|
|
42
41
|
function parseCefVersion(name: string): number[] | null {
|
|
@@ -156,7 +155,7 @@ export function resolveNativeArtifacts(): ResolvedNativeArtifacts {
|
|
|
156
155
|
processHelperPath: packagedProcessHelperPath,
|
|
157
156
|
cefDir: (packagedCefDir && existsSync(packagedCefDir))
|
|
158
157
|
? packagedCefDir
|
|
159
|
-
: resolveCefDir(
|
|
158
|
+
: resolveCefDir([nativePackageRoot, packageRoot].filter(Boolean) as string[])
|
|
160
159
|
};
|
|
161
160
|
}
|
|
162
161
|
|