修改程序逻辑,准备批量打包

This commit is contained in:
wule committed 2026-05-28 17:28:08 +08:00
1 parent aab73b978f
commit 55528e5109
30 files changed
+297 -150

No files matched your search

+8 -2
View File
@@ -23,10 +23,16 @@ namespace Publish
{
try
{
int fileId = 0;
var dir = "..\\AllBase\\BaseClass.cs";
string baseClassStr = File.ReadAllText(dir);
var mainPath = baseClassStr.Substring(baseClassStr.IndexOf("MainPath = \"") + "MainPath = \"".Length);
mainPath = mainPath.Split('\"')[0];
var versionCount = baseClassStr.Substring(baseClassStr.IndexOf("VersionCount = ") + "VersionCount = ".Length);
versionCount = versionCount.Split(';')[0];
int version = Convert.ToInt32(versionCount);
List<string> filePathLst = new List<string>();
string destinationZip = AppDomain.CurrentDomain.SetupInformation.ApplicationBase + "Update" + fileId + ".zip";
string destinationZip = AppDomain.CurrentDomain.SetupInformation.ApplicationBase + "Update" + mainPath + version + ".zip";
foreach (var item in this.lstFile.Items)
{
filePathLst.Add(AppDomain.CurrentDomain.SetupInformation.ApplicationBase + item.ToString());