Update recipe-template

This commit is contained in:
Aoran Zeng 2025-08-10 10:34:51 +08:00
parent aa923b4276
commit 820591362b
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
2 changed files with 10 additions and 8 deletions

View File

@ -9,7 +9,7 @@
* | Yangmoooo <yangmoooo@outlook.com>
* |
* 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"

View File

@ -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},