Skip to content

Commit

Permalink
fix: 🔥 Remove installer version detection when deploy.
Browse files Browse the repository at this point in the history
  • Loading branch information
DreamEnderKing committed May 11, 2024
1 parent 72a2a47 commit 2348e59
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions dependency/deploy/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,8 @@
break;
case "upload":
d.UpdateMD5();
if (d.Data.FileHashData.TVersion.InstallerVersion < d.CurrentVersion.InstallerVersion)
{
Cloud.DownloadFile(@"D:\a\publish\Secret.csv", "Secret.csv");
ZipFile.CreateFromDirectory(@"D:\a\publish", @$"D:\a\Installer_v{d.CurrentVersion.InstallerVersion}.zip", CompressionLevel.SmallestSize, false);
Cloud.UploadFile(@$"D:\a\Installer_v{d.CurrentVersion.InstallerVersion}.zip", $"Setup/Installer_v{d.CurrentVersion.InstallerVersion}.zip");
}
else
{
Log.LogInfo("No installer version update found.");
}
Cloud.DownloadFile(@"D:\a\publish\Secret.csv", "Secret.csv");
ZipFile.CreateFromDirectory(@"D:\a\publish", @$"D:\a\Installer_v{d.CurrentVersion.InstallerVersion}.zip", CompressionLevel.SmallestSize, false);
Cloud.UploadFile(@$"D:\a\Installer_v{d.CurrentVersion.InstallerVersion}.zip", $"Setup/Installer_v{d.CurrentVersion.InstallerVersion}.zip");
break;
}

0 comments on commit 2348e59

Please sign in to comment.