调整 pl_js_nodejs_binary 为源target

This commit is contained in:
Aoran Zeng committed 2026-08-12 10:52:13 +08:00
1 parent 7ceb71ea37
commit 96ac3d15d6
2 files changed
+5 -14

No files matched your search

+3 -11
View File
@@ -45,27 +45,19 @@ pl_js_group_prelude (void)
def_target(pl_js_nodejs_binary, "__internal_target_nodejs_binary__");
def_sources_target (pl_js_nodejs_binary, "nodejs-binary");
void
pl_js_nodejs_binary_prelude (void)
{
chef_prep_this (pl_js_nodejs_binary, NOOP);
chef_prep_sources_target (pl_js_nodejs_binary);
chef_set_recipe_created_on (this, "2023-09-09");
chef_set_recipe_last_updated (this, "2025-08-22");
chef_set_recipe_last_updated (this, "2026-08-12");
chef_set_chefs (this, 1, "@ccmywish");
chef_set_sauciers (this, 0);
chef_set_scope_cap (this, ProjectScope, ScopeCap_Unknown);
chef_set_scope_cap (this, UserScope, ScopeCap_Able_And_Implemented);
chef_set_scope_cap (this, SystemScope, ScopeCap_Unknown);
chef_set_default_scope (this, UserScope);
chef_allow_english(this);
chef_allow_user_define(this);
def_sources_begin()
{&UpstreamProvider, "https://nodejs.org/dist/", FeedByPrelude},
{&NpmMirror, "https://npmmirror.com/mirrors", FeedByPrelude},
+2 -3
View File
@@ -7,7 +7,7 @@
* |
* Created On : <2023-09-01>
* Major Revision : 6
* Last Modified : <2026-08-02>
* Last Modified : <2026-08-12>
* ------------------------------------------------------------*/
#include "lang/rawstr4c.h"
@@ -230,6 +230,5 @@ chsrc_init_menu ()
add (anaconda);
#undef add
// Internal Target 不会由用户使用,需要特殊对待
pl_js_nodejs_binary_target.preludefn = pl_js_nodejs_binary_prelude;
chef_set_preludefn_for_sources_target (pl_js_nodejs_binary);
}