jfrog-cli-v2 2.21.3 → 2.22.0

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/init.js +9 -0
  2. package/package.json +1 -1
package/init.js CHANGED
@@ -68,6 +68,11 @@ function downloadCli() {
68
68
  }
69
69
  }
70
70
 
71
+ function runCliIntro() {
72
+ const { spawn } = require('child_process');
73
+ spawn(getFileName(), ['intro'], {stdio: 'inherit', shell: true});
74
+ }
75
+
71
76
  function isValidNpmVersion() {
72
77
  var child_process = require('child_process');
73
78
  var npmVersionCmdOut = child_process.execSync("npm version -json");
@@ -85,6 +90,7 @@ function writeToFile(response) {
85
90
  if (!process.platform.startsWith("win")) {
86
91
  fs.chmodSync(filePath, 0555);
87
92
  }
93
+ runCliIntro()
88
94
  }).on('error', function (err) {
89
95
  console.error(err);
90
96
  });
@@ -96,6 +102,9 @@ function getArchitecture() {
96
102
  return "windows-amd64";
97
103
  }
98
104
  if (platform.includes("darwin")) {
105
+ if (process.arch === "arm64") {
106
+ return "mac-arm64"
107
+ }
99
108
  return "mac-386";
100
109
  }
101
110
  if (process.arch.includes("64")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jfrog-cli-v2",
3
- "version": "2.21.3",
3
+ "version": "2.22.0",
4
4
  "description": "🐸 Command-line interface for JFrog Artifactory, Xray, Distribution and Mission Control 🐸",
5
5
  "homepage": "https://github.com/jfrog/jfrog-cli",
6
6
  "preferGlobal": true,