protected static bool GenMd5(FormUpdate update_form) { bool ret = true; FileStream fs; string md5File = Path.Combine(update_form.getBKDir(), Config.getMd5File()); if (!File.Exists(md5File)) { fs = File.Create(md5File); } else { fs = new FileStream(md5File, FileMode.Truncate); } StreamWriter sw = new StreamWriter(fs); Utils.GenResMd5(update_form.getBKDir(), sw, update_form.getBKDir()); sw.Flush(); sw.Close(); return(ret); }
protected static string OutPackage(FormUpdate update_form) { return(Utils.OutDiff(update_form.getBaseDir(), update_form.getBKDir(), update_form.getPackageOutDir(), update_form.GetOutVer())); }
protected static bool CopyResSrc(FormUpdate update_form) { update_form.appendLog("资源拷贝中"); Utils.CopyResSrc(update_form.getProjectDir(), update_form.getBKDir(), update_form.isCompileSource()); return(true); }