console2svg 0.6.1 → 0.6.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/cli/install.js +9 -4
- package/package.json +1 -1
package/cli/install.js
CHANGED
|
@@ -13,7 +13,12 @@ const version = pkg.version;
|
|
|
13
13
|
const platform = process.platform;
|
|
14
14
|
const arch = process.arch;
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
const archSuffix =
|
|
17
|
+
arch === 'x64' ? 'x64' :
|
|
18
|
+
arch === 'arm64' ? 'arm64' :
|
|
19
|
+
null;
|
|
20
|
+
|
|
21
|
+
if (!archSuffix) {
|
|
17
22
|
console.error(`console2svg: unsupported architecture: ${arch}`);
|
|
18
23
|
console.error('Use the .NET tool or build from source for this platform.');
|
|
19
24
|
process.exit(1);
|
|
@@ -21,11 +26,11 @@ if (arch !== 'x64') {
|
|
|
21
26
|
|
|
22
27
|
let rid;
|
|
23
28
|
if (platform === 'win32') {
|
|
24
|
-
rid =
|
|
29
|
+
rid = `win-${archSuffix}`;
|
|
25
30
|
} else if (platform === 'linux') {
|
|
26
|
-
rid =
|
|
31
|
+
rid = `linux-${archSuffix}`;
|
|
27
32
|
} else if (platform === 'darwin') {
|
|
28
|
-
rid =
|
|
33
|
+
rid = `osx-${archSuffix}`;
|
|
29
34
|
} else {
|
|
30
35
|
console.error(`console2svg: unsupported platform: ${platform}`);
|
|
31
36
|
console.error('Use the .NET tool or build from source for this platform.');
|