Split cocoapods out

This commit is contained in:
Aoran Zeng 2024-08-16 04:15:05 +08:00
parent bbfb6d5401
commit 8305341d62
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
4 changed files with 48 additions and 40 deletions

View File

@ -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);

View File

@ -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"
/**

View File

@ -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);

View 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);