electrobun 0.0.19-beta.37 → 0.0.19-beta.39
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 +32 -22
package/package.json
CHANGED
package/src/cli/index.ts
CHANGED
|
@@ -162,17 +162,21 @@ async function ensureCoreDependencies() {
|
|
|
162
162
|
const distPath = join(ELECTROBUN_DEP_PATH, 'dist');
|
|
163
163
|
mkdirSync(distPath, { recursive: true });
|
|
164
164
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
165
|
+
// Use Windows native tar.exe on Windows due to npm tar library issues
|
|
166
|
+
if (OS === 'win') {
|
|
167
|
+
console.log('Using Windows native tar.exe for reliable extraction...');
|
|
168
|
+
execSync(`tar -xf "${tempFile}" -C "${distPath}"`, {
|
|
169
|
+
stdio: 'inherit',
|
|
170
|
+
cwd: distPath
|
|
171
|
+
});
|
|
172
|
+
} else {
|
|
173
|
+
await tar.x({
|
|
174
|
+
file: tempFile,
|
|
175
|
+
cwd: distPath,
|
|
176
|
+
preservePaths: false,
|
|
177
|
+
strip: 0,
|
|
178
|
+
});
|
|
179
|
+
}
|
|
176
180
|
|
|
177
181
|
// Clean up temp file
|
|
178
182
|
unlinkSync(tempFile);
|
|
@@ -264,17 +268,23 @@ async function ensureCEFDependencies() {
|
|
|
264
268
|
|
|
265
269
|
// Extract to dist directory
|
|
266
270
|
console.log('Extracting CEF dependencies...');
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
271
|
+
const cefDistPath = join(ELECTROBUN_DEP_PATH, 'dist');
|
|
272
|
+
|
|
273
|
+
// Use Windows native tar.exe on Windows due to npm tar library issues
|
|
274
|
+
if (OS === 'win') {
|
|
275
|
+
console.log('Using Windows native tar.exe for reliable extraction...');
|
|
276
|
+
execSync(`tar -xf "${tempFile}" -C "${cefDistPath}"`, {
|
|
277
|
+
stdio: 'inherit',
|
|
278
|
+
cwd: cefDistPath
|
|
279
|
+
});
|
|
280
|
+
} else {
|
|
281
|
+
await tar.x({
|
|
282
|
+
file: tempFile,
|
|
283
|
+
cwd: cefDistPath,
|
|
284
|
+
preservePaths: false,
|
|
285
|
+
strip: 0,
|
|
286
|
+
});
|
|
287
|
+
}
|
|
278
288
|
|
|
279
289
|
// Clean up temp file
|
|
280
290
|
unlinkSync(tempFile);
|