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.
- package/bin/electrobun.cjs +8 -3
- package/package.json +1 -1
package/bin/electrobun.cjs
CHANGED
|
@@ -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
|
|
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