Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gengjiawen
Copy link
Contributor

Not fully tested since I don't have arm64 linux devices

@devsnek
Copy link
Owner

devsnek commented Feb 1, 2023

I do happen to have an arm64 linux device, I'll try to get this tested and merged soon!

@gengjiawen
Copy link
Contributor Author

@devsnek ping

@gengjiawen gengjiawen changed the title feat: support quickjs arm64 feat: support quickjs arm64 and linux and macOS Apr 28, 2023
@gengjiawen
Copy link
Contributor Author

ping

src/engines/quickjs.js Outdated Show resolved Hide resolved
src/engines/quickjs.js Outdated Show resolved Hide resolved
@gengjiawen gengjiawen force-pushed the feat/quickjs branch 2 times, most recently from 109d29f to 8071482 Compare July 31, 2023 07:12
@gengjiawen
Copy link
Contributor Author

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);
Copy link
Owner

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.

Comment on lines +48 to +50
if (platform === 'darwin-arm64') {
return `https://github.com/napi-bindings/quickjs-build/releases/download/${version}/qjs-macOS-arm64.zip`;
}
Copy link
Owner

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`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants