From 9ae9500fecc563594f1907f7c230c41bc9fb5cbd Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Wed, 18 Dec 2024 20:20:12 +0800 Subject: [PATCH] Add `nodejs` binary upstream --- src/recipe/lang/Node.js/common.h | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/src/recipe/lang/Node.js/common.h b/src/recipe/lang/Node.js/common.h index 7d7c1ca..2cda149 100644 --- a/src/recipe/lang/Node.js/common.h +++ b/src/recipe/lang/Node.js/common.h @@ -3,14 +3,15 @@ * ------------------------------------------------------------- * File Authors : Aoran Zeng * Contributors : Nul None + * | * Created On : <2023-09-09> * Major Revision : 1 - * Last Modified : <2024-11-22> + * Last Modified : <2024-12-18> * ------------------------------------------------------------*/ -static SourceProvider_t UpstreamNpm = +static SourceProvider_t pl_nodejs_npm_upstream = { - "upstream", "npmjs.org", "上游默认源 npmjs.org", "https://www.npmjs.com/", + "upstream", "Upstream", "上游默认源", "https://www.npmjs.com/", {NotSkip, NA, NA, "https://registry.npmjs.org/@tensorflow/tfjs/-/tfjs-4.22.0.tgz"} }; @@ -33,7 +34,7 @@ static MirrorSite_t NpmMirror = */ static Source_t pl_nodejs_sources[] = { - {&UpstreamNpm, "https://registry.npmjs.org/"}, /* @note 根据 pnpm 官网,有最后的斜线 */ + {&pl_nodejs_npm_upstream, "https://registry.npmjs.org/"}, /* @note 根据 pnpm 官网,有最后的斜线 */ {&NpmMirror, "https://registry.npmmirror.com"}, {&Huawei, "https://mirrors.huaweicloud.com/repository/npm/"}, {&Tencent, "https://mirrors.cloud.tencent.com/npm/"}, @@ -42,15 +43,22 @@ def_sources_n(pl_nodejs); + +static SourceProvider_t pl_nodejs_binary_release_upstream = +{ + "upstream", "Upstream", "上游默认源", "https://nodejs.org/", + {NotSkip, NA, NA, "https://nodejs.org/dist/v23.4.0/node-v23.4.0.tar.gz"} // 100MB +}; + /** - * @update 2024-09-23 + * @update 2024-12-18 * @sync https://github.com/RubyMetric/chsrc/wiki/Node.js-BinaryRelease-MirrorSite * @sync https://github.com/RubyMetric/chsrc/discussions/85 * */ static Source_t pl_nodejs_binary_release_sources[] = { - {&UpstreamProvider, "https://nodejs.org/dist/"}, + {&pl_nodejs_binary_release_upstream, "https://nodejs.org/dist/"}, {&NpmMirror, "https://npmmirror.com/mirrors"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/nodejs-release/"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/nodejs-release/"},