electrobun 0.0.19-beta.11 → 0.0.19-beta.12

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.
@@ -80,16 +80,21 @@ async function ensureCliBinary() {
80
80
  // Download tarball
81
81
  await downloadFile(tarballUrl, tarballPath);
82
82
 
83
- // Extract CLI binary
83
+ // Extract CLI binary
84
84
  await tar.x({
85
85
  file: tarballPath,
86
- cwd: cacheDir,
87
- strip: 1 // Remove the top-level directory
86
+ cwd: cacheDir
87
+ // No strip needed - CLI tarball contains just the binary
88
88
  });
89
89
 
90
90
  // Clean up tarball
91
91
  unlinkSync(tarballPath);
92
92
 
93
+ // Check if CLI binary was extracted
94
+ if (!existsSync(cliBinary)) {
95
+ throw new Error(`CLI binary not found at ${cliBinary} after extraction`);
96
+ }
97
+
93
98
  // Make executable on Unix systems
94
99
  if (platform !== 'win') {
95
100
  chmodSync(cliBinary, '755');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electrobun",
3
- "version": "0.0.19-beta.11",
3
+ "version": "0.0.19-beta.12",
4
4
  "description": "Build ultra fast, tiny, and cross-platform desktop apps with Typescript.",
5
5
  "license": "MIT",
6
6
  "author": "Blackboard Technologies Inc.",