Skip to content

Commit

Permalink
Update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ccmywish committed Nov 23, 2024
1 parent 4515432 commit cc71381
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 15 deletions.
8 changes: 4 additions & 4 deletions doc/Write-A-Recipe-Even-If-You-Dont-Know-C.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
! Contributors : Nul None <[email protected]>
! |
! Created On : <2024-08-19>
! Last Modified : <2024-11-08>
! Last Modified : <2024-11-23>
! ---------------------------------------------------------- -->

# Write A Recipe Even If You Don't Know C
Expand All @@ -17,7 +17,7 @@

<br>

我鼓励你为新的软件添加换源支持,因为通过 `chsrc` 这将非常简单,你的贡献也将非常有价值。
我鼓励你为新的软件添加换源支持,因为通过 `chsrc` 这将非常简单,你的贡献也将非常有价值。理论上每一个 `recipe` 都需要有专人长时间维护。

1. 本项目采用`GPLv3+`协议,是真正的**自由软件**,而非仅仅是开源软件
2. 代码规范灵活遵循`GNU`标准(若标准干扰了可维护性,则并不采纳)
Expand Down Expand Up @@ -75,10 +75,10 @@

5. 可以使用这些函数:

1. `chsrc-framework.h` 中暴露出的任何 `chsrc_` 开头的函数或宏
1. `framework/core.c` 中以 `chsrc_` 开头的所有函数或宏
2. `xy.h` 中以 `xy_` 开头的所有函数或宏

6.`menu.c` 中添加用户可以使用的 `target` 别名
6.`recipe/menu.c` 中添加用户可以使用的 `target` 别名

7. 构建并运行 `chsrc set <target>` 测试,若无问题可提交 Pull Request

Expand Down
2 changes: 1 addition & 1 deletion src/recipe/lang/Clojure.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* ------------------------------------------------------------*/

/**
* @time 2023-09-10 更新
* @update 2023-09-10
* @note 不太好换,且用户可能不多,我们暂时只给用户提供文档
*/
static Source_t pl_clojure_sources[] =
Expand Down
2 changes: 1 addition & 1 deletion src/recipe/lang/Java.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* ------------------------------------------------------------*/

/**
* @time 2024-04-18 更新
* @update 2024-04-18
* @note 缺少教育网或开源社区软件源
*/
static Source_t pl_java_sources[] =
Expand Down
3 changes: 1 addition & 2 deletions src/recipe/os/APT/Armbian.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
/**
* @update 2024-11-21
*/
static Source_t
os_armbian_sources[] =
static Source_t os_armbian_sources[] =
{
{&UpstreamProvider, "http://apt.armbian.com"},
{&MirrorZ, "https://mirrors.cernet.edu.cn/armbian"},
Expand Down
2 changes: 1 addition & 1 deletion src/recipe/os/APT/Raspberry-Pi-OS.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* ------------------------------------------------------------*/

/**
* @time 2023-09-29 更新
* @update 2023-09-29
*/
static Source_t os_raspberrypi_sources[] =
{
Expand Down
2 changes: 1 addition & 1 deletion src/recipe/os/APT/openKylin.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* ------------------------------------------------------------*/

/**
* @time 2023-09-29 更新
* @update 2023-09-29
*/
static Source_t os_openkylin_sources[] =
{
Expand Down
2 changes: 1 addition & 1 deletion src/recipe/os/YUM/AlmaLinux.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* ------------------------------------------------------------*/

/**
* @time 2024-06-12 更新
* @update 2024-06-12
*/
static Source_t os_almalinux_sources[] =
{
Expand Down
2 changes: 1 addition & 1 deletion src/recipe/os/pacman/MSYS2.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* ------------------------------------------------------------*/

/**
* @time 2024-04-18 更新
* @update 2024-04-18
*/
static Source_t os_msys2_sources[] =
{
Expand Down
2 changes: 1 addition & 1 deletion src/recipe/ware/Anaconda.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* ------------------------------------------------------------*/

/**
* @time 2023-09-10 更新
* @update 2023-09-10
* @note 这些链接将会在setsrc函数中补充完整
*/
static Source_t wr_anaconda_sources[] =
Expand Down
3 changes: 1 addition & 2 deletions src/recipe/ware/Homebrew.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
* 2. 不确定 Sustech 能否工作
* }
*/
static Source_t
wr_homebrew_sources[] =
static Source_t wr_homebrew_sources[] =
{
{&UpstreamProvider, NULL},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/"},
Expand Down

0 comments on commit cc71381

Please sign in to comment.