Skip to content

Download arm64 dart-sass-embedded #118

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

Merged
merged 2 commits into from
Mar 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sass-embedded",
"version": "1.49.9",
"version": "1.49.11-dev",
"protocol-version": "1.0.0",
"compiler-version": "1.49.9",
"description": "Node.js library that communicates with Embedded Dart Sass using the Embedded Sass protocol",
Expand Down
7 changes: 2 additions & 5 deletions tool/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,16 @@ const OS: 'linux' | 'macos' | 'windows' = (() => {

// The current platform's architecture. Throws if the architecture is not
// supported by Dart Sass Embedded.
const ARCH: 'ia32' | 'x64' = (() => {
const ARCH: 'ia32' | 'x64' | 'arm64' = (() => {
switch (process.arch) {
case 'ia32':
return 'ia32';
case 'x86':
return 'ia32';
case 'x64':
return 'x64';
// TODO: This is blocked until Github Actions supports compiling Dart Sass
// for arm64. Until then, download the x64 binary for arm64 users.
// https://github.com/sass/dart-sass/issues/1125
case 'arm64':
return 'x64';
return 'arm64';
default:
throw Error(`Architecure ${process.arch} is not supported.`);
}
Expand Down