4runr-os 2.1.41 → 2.1.45
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/scripts/setup.js +15 -9
package/package.json
CHANGED
package/scripts/setup.js
CHANGED
|
@@ -303,8 +303,8 @@ if (isWindows && rustInstalled && rustNeedsGNU) {
|
|
|
303
303
|
}
|
|
304
304
|
|
|
305
305
|
try {
|
|
306
|
-
execSync('rustup toolchain install stable-x86_64-pc-windows-gnu', { stdio: '
|
|
307
|
-
execSync('rustup default stable-x86_64-pc-windows-gnu', { stdio: '
|
|
306
|
+
execSync('rustup toolchain install stable-x86_64-pc-windows-gnu', { stdio: 'pipe' });
|
|
307
|
+
execSync('rustup default stable-x86_64-pc-windows-gnu', { stdio: 'pipe' });
|
|
308
308
|
console.log('✅ GNU toolchain installed and set as default');
|
|
309
309
|
} catch (error) {
|
|
310
310
|
console.warn('⚠️ Failed to install GNU toolchain automatically');
|
|
@@ -315,9 +315,10 @@ if (isWindows && rustInstalled && rustNeedsGNU) {
|
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
318
|
+
// Continue with rest of setup (outside Windows-specific block)
|
|
319
|
+
console.log('\n📦 Checking 4runr-os installation...');
|
|
320
|
+
try {
|
|
321
|
+
execSync('4r --version', { stdio: 'ignore' });
|
|
321
322
|
console.log('✅ 4runr-os is installed');
|
|
322
323
|
} catch {
|
|
323
324
|
console.log('⚠️ 4runr-os not found in PATH');
|
|
@@ -376,8 +377,13 @@ if (isWindows && rustInstalled && rustNeedsGNU) {
|
|
|
376
377
|
}
|
|
377
378
|
|
|
378
379
|
// Run the setup
|
|
379
|
-
runSetup()
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
380
|
+
runSetup()
|
|
381
|
+
.then(() => {
|
|
382
|
+
// Setup completed successfully
|
|
383
|
+
process.exit(0);
|
|
384
|
+
})
|
|
385
|
+
.catch((error) => {
|
|
386
|
+
console.error('\n❌ Setup failed:', error);
|
|
387
|
+
process.exit(1);
|
|
388
|
+
});
|
|
383
389
|
|