@ahqstore/cli 1.0.0-rc6 → 1.0.0-rc7

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 CHANGED
@@ -17,7 +17,7 @@ const success = chalk.green(chalk.bold("PASS:"));
17
17
  console.log(`${warn} Checking Operating System`);
18
18
  console.log(`${info} ${platform}`);
19
19
 
20
- if (platform === "win32" || platform === "linux") {
20
+ if (platform === "win32" || platform === "linux" || platform == "darwin") {
21
21
  console.log(`${success} OS Valid!`);
22
22
  } else {
23
23
  console.log(`${errr} OS Invalid!`);
@@ -30,7 +30,7 @@ const arch = process.arch;
30
30
  console.log(`${warn} Checking Architecture`);
31
31
  console.log(`${info} ${arch}`);
32
32
 
33
- if (arch == "x64") {
33
+ if (arch == "x64" || (platform == "darwin" && arch == "arm64")) {
34
34
  console.log(`${success} Arch Validated`);
35
35
  } else {
36
36
  console.log(`${errr} Arch Invalid`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ahqstore/cli",
3
- "version": "1.0.0-rc6",
3
+ "version": "1.0.0-rc7",
4
4
  "description": "The AHQ Store CLI",
5
5
  "type": "module",
6
6
  "main": "./src/cli.js",
@@ -12,8 +12,9 @@
12
12
  "postinstall": "node install.js"
13
13
  },
14
14
  "dependencies": {
15
- "@ahqstore/cli-rs-linux": "1.0.0-rc2",
16
- "@ahqstore/cli-rs-win32": "1.0.0-rc2",
15
+ "@ahqstore/cli-rs-linux": "1.0.0-rc3",
16
+ "@ahqstore/cli-rs-win32": "1.0.0-rc3",
17
+ "@ahqstore/cli-rs-darwin": "1.0.0-rc3",
17
18
  "chalk": "^5.3.0"
18
19
  },
19
20
  "keywords": [
package/src/cli.js CHANGED
@@ -5,6 +5,8 @@ const args = process.argv.slice(2) || [];
5
5
  (async () => {
6
6
  if (platform == "win32") {
7
7
  (await import("@ahqstore/cli-rs-win32")).nodeEntrypoint(args);
8
+ } else if (platform == "darwin") {
9
+ (await import("@ahqstore/cli-rs-darwin")).nodeEntrypoint(args);
8
10
  } else {
9
11
  (await import("@ahqstore/cli-rs-linux")).nodeEntrypoint(args);
10
12
  }