electrobun 0.0.19-beta.18 → 0.0.19-beta.19

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cli/index.ts +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electrobun",
3
- "version": "0.0.19-beta.18",
3
+ "version": "0.0.19-beta.19",
4
4
  "description": "Build ultra fast, tiny, and cross-platform desktop apps with Typescript.",
5
5
  "license": "MIT",
6
6
  "author": "Blackboard Technologies Inc.",
package/src/cli/index.ts CHANGED
@@ -398,6 +398,9 @@ if (commandArg === "init") {
398
398
  // todo (yoav): init a repo folder structure
399
399
  console.log("initializing electrobun project");
400
400
  } else if (commandArg === "build") {
401
+ // Ensure core binaries are available before starting build
402
+ await ensureCoreDependencies();
403
+
401
404
  // refresh build folder
402
405
  if (existsSync(buildFolder)) {
403
406
  rmdirSync(buildFolder, { recursive: true });
@@ -581,8 +584,6 @@ if (commandArg === "init") {
581
584
  }
582
585
  }
583
586
 
584
- // Ensure core binaries are available
585
- await ensureCoreDependencies();
586
587
 
587
588
  // Download CEF binaries if needed when bundleCEF is enabled
588
589
  if ((OS === 'macos' && config.build.mac?.bundleCEF) ||