From 820591362b0e83ddcb6e787ddf2dbfbc4ad732ac Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Sun, 10 Aug 2025 10:34:51 +0800 Subject: [PATCH] Update recipe-template --- src/framework/core.c | 5 +++-- src/recipe/recipe-template.c | 13 +++++++------ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/framework/core.c b/src/framework/core.c index 96af6ef..95b194e 100644 --- a/src/framework/core.c +++ b/src/framework/core.c @@ -9,7 +9,7 @@ * | Yangmoooo * | * Created On : <2023-08-29> - * Last Modified : <2025-08-09> + * Last Modified : <2025-08-10> * * chsrc framework * ------------------------------------------------------------*/ @@ -25,7 +25,8 @@ #include "xy.h" #include "struct.h" #include "mirror.c" -#include "chef.h" +#include "chef-helper.c" +#include "chef.c" #define App_Name "chsrc" diff --git a/src/recipe/recipe-template.c b/src/recipe/recipe-template.c index cf7ae15..2ae3a83 100644 --- a/src/recipe/recipe-template.c +++ b/src/recipe/recipe-template.c @@ -65,17 +65,18 @@ void chef_allow_get(); chef_allow_set(); chef_allow_reset(); - this.cap_local = PartiallyCan; - this.cap_local_explain = "具体说明是否支持项目级换源..."; - this.can_english = false; - this.can_user_define = false; + chef_allow_local_mode (this, PartiallyCan, "具体说明是否支持项目级换源...", "Tell users the local mode support"); + + // chef_allow_english(this); + chef_forbid_english(this); + // chef_allow_user_define(this); chef_forbid_user_define(this); - this.note = "备注说明..."; + chef_set_note ("备注说明...", "Note..."); - def_upstream("https://github.com/microsoft/winget-cli/"); + def_upstream("https://github.com/RubyMetric/chsrc"); def_sources_begin() {&upstream, "上游地址,若维护者暂时未知,可填NULL,这个主要用于reset", DelegateToUpstream} {&RubyMetric, "https://rubymetirc.com/target", DelegateToMirror},