mirror of
https://github.com/RubyMetric/chsrc.git
synced 2024-11-22 11:20:02 +08:00
parent
7412da9a9b
commit
3e2e7f92fd
|
@ -16,6 +16,7 @@
|
||||||
* | xuan <wick.dynex@qq.com>
|
* | xuan <wick.dynex@qq.com>
|
||||||
* | GnixAij <gaojiaxing0220@gmail.com>
|
* | GnixAij <gaojiaxing0220@gmail.com>
|
||||||
* | ChatGPT <https://chatgpt.com>
|
* | ChatGPT <https://chatgpt.com>
|
||||||
|
* | czyt <czyt.go@gmail.com>
|
||||||
* |
|
* |
|
||||||
* Created On : <2023-08-28>
|
* Created On : <2023-08-28>
|
||||||
* Last Modified : <2024-10-31>
|
* Last Modified : <2024-10-31>
|
||||||
|
|
|
@ -2,19 +2,18 @@
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* -------------------------------------------------------------
|
* -------------------------------------------------------------
|
||||||
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||||
* Contributors : Nil Null <nil@null.org>
|
* Contributors : czyt <czyt.go@gmail.com>
|
||||||
* | czyt <czyt.go@gmail.com>
|
* |
|
||||||
* Created On : <2023-09-10>
|
* Created On : <2023-09-10>
|
||||||
* Major Revision : 3
|
* Major Revision : 2
|
||||||
* Last Modified : <2024-10-31>
|
* Last Modified : <2024-10-31>
|
||||||
*
|
*
|
||||||
* 2024-09-14: 不得不将Dart和Flutter拆分为两个Target,
|
* 2024-09-14: 不得不将Dart和Flutter拆分为两个Target,
|
||||||
* 因为3家教育网镜像站给出的 Dart 和 Flutter 换源URL模式都不一样
|
* 因为3家教育网镜像站给出的 Dart 和 Flutter 换源URL模式都不一样
|
||||||
* 2024-10-31: 补充FLUTTER_STORAGE_BASE_URL的默认源地址
|
|
||||||
* ------------------------------------------------------------*/
|
* ------------------------------------------------------------*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @update 2024-09-14
|
* @update 2024-10-31
|
||||||
*/
|
*/
|
||||||
static SourceInfo
|
static SourceInfo
|
||||||
pl_dart_flutter_sources[] = {
|
pl_dart_flutter_sources[] = {
|
||||||
|
|
|
@ -2,19 +2,17 @@
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* -------------------------------------------------------------
|
* -------------------------------------------------------------
|
||||||
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||||
* Contributors : Nil Null <nil@null.org>
|
* Contributors : czyt <czyt.go@gmail.com>
|
||||||
* | czyt <czyt.go@gmail.com>
|
* |
|
||||||
* Created On : <2023-09-10>
|
* Created On : <2023-09-10>
|
||||||
* Major Revision : 4
|
* Major Revision : 3
|
||||||
* Last Modified : <2024-10-31>
|
* Last Modified : <2024-10-31>
|
||||||
*
|
*
|
||||||
* 2024-10-31: 补充PUB_HOSTED_URL的默认源地址
|
|
||||||
*
|
|
||||||
* Dart Pub 软件仓库
|
* Dart Pub 软件仓库
|
||||||
* ------------------------------------------------------------*/
|
* ------------------------------------------------------------*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @update 2024-09-14
|
* @update 2024-10-31
|
||||||
*/
|
*/
|
||||||
static SourceInfo
|
static SourceInfo
|
||||||
pl_dart_sources[] = {
|
pl_dart_sources[] = {
|
||||||
|
|
|
@ -1,14 +1,12 @@
|
||||||
/** ------------------------------------------------------------
|
/** ------------------------------------------------------------
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* -------------------------------------------------------------
|
* -------------------------------------------------------------
|
||||||
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||||
* Contributors : Nil Null <nil@null.org>
|
* Contributors : czyt <czyt.go@gmail.com>
|
||||||
* | czyt <czyt.go@gmail.com>
|
* |
|
||||||
* Created On : <2023-08-30>
|
* Created On : <2023-08-30>
|
||||||
* Major Revision : 1
|
* Major Revision : 1
|
||||||
* Last Modified : <2024-10-31>
|
* Last Modified : <2024-10-31>
|
||||||
*
|
|
||||||
* 2024-10-31: 补充Go语言的默认GOPROXY地址
|
|
||||||
* ------------------------------------------------------------*/
|
* ------------------------------------------------------------*/
|
||||||
|
|
||||||
static MirrorSite
|
static MirrorSite
|
||||||
|
@ -20,12 +18,12 @@ GoProxyIO = {"goproxy.io", "GOPROXY.IO", "GOPROXY.IO", "https://gopr
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @time 2024-04-18 更新
|
* @update 2024-10-31
|
||||||
* @note 缺少教育网软件源
|
* @note 缺少教育网软件源
|
||||||
*/
|
*/
|
||||||
static SourceInfo
|
static SourceInfo
|
||||||
pl_go_sources[] = {
|
pl_go_sources[] = {
|
||||||
{&Upstream, "https://proxy.golang.org,direct"},
|
{&Upstream, "https://proxy.golang.org"},
|
||||||
{&GoProxyCN, "https://goproxy.cn"},
|
{&GoProxyCN, "https://goproxy.cn"},
|
||||||
{&Ali, "https://mirrors.aliyun.com/goproxy/"},
|
{&Ali, "https://mirrors.aliyun.com/goproxy/"},
|
||||||
{&Huawei, "https://mirrors.huaweicloud.com/goproxy/"},
|
{&Huawei, "https://mirrors.huaweicloud.com/goproxy/"},
|
||||||
|
@ -48,6 +46,7 @@ pl_go_check_cmd ()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
pl_go_getsrc (char *option)
|
pl_go_getsrc (char *option)
|
||||||
{
|
{
|
||||||
|
@ -55,8 +54,11 @@ pl_go_getsrc (char *option)
|
||||||
chsrc_run ("go env GOPROXY", RunOpt_Default);
|
chsrc_run ("go env GOPROXY", RunOpt_Default);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Go换源,参考:https://goproxy.cn/
|
* chsrc set go
|
||||||
|
*
|
||||||
|
* @consult https://goproxy.cn/
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
pl_go_setsrc (char *option)
|
pl_go_setsrc (char *option)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user