| 1 | //go:build windows |
| 2 | |
| 3 | package main |
| 4 | |
| 5 | import ( |
| 6 | "os" |
| 7 | "reasonix/desktop/internal/instanceidentity" |
| 8 | "reasonix/internal/config" |
| 9 | ) |
| 10 | |
| 11 | func startUpdateEndpoint() (func(), error) { |
| 12 | if !hostRPCRequested(os.Args[1:]) { |
| 13 | return func() {}, nil |
| 14 | } |
| 15 | return instanceidentity.ListenEndpoint(instanceidentity.ForHome(config.ReasonixHomeDir())) |
| 16 | } |
| 17 |