public static void UploadingOuterNet() { if (Program.LockOuterNet) { return; } if (AssetOperation.isUploadingOuterNet) { FTPUtils.UseProxy = true; string root = Program.ProjectRootPath; string gangsterRes000 = Program.VersionFolder; var resourcePath = root + "\\" + gangsterRes000 + "\\"; Program.ConsoleLog("上传修改的资源到外网中..."); if (Program.Gangster_0_0_0_Path != "") { FTPUtils.UploadingFile(Program.Gangster_0_0_0_Path, MainUploading.OuterNetFTPRootPath + "/" + Program.Gangster0_0_0_res_json); } var list = AssetOperation.ListChangeFils; for (int i = 0; i < list.Count; i++) { var path = list[i]; path = path.Replace('\\', '/'); var relatePath = AssetOperation.GetRelatePath(path, root); var targetFtpPath = MainUploading.OuterNetFTPRootPath + relatePath; FTPUtils.UploadingFile(path, targetFtpPath); } Program.ConsoleLog("上传修改的资源外网完成"); MainUploading.UploadingWebsources(); } }
public static void MainUpload() { if (AssetOperation.isGenerate) { MainUploading.Uploading(); MainUploading.UploadingOuterNet(); } }