aladdin-ai 1.0.0 ā 1.1.8
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/index.js +8 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -71,8 +71,14 @@ program
|
|
|
71
71
|
console.log(chalk.cyan(`\nš Opening ${fileName} for installation...`));
|
|
72
72
|
|
|
73
73
|
// Cross-platform open command
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
if (platform === 'darwin') {
|
|
75
|
+
await execa('open', [downloadPath]);
|
|
76
|
+
} else if (platform === 'win32') {
|
|
77
|
+
// Use shell: true or cmd /c to ensure 'start' works on Windows
|
|
78
|
+
await execa('cmd', ['/c', 'start', '', downloadPath]);
|
|
79
|
+
} else {
|
|
80
|
+
await execa('xdg-open', [downloadPath]);
|
|
81
|
+
}
|
|
76
82
|
|
|
77
83
|
} catch (err) {
|
|
78
84
|
spinner.fail(chalk.red('Failed to download Desktop App. Check your internet or GitHub release.'));
|