fix(hostupdate): Windows 编译兼容 - 磁盘空间预检拆分为平台实现 (#363)

Co-authored-by: libiao320-cmd <280725528+libiao320-cmd@users.noreply.github.com>
This commit is contained in:
libiao320-cmd
2026-08-31 15:06:21 +08:00
committed by GitHub
parent 1685c7c5d4
commit da65f5aae9
3 changed files with 32 additions and 8 deletions

View File

@@ -0,0 +1,9 @@
//go:build windows
package hostupdate
// checkBackupDiskSpace 在 Windows 本地开发环境跳过磁盘空间预检。
// 磁盘预检仅服务 Linux 服务器部署时的在线更新器,Windows 本地开发用不到。
func checkBackupDiskSpace(directory string) error {
return nil
}