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

Co-authored-by: libiao320-cmd <280725528+libiao320-cmd@users.noreply.github.com>
This commit is contained in:
libiao320-cmdandlibiao320-cmd authored and GitHub committed 2026-08-31 15:06:21 +08:00
1 parent 1476767378
commit 3d0adf1e9c
3 files changed
+32 -8

No files matched your search

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