aladdin-ai 1.1.7 → 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.
Files changed (2) hide show
  1. package/index.js +8 -2
  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
- const openCmd = platform === 'darwin' ? 'open' : platform === 'win32' ? 'start' : 'xdg-open';
75
- await execa(openCmd, [downloadPath]);
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.'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aladdin-ai",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "The official CLI for AladdinAI Platform. Powered by RCF Protocol.",
5
5
  "main": "index.js",
6
6
  "bin": {