diff --git a/chsrc.c b/chsrc.c index 5618fed..6902708 100644 --- a/chsrc.c +++ b/chsrc.c @@ -312,13 +312,13 @@ pl_lua_setsrc (char* option) char* config = xy_strjoin(3, "rocks_servers = {\n" " \"", source.url, "\"\n" - "}"; + "}"); chsrc_info ("请手动修改 ~/.luarocks/config.lua 文件 (用于下载):"); puts(config); char* upload_config = xy_strjoin(3, "key = \"\"\n" - "server = \"", source.url, "\""; + "server = \"", source.url, "\""); chsrc_info ("请手动修改 ~/.luarocks/upload_config.lua 文件 (用于上传):"); puts(upload_config); @@ -1750,9 +1750,9 @@ target_info #define targetinfo(t) (const char*)t static const char -*pl_ruby [] = {"gem", "ruby", "rb", "rubygems", NULL, targetinfo(&pl_ruby_target)}, -*pl_python[] = {"pip", "python", "py", "pypi", NULL, targetinfo(&pl_python_target)}, -*pl_nodejs[] = {"npm", "node", "js", "nodejs", "yarn" NULL, targetinfo(&pl_nodejs_target)}, +*pl_ruby [] = {"gem", "ruby", "rb", "rubygems", NULL, targetinfo(&pl_ruby_target)}, +*pl_python[] = {"pip", "python", "py", "pypi", NULL, targetinfo(&pl_python_target)}, +*pl_nodejs[] = {"npm", "node", "js", "nodejs", "yarn", NULL, targetinfo(&pl_nodejs_target)}, *pl_perl [] = {"perl", "cpan", NULL, targetinfo(&pl_perl_target)}, *pl_php [] = {"php", "composer", NULL, targetinfo(&pl_php_target)}, *pl_lua [] = {"lua", "luarocks", NULL, targetinfo(&pl_lua_target)}, diff --git a/sources.h b/sources.h index a7cf742..76378a4 100644 --- a/sources.h +++ b/sources.h @@ -72,8 +72,13 @@ mirror_info // "https://mirrors.cqu.edu.cn/speedtest/1000mb.bin"}; -// 大型公司 -// 注意,腾讯软件源中,有很多链接都已失效,请仔细检查 + +/** + * + */ +// 商业公司提供的源 +// +// @note 腾讯软件源中,有很多链接都已失效,请仔细检查 mirror_info Ali = {"ali", "Ali OPSX", "阿里巴巴开源镜像站", "https://developer.aliyun.com/mirror/", "https://mirrors.aliyun.com/deepin-cd" Big_File_deepin}, @@ -85,8 +90,9 @@ mirror_info "https://mirrors.163.com/deepin-cd" Big_File_deepin}, Sohu = {"sohu", "SOHU", "搜狐开源镜像站", "https://mirrors.sohu.com/", - "https://mirrors.sohu.com/deepin-cd" Big_File_deepin}; + "https://mirrors.sohu.com/deepin-cd" Big_File_deepin}, + Api7 = {"api7", "api7.ai", "深圳支流科技有限公司", "https://www.apiseven.com/", NULL}; // 开源社区 mirror_info @@ -110,8 +116,8 @@ mirror_info mirror_info* available_mirrors[] = { &MirrorZ, &Tuna, &Sjtug_Zhiyuan, &Zju, &Lzuoss, &Jlu, &Bfsu, &Pku, &Bjtu, &Sustech, &Ustc, &Nju, // &Cqu, - &Ali, &Tencent, &Netease, &Sohu, - &RubyChina, &NpmMirror, &GoProxyCN, &GoProxyIO + &Ali, &Tencent, &Netease, &Sohu, &Api7, + &RubyChina, &EmacsChina, &NpmMirror, &GoProxyCN, &GoProxyIO, // 暂不支持 &NugetOrg }; @@ -215,6 +221,16 @@ pl_php_sources[] = { +/** + * 2023-09-27 更新 + * + * @note 目前只有唯一一个源 + */ +pl_lua_sources[] = { + {&Api7, "https://luarocks.cn"}, +}, + + /** * 2023-09-04 更新 * @@ -723,8 +739,9 @@ wr_anaconda_sources[] = { #define def_target_sources_n(t) const size_t t##_sources_n = xy_arylen(t##_sources) def_target_sources_n(pl_ruby); def_target_sources_n(pl_python); def_target_sources_n(pl_nodejs); -def_target_sources_n(pl_perl); def_target_sources_n(pl_php); def_target_sources_n(pl_go); -def_target_sources_n(pl_rust); def_target_sources_n(pl_java); def_target_sources_n(pl_clojure); +def_target_sources_n(pl_perl); def_target_sources_n(pl_php); def_target_sources_n(pl_lua); +def_target_sources_n(pl_go); def_target_sources_n(pl_rust); +def_target_sources_n(pl_java); def_target_sources_n(pl_clojure); def_target_sources_n(pl_dotnet); def_target_sources_n(pl_dart); def_target_sources_n(pl_haskell); def_target_sources_n(pl_ocaml); def_target_sources_n(pl_r); def_target_sources_n(pl_julia);