electrobun 0.0.19-beta.18 → 0.0.19-beta.20
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/cli/index.ts +7 -3
package/package.json
CHANGED
package/src/cli/index.ts
CHANGED
|
@@ -156,9 +156,12 @@ async function ensureCoreDependencies() {
|
|
|
156
156
|
|
|
157
157
|
// Extract to dist directory
|
|
158
158
|
console.log('Extracting core dependencies...');
|
|
159
|
+
const distPath = join(ELECTROBUN_DEP_PATH, 'dist');
|
|
160
|
+
mkdirSync(distPath, { recursive: true });
|
|
161
|
+
|
|
159
162
|
await tar.x({
|
|
160
163
|
file: tempFile,
|
|
161
|
-
cwd:
|
|
164
|
+
cwd: distPath,
|
|
162
165
|
});
|
|
163
166
|
|
|
164
167
|
// Clean up temp file
|
|
@@ -398,6 +401,9 @@ if (commandArg === "init") {
|
|
|
398
401
|
// todo (yoav): init a repo folder structure
|
|
399
402
|
console.log("initializing electrobun project");
|
|
400
403
|
} else if (commandArg === "build") {
|
|
404
|
+
// Ensure core binaries are available before starting build
|
|
405
|
+
await ensureCoreDependencies();
|
|
406
|
+
|
|
401
407
|
// refresh build folder
|
|
402
408
|
if (existsSync(buildFolder)) {
|
|
403
409
|
rmdirSync(buildFolder, { recursive: true });
|
|
@@ -581,8 +587,6 @@ if (commandArg === "init") {
|
|
|
581
587
|
}
|
|
582
588
|
}
|
|
583
589
|
|
|
584
|
-
// Ensure core binaries are available
|
|
585
|
-
await ensureCoreDependencies();
|
|
586
590
|
|
|
587
591
|
// Download CEF binaries if needed when bundleCEF is enabled
|
|
588
592
|
if ((OS === 'macos' && config.build.mac?.bundleCEF) ||
|