Prerelease v0.2.1.4

This commit is contained in:
Aoran Zeng 2025-07-12 07:44:44 +08:00
parent a70b251fa2
commit 0df9d54b27
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
4 changed files with 10 additions and 11 deletions

View File

@ -11,8 +11,7 @@
* Last Modified : <2025-07-11>
*
* xy:
* Corss-Platform C11 utilities for CLI applications in mixed flavor:
* RubyPerlRakuHTMLPythonjustetc
* Corss-Platform C11 utilities for CLI applications in mixed flavor (mostly Ruby)
* ------------------------------------------------------------*/
#ifndef XY_H

View File

@ -29,13 +29,13 @@
* | Mikachu2333 <mikachu.23333@zohomail.com>
* |
* Created On : <2023-08-28>
* Last Modified : <2025-07-11>
* Last Modified : <2025-07-12>
*
* chsrc: Change Source
* ------------------------------------------------------------*/
#define Chsrc_Version "0.2.1.3"
#define Chsrc_Release_Date "2025/07/11"
#define Chsrc_Version "0.2.1.4"
#define Chsrc_Release_Date "2025/07/12"
#define Chsrc_Maintain_URL "https://github.com/RubyMetric/chsrc"
#define Chsrc_Maintain_URL2 "https://gitee.com/RubyMetric/chsrc"

View File

@ -125,13 +125,13 @@ struct
ChgType_t chgtype; /* 换源实现的类型 */
/* 此时 chsrc_run() 不再是recipe中指定要运行的一个外部命令而是作为一个功能实现的支撑 */
bool chsrc_run_saas;
bool chsrc_run_faas;
}
ProgStatus =
{
.leader_selected_index = -1,
.chgtype = ChgType_Auto,
.chsrc_run_saas = false
.chsrc_run_faas = false
};
@ -1262,7 +1262,7 @@ not_root:
static void
chsrc_run (const char *cmd, int run_option)
{
if (ProgStatus.chsrc_run_saas)
if (ProgStatus.chsrc_run_faas)
{
run_option |= RunOpt_Dont_Notify_On_Success|RunOpt_No_Last_New_Line;
}
@ -1309,10 +1309,10 @@ static void
chsrc_run_as_a_service (const char *cmd)
{
int run_option = RunOpt_Default;
ProgStatus.chsrc_run_saas = true;
ProgStatus.chsrc_run_faas = true;
run_option |= RunOpt_Dont_Notify_On_Success|RunOpt_No_Last_New_Line;
chsrc_run (cmd, run_option);
ProgStatus.chsrc_run_saas = false;
ProgStatus.chsrc_run_faas = false;
}
static void

View File

@ -8,7 +8,7 @@
# https://github.com/RubyMetric/chsrc/releases/tag/pre
# ---------------------------------------------------------------
$destination = "~\Desktop\chsrc-pre-onGitHub"
$destination = "~\Desktop\chsrc-pre-on-GitHub"
Write-Output "=> Mkdir $destination"
mkdir -Force $destination | Out-Null