-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support quickjs arm64 and linux and macOS #47
base: master
Are you sure you want to change the base?
Conversation
I do happen to have an arm64 linux device, I'll try to get this tested and merged soon! |
@devsnek ping |
48717f5
to
79f45a5
Compare
79f45a5
to
2e21020
Compare
ping |
109d29f
to
8071482
Compare
PTAL |
if (['darwin-arm64', 'darwin-x64', 'linux-arm64'].includes(platform)) { | ||
return fetch('https://api.github.com/repos/napi-bindings/quickjs-build/releases') | ||
.then((r) => r.json()) | ||
.then((b) => b[0].tag_name); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't think this is inherently sorted the way you might expect. see graal for example.
if (platform === 'darwin-arm64') { | ||
return `https://github.com/napi-bindings/quickjs-build/releases/download/${version}/qjs-macOS-arm64.zip`; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think these could all be collapsed into
`https://github.com/napi-bindings/quickjs-build/releases/download/${version}/${getFilename()}.zip`
Not fully tested since I don't have arm64 linux devices