mirror of
https://github.com/RubyMetric/chsrc
synced 2025-12-24 11:32:01 +08:00
Split cocoapods out
This commit is contained in:
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"
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user