Skip to content

Commit 8ff7fca

Browse files
authored
Abhi/use arm64 macos in wrapper (#101)
* use arm64 binaries for arm64 macos * update ver
1 parent d177471 commit 8ff7fca

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

js-pkg/server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"postinstall": "node src/install.js",
88
"format": "prettier --write \"**/*.{ts,tsx,js,jsx}\""
99
},
10-
"version": "0.0.10",
10+
"version": "0.0.11",
1111
"description": "npm wrapper for y-sweet server",
1212
"homepage": "https://github.com/drifting-in-space/y-sweet",
1313
"repository": {

js-pkg/server/src/get_binary.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ const VERSION = require('../package.json').version
55
function getSuffix(os_type, os_arch) {
66
if (os_type === 'Windows_NT' && os_arch === 'x64') return 'win-x64.exe.gz'
77
if (os_type === 'Linux' && os_arch === 'x64') return 'linux-x64.gz'
8-
//we rely on rosetta to provide emulation on aarch64 for now
9-
if (os_type === 'Darwin') return 'macos-x64.gz'
8+
if (os_type === 'Darwin' && os_arch === 'x64') return 'macos-x64.gz'
9+
if (os_type === 'Darwin' && os_arch === 'arm64') return 'macos-arm64.gz'
1010

1111
throw new Error(`Unsupported platform: ${os_type} ${os_arch}`)
1212
}

0 commit comments

Comments
 (0)