mirror of
https://github.com/RubyMetric/chsrc.git
synced 2024-11-22 09:57:48 +08:00
Split cocoapods out
This commit is contained in:
parent
bbfb6d5401
commit
8305341d62
|
@ -153,22 +153,12 @@ pl_dotnet_sources[] = {
|
|||
|
||||
|
||||
|
||||
/**
|
||||
* @time 2024-06-08 更新
|
||||
*/
|
||||
static SourceInfo
|
||||
wr_cocoapods_sources[] = {
|
||||
{&Upstream, NULL},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/git/CocoaPods/Specs.git"}
|
||||
},
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @time 2023-09-11 更新
|
||||
* @note 目前只有一个源
|
||||
*/
|
||||
static SourceInfo
|
||||
wr_flathub_sources[] = {
|
||||
{&Upstream, NULL},
|
||||
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/flathub"},
|
||||
|
@ -237,8 +227,6 @@ wr_tex_sources[] = {
|
|||
def_sources_n(pl_clojure);
|
||||
def_sources_n(pl_dotnet);
|
||||
|
||||
def_sources_n(wr_cocoapods);
|
||||
|
||||
def_sources_n(wr_flathub);
|
||||
def_sources_n(wr_nix); def_sources_n(wr_guix);
|
||||
def_sources_n(wr_tex);
|
||||
|
|
27
src/chsrc.c
27
src/chsrc.c
|
@ -179,32 +179,7 @@ wr_tex_setsrc (char *option)
|
|||
#include "recipe/ware/emacs.c"
|
||||
#include "recipe/ware/WinGet.c"
|
||||
#include "recipe/ware/Homebrew.c"
|
||||
|
||||
/**
|
||||
* 参考:https://mirrors.tuna.tsinghua.edu.cn/help/CocoaPods/
|
||||
*/
|
||||
void
|
||||
wr_cocoapods_setsrc (char *option)
|
||||
{
|
||||
SourceInfo source;
|
||||
chsrc_yield_source (wr_cocoapods);
|
||||
chsrc_confirm_source (&source);
|
||||
|
||||
chsrc_note2 ("请手动执行以下命令:");
|
||||
|
||||
say ("cd ~/.cocoapods/repos");
|
||||
say ("pod repo remove master");
|
||||
char *git_cmd = xy_strjoin (3, "git clone ", source.url, " master");
|
||||
say (git_cmd);
|
||||
say ("");
|
||||
|
||||
chsrc_note2 ("最后进入项目工程目录,在Podfile中第一行加入:");
|
||||
char *source_str = xy_strjoin (3, "source '", source.url, "'");
|
||||
say (source_str);
|
||||
|
||||
chsrc_say_lastly (&source, ChsrcTypeManual);
|
||||
}
|
||||
|
||||
#include "recipe/ware/CocoaPods.c"
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -92,7 +92,6 @@ static const char
|
|||
};
|
||||
|
||||
|
||||
def_target_noget (wr_cocoapods);
|
||||
def_target_noget (wr_flathub);
|
||||
def_target_noget (wr_nix);
|
||||
def_target_noget (wr_guix);
|
||||
|
|
46
src/recipe/ware/CocoaPods.c
Normal file
46
src/recipe/ware/CocoaPods.c
Normal file
|
@ -0,0 +1,46 @@
|
|||
/** ------------------------------------------------------------
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* -------------------------------------------------------------
|
||||
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||
* Contributors : Nil Null <nil@null.org>
|
||||
* Created On : <2024-06-08>
|
||||
* Last Modified : <2024-08-15>
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* @time 2024-06-08 更新
|
||||
*/
|
||||
static SourceInfo
|
||||
wr_cocoapods_sources[] = {
|
||||
{&Upstream, NULL},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/git/CocoaPods/Specs.git"}
|
||||
};
|
||||
def_sources_n(wr_cocoapods);
|
||||
|
||||
/**
|
||||
* 参考:https://mirrors.tuna.tsinghua.edu.cn/help/CocoaPods/
|
||||
*/
|
||||
void
|
||||
wr_cocoapods_setsrc (char *option)
|
||||
{
|
||||
SourceInfo source;
|
||||
chsrc_yield_source (wr_cocoapods);
|
||||
chsrc_confirm_source (&source);
|
||||
|
||||
chsrc_note2 ("请手动执行以下命令:");
|
||||
|
||||
say ("cd ~/.cocoapods/repos");
|
||||
say ("pod repo remove master");
|
||||
char *git_cmd = xy_strjoin (3, "git clone ", source.url, " master");
|
||||
say (git_cmd);
|
||||
say ("");
|
||||
|
||||
chsrc_note2 ("最后进入项目工程目录,在Podfile中第一行加入:");
|
||||
char *source_str = xy_strjoin (3, "source '", source.url, "'");
|
||||
say (source_str);
|
||||
|
||||
chsrc_say_lastly (&source, ChsrcTypeManual);
|
||||
}
|
||||
|
||||
def_target_noget (wr_cocoapods);
|
Loading…
Reference in New Issue
Block a user