Skip to content

Commit 326b785

Browse files
committed
设置自动更新时的版本号格式
1 parent 44e5473 commit 326b785

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/UpdateHelper.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using JiuLing.AutoUpgrade.Shared;
22
using JiuLing.AutoUpgrade.Shell;
33
using System.IO;
4+
using JiuLing.AutoUpgrade.Shell.Enums;
45

56
namespace ComputerLock;
67
internal class UpdateHelper(AppSettings appSettings)
@@ -33,6 +34,7 @@ await AutoUpgradeFactory.Create()
3334
config.IsCheckSign = true;
3435
config.Lang = appSettings.Lang.ToString();
3536
config.IconPath = iconPath;
37+
config.VersionFormat = VersionFormatEnum.MajorMinorBuild;
3638
})
3739
.RunAsync();
3840
}

0 commit comments

Comments
 (0)