mirror of
https://github.com/RubyMetric/chsrc
synced 2025-07-18 13:37:29 +08:00
Prerelease v0.2.1.4
This commit is contained in:
parent
a70b251fa2
commit
0df9d54b27
3
lib/xy.h
3
lib/xy.h
@ -11,8 +11,7 @@
|
|||||||
* Last Modified : <2025-07-11>
|
* Last Modified : <2025-07-11>
|
||||||
*
|
*
|
||||||
* xy: 襄阳、咸阳
|
* xy: 襄阳、咸阳
|
||||||
* Corss-Platform C11 utilities for CLI applications in mixed flavor:
|
* Corss-Platform C11 utilities for CLI applications in mixed flavor (mostly Ruby)
|
||||||
* Ruby、Perl、Raku、HTML、Python、just、etc
|
|
||||||
* ------------------------------------------------------------*/
|
* ------------------------------------------------------------*/
|
||||||
|
|
||||||
#ifndef XY_H
|
#ifndef XY_H
|
||||||
|
@ -29,13 +29,13 @@
|
|||||||
* | Mikachu2333 <mikachu.23333@zohomail.com>
|
* | Mikachu2333 <mikachu.23333@zohomail.com>
|
||||||
* |
|
* |
|
||||||
* Created On : <2023-08-28>
|
* Created On : <2023-08-28>
|
||||||
* Last Modified : <2025-07-11>
|
* Last Modified : <2025-07-12>
|
||||||
*
|
*
|
||||||
* chsrc: Change Source —— 全平台通用命令行换源工具
|
* chsrc: Change Source —— 全平台通用命令行换源工具
|
||||||
* ------------------------------------------------------------*/
|
* ------------------------------------------------------------*/
|
||||||
|
|
||||||
#define Chsrc_Version "0.2.1.3"
|
#define Chsrc_Version "0.2.1.4"
|
||||||
#define Chsrc_Release_Date "2025/07/11"
|
#define Chsrc_Release_Date "2025/07/12"
|
||||||
#define Chsrc_Maintain_URL "https://github.com/RubyMetric/chsrc"
|
#define Chsrc_Maintain_URL "https://github.com/RubyMetric/chsrc"
|
||||||
#define Chsrc_Maintain_URL2 "https://gitee.com/RubyMetric/chsrc"
|
#define Chsrc_Maintain_URL2 "https://gitee.com/RubyMetric/chsrc"
|
||||||
|
|
||||||
|
@ -125,13 +125,13 @@ struct
|
|||||||
ChgType_t chgtype; /* 换源实现的类型 */
|
ChgType_t chgtype; /* 换源实现的类型 */
|
||||||
|
|
||||||
/* 此时 chsrc_run() 不再是recipe中指定要运行的一个外部命令,而是作为一个功能实现的支撑 */
|
/* 此时 chsrc_run() 不再是recipe中指定要运行的一个外部命令,而是作为一个功能实现的支撑 */
|
||||||
bool chsrc_run_saas;
|
bool chsrc_run_faas;
|
||||||
}
|
}
|
||||||
ProgStatus =
|
ProgStatus =
|
||||||
{
|
{
|
||||||
.leader_selected_index = -1,
|
.leader_selected_index = -1,
|
||||||
.chgtype = ChgType_Auto,
|
.chgtype = ChgType_Auto,
|
||||||
.chsrc_run_saas = false
|
.chsrc_run_faas = false
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -1262,7 +1262,7 @@ not_root:
|
|||||||
static void
|
static void
|
||||||
chsrc_run (const char *cmd, int run_option)
|
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;
|
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)
|
chsrc_run_as_a_service (const char *cmd)
|
||||||
{
|
{
|
||||||
int run_option = RunOpt_Default;
|
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;
|
run_option |= RunOpt_Dont_Notify_On_Success|RunOpt_No_Last_New_Line;
|
||||||
chsrc_run (cmd, run_option);
|
chsrc_run (cmd, run_option);
|
||||||
ProgStatus.chsrc_run_saas = false;
|
ProgStatus.chsrc_run_faas = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# https://github.com/RubyMetric/chsrc/releases/tag/pre
|
# https://github.com/RubyMetric/chsrc/releases/tag/pre
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
|
|
||||||
$destination = "~\Desktop\chsrc-pre-onGitHub"
|
$destination = "~\Desktop\chsrc-pre-on-GitHub"
|
||||||
|
|
||||||
Write-Output "=> Mkdir $destination"
|
Write-Output "=> Mkdir $destination"
|
||||||
mkdir -Force $destination | Out-Null
|
mkdir -Force $destination | Out-Null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user