From 7364e7839cc96519896c8d0caaf85637c4e920fe Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Tue, 30 May 2023 08:55:13 +0800 Subject: [PATCH] :art: Windows 7, 8 and Server 2012 are no longer supported https://github.com/siyuan-note/siyuan/issues/7347 --- kernel/model/updater.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/kernel/model/updater.go b/kernel/model/updater.go index beea0b9de..25f56bd26 100644 --- a/kernel/model/updater.go +++ b/kernel/model/updater.go @@ -291,6 +291,13 @@ func skipNewVerInstallPkg() bool { if !Conf.System.DownloadInstallPkg { return true } + if gulu.OS.IsWindows() { + plat := strings.ToLower(Conf.System.OSPlatform) + // Windows 7, 8 and Server 2012 are no longer supported https://github.com/siyuan-note/siyuan/issues/7347 + if strings.Contains(plat, " 7 ") || strings.Contains(plat, " 8 ") || strings.Contains(plat, "2012") { + return true + } + } return false }