返回 DeepSeek-Reasonix
updater_deb_other.go
根目录 / desktop / updater_deb_other.go
1 //go:build !linux
2
3 package main
4
5 import "fmt"
6
7 var (
8 errUpdateAuthFailed = fmt.Errorf("update: authorization failed")
9 errUpdateCacheMismatch = fmt.Errorf("update: cached artifact does not match current install mode")
10 )
11
12 func applyDebLinux(packagePath, signaturePath string, onPhase func(phase string)) error {
13 return fmt.Errorf("update: deb install is only supported on Linux")
14 }
15
16 func isAuthCancelled(err error) bool {
17 return false
18 }
19
20 func ensureDebCacheMatchesProfile(meta *cachedUpdate, profile installProfile) error {
21 if profile.Mode == installModeDeb {
22 return fmt.Errorf("update: deb install is only supported on Linux")
23 }
24 return nil
25 }
26
26 lines GO