santui 0.2.13 → 0.2.16
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/README.md +1 -0
- package/index.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,6 +22,7 @@ This npm package downloads the correct pre-built binary for your platform (Windo
|
|
|
22
22
|
|---|---|
|
|
23
23
|
| Windows x64 | `santui-x86_64-pc-windows-msvc.zip` |
|
|
24
24
|
| macOS ARM64 | `santui-aarch64-apple-darwin.tar.gz` |
|
|
25
|
+
| macOS x64 | `santui-x86_64-apple-darwin.tar.gz` |
|
|
25
26
|
| Linux x64 | `santui-x86_64-unknown-linux-gnu.tar.gz` |
|
|
26
27
|
|
|
27
28
|
## Source
|
package/index.js
CHANGED
|
@@ -22,7 +22,8 @@ function getTarget() {
|
|
|
22
22
|
if (os === 'win32') return 'x86_64-pc-windows-msvc';
|
|
23
23
|
if (os === 'darwin') {
|
|
24
24
|
if (arch === 'arm64') return 'aarch64-apple-darwin';
|
|
25
|
-
|
|
25
|
+
if (arch === 'x64') return 'x86_64-apple-darwin';
|
|
26
|
+
die(`Unsupported architecture: ${arch}`);
|
|
26
27
|
}
|
|
27
28
|
if (os === 'linux') return 'x86_64-unknown-linux-gnu';
|
|
28
29
|
die(`Unsupported platform: ${os}`);
|