From 3e74a9e9462e1e478ea915ddf823283325b76512 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=AA=E3=81=A4=E3=81=8D?= Date: Mon, 5 Aug 2024 14:57:33 -0700 Subject: [PATCH] Support linux-riscv64 --- npm/android-riscv64/README.md | 3 +++ npm/android-riscv64/package.json | 20 ++++++++++++++++++++ npm/linux-musl-riscv64/README.md | 3 +++ npm/linux-musl-riscv64/package.json | 20 ++++++++++++++++++++ npm/linux-riscv64/README.md | 3 +++ npm/linux-riscv64/package.json | 20 ++++++++++++++++++++ package.json | 3 +++ tool/prepare-optional-release.ts | 4 +++- 8 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 npm/android-riscv64/README.md create mode 100644 npm/android-riscv64/package.json create mode 100644 npm/linux-musl-riscv64/README.md create mode 100644 npm/linux-musl-riscv64/package.json create mode 100644 npm/linux-riscv64/README.md create mode 100644 npm/linux-riscv64/package.json diff --git a/npm/android-riscv64/README.md b/npm/android-riscv64/README.md new file mode 100644 index 00000000..5c79fe81 --- /dev/null +++ b/npm/android-riscv64/README.md @@ -0,0 +1,3 @@ +# `sass-embedded-android-riscv64` + +This is the **android-riscv64** binary for [`sass-embedded`](https://www.npmjs.com/package/sass-embedded) diff --git a/npm/android-riscv64/package.json b/npm/android-riscv64/package.json new file mode 100644 index 00000000..7096a34d --- /dev/null +++ b/npm/android-riscv64/package.json @@ -0,0 +1,20 @@ +{ + "name": "sass-embedded-android-riscv64", + "version": "1.77.8", + "description": "The android-riscv64 binary for sass-embedded", + "repository": "sass/embedded-host-node", + "author": "Google Inc.", + "license": "MIT", + "files": [ + "dart-sass/**/*" + ], + "engines": { + "node": ">=14.0.0" + }, + "os": [ + "android" + ], + "cpu": [ + "riscv64" + ] +} diff --git a/npm/linux-musl-riscv64/README.md b/npm/linux-musl-riscv64/README.md new file mode 100644 index 00000000..b66e939f --- /dev/null +++ b/npm/linux-musl-riscv64/README.md @@ -0,0 +1,3 @@ +# `sass-embedded-linux-musl-riscv64` + +This is the **linux-musl-riscv64** binary for [`sass-embedded`](https://www.npmjs.com/package/sass-embedded) diff --git a/npm/linux-musl-riscv64/package.json b/npm/linux-musl-riscv64/package.json new file mode 100644 index 00000000..c4cd9bbc --- /dev/null +++ b/npm/linux-musl-riscv64/package.json @@ -0,0 +1,20 @@ +{ + "name": "sass-embedded-linux-musl-riscv64", + "version": "1.77.8", + "description": "The linux-musl-riscv64 binary for sass-embedded", + "repository": "sass/embedded-host-node", + "author": "Google Inc.", + "license": "MIT", + "files": [ + "dart-sass/**/*" + ], + "engines": { + "node": ">=14.0.0" + }, + "os": [ + "linux" + ], + "cpu": [ + "riscv64" + ] +} diff --git a/npm/linux-riscv64/README.md b/npm/linux-riscv64/README.md new file mode 100644 index 00000000..70bf2c32 --- /dev/null +++ b/npm/linux-riscv64/README.md @@ -0,0 +1,3 @@ +# `sass-embedded-linux-riscv64` + +This is the **linux-riscv64** binary for [`sass-embedded`](https://www.npmjs.com/package/sass-embedded) diff --git a/npm/linux-riscv64/package.json b/npm/linux-riscv64/package.json new file mode 100644 index 00000000..332e08b5 --- /dev/null +++ b/npm/linux-riscv64/package.json @@ -0,0 +1,20 @@ +{ + "name": "sass-embedded-linux-riscv64", + "version": "1.77.8", + "description": "The linux-riscv64 binary for sass-embedded", + "repository": "sass/embedded-host-node", + "author": "Google Inc.", + "license": "MIT", + "files": [ + "dart-sass/**/*" + ], + "engines": { + "node": ">=14.0.0" + }, + "os": [ + "linux" + ], + "cpu": [ + "riscv64" + ] +} diff --git a/package.json b/package.json index 2983f245..1858b8ce 100644 --- a/package.json +++ b/package.json @@ -39,16 +39,19 @@ "sass-embedded-android-arm": "1.77.8", "sass-embedded-android-arm64": "1.77.8", "sass-embedded-android-ia32": "1.77.8", + "sass-embedded-android-riscv64": "1.77.8", "sass-embedded-android-x64": "1.77.8", "sass-embedded-darwin-arm64": "1.77.8", "sass-embedded-darwin-x64": "1.77.8", "sass-embedded-linux-arm": "1.77.8", "sass-embedded-linux-arm64": "1.77.8", "sass-embedded-linux-ia32": "1.77.8", + "sass-embedded-linux-riscv64": "1.77.8", "sass-embedded-linux-x64": "1.77.8", "sass-embedded-linux-musl-arm": "1.77.8", "sass-embedded-linux-musl-arm64": "1.77.8", "sass-embedded-linux-musl-ia32": "1.77.8", + "sass-embedded-linux-musl-riscv64": "1.77.8", "sass-embedded-linux-musl-x64": "1.77.8", "sass-embedded-win32-arm64": "1.77.8", "sass-embedded-win32-ia32": "1.77.8", diff --git a/tool/prepare-optional-release.ts b/tool/prepare-optional-release.ts index bc088ffb..29f488e8 100644 --- a/tool/prepare-optional-release.ts +++ b/tool/prepare-optional-release.ts @@ -13,7 +13,7 @@ export type DartPlatform = | 'linux-musl' | 'macos' | 'windows'; -export type DartArch = 'ia32' | 'x64' | 'arm' | 'arm64'; +export type DartArch = 'ia32' | 'x64' | 'arm' | 'arm64' | 'riscv64'; const argv = yargs(process.argv.slice(2)) .option('package', { @@ -61,6 +61,8 @@ export function nodeArchToDartArch(arch: string): DartArch { return 'arm'; case 'arm64': return 'arm64'; + case 'riscv64': + return 'riscv64'; default: throw Error(`Architecture ${arch} is not supported.`); }