fix(hostupdate): Windows 编译兼容 - 磁盘空间预检拆分为平台实现 (#363)
Co-authored-by: libiao320-cmd <280725528+libiao320-cmd@users.noreply.github.com>
This commit is contained in:
9
backend/internal/hostupdate/disk_windows.go
Normal file
9
backend/internal/hostupdate/disk_windows.go
Normal file
@@ -0,0 +1,9 @@
|
||||
//go:build windows
|
||||
|
||||
package hostupdate
|
||||
|
||||
// checkBackupDiskSpace 在 Windows 本地开发环境跳过磁盘空间预检。
|
||||
// 磁盘预检仅服务 Linux 服务器部署时的在线更新器,Windows 本地开发用不到。
|
||||
func checkBackupDiskSpace(directory string) error {
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user