修正脚本

This commit is contained in:
范大德 2023-12-14 17:02:16 +08:00
parent 5bb01739d7
commit 00adabeb3f

View File

@ -33,7 +33,7 @@ module.exports = function (ctx) {
if (fs.existsSync(project)) {
replaceContents(path.join(project, 'Podfile'), (content) => {
if (content.indexOf('GCDWebServer') < 0) {
content = content.replace("\nend", " pod 'GCDWebServer', :git => 'https://m.shuto.cn:8681/github/GCDWebServer.git'\nend")
content = content.replace("\nend", "\n pod 'GCDWebServer', :git => 'https://m.shuto.cn:8681/github/GCDWebServer.git'\nend")
}
return content;
});