starlight-cli 1.0.2 → 1.0.3
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/install.js +3 -6
- package/package.json +1 -1
package/install.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const https = require('https');
|
|
3
3
|
const fs = require('fs');
|
|
4
4
|
const path = require('path');
|
|
5
|
-
const {
|
|
5
|
+
const { execSync } = require('child_process');
|
|
6
6
|
|
|
7
7
|
const DOWNLOAD_URL =
|
|
8
8
|
'https://github.com/developerdominex/dominexmacedon/releases/download/programming/starlight.exe';
|
|
@@ -55,11 +55,8 @@ function download(url, dest) {
|
|
|
55
55
|
process.env.PATH = `${INSTALL_DIR};${process.env.PATH}`;
|
|
56
56
|
console.log('PATH updated for current session.');
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
const starlightProcess = spawn(EXE_PATH, args, { stdio: 'inherit', shell: true });
|
|
61
|
-
|
|
62
|
-
starlightProcess.on('exit', code => process.exit(code));
|
|
58
|
+
console.log('Starlight installation completed successfully!');
|
|
59
|
+
process.exit(0);
|
|
63
60
|
} catch (err) {
|
|
64
61
|
console.error('Download or installation failed:', err.message);
|
|
65
62
|
process.exit(1);
|