@chahuadev/chahuadev-hub-app 3.1.0 → 7.0.2
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 +4 -1
- package/package.json +2 -2
package/install.js
CHANGED
|
@@ -7,7 +7,7 @@ const os = require('os');
|
|
|
7
7
|
const platform = os.platform();
|
|
8
8
|
const arch = os.arch();
|
|
9
9
|
|
|
10
|
-
const R2_BASE = 'https://
|
|
10
|
+
const R2_BASE = 'https://r2.chahuadev.com/hub';
|
|
11
11
|
|
|
12
12
|
let downloadUrl = '';
|
|
13
13
|
let fileName = '';
|
|
@@ -18,6 +18,9 @@ if (platform === 'win32') {
|
|
|
18
18
|
} else if (platform === 'linux') {
|
|
19
19
|
downloadUrl = `${R2_BASE}/Chahuadev-Hub.AppImage`;
|
|
20
20
|
fileName = 'Chahuadev-Hub.AppImage';
|
|
21
|
+
} else if (platform === 'darwin') {
|
|
22
|
+
downloadUrl = `${R2_BASE}/Chahuadev-Hub`;
|
|
23
|
+
fileName = 'Chahuadev-Hub';
|
|
21
24
|
} else {
|
|
22
25
|
console.warn(`Chahuadev Hub does not support ${platform} ${arch} yet.`);
|
|
23
26
|
process.exit(0);
|
package/package.json
CHANGED