55 lines
1.0 KiB
Go
55 lines
1.0 KiB
Go
//go:build !windows
|
|
|
|
package windows
|
|
|
|
import (
|
|
"context"
|
|
"runtime"
|
|
"time"
|
|
|
|
"softbox.local/core/application/launch"
|
|
"softbox.local/core/updater"
|
|
)
|
|
|
|
type platformStub struct{}
|
|
|
|
func newPlatform() Platform {
|
|
return platformStub{}
|
|
}
|
|
|
|
func (platformStub) OS() string {
|
|
return runtime.GOOS
|
|
}
|
|
|
|
func (platformStub) Edition() Edition {
|
|
return EditionLegacy
|
|
}
|
|
|
|
func (platformStub) IsCompatible(string) (bool, error) {
|
|
return false, ErrUnsupported
|
|
}
|
|
|
|
func (platformStub) IsRunning(string, string) (bool, error) {
|
|
return false, ErrUnsupported
|
|
}
|
|
|
|
func (platformStub) WaitForExit(context.Context, string, string, time.Duration) error {
|
|
return ErrUnsupported
|
|
}
|
|
|
|
func (platformStub) Start(launch.Command) (int, error) {
|
|
return 0, ErrUnsupported
|
|
}
|
|
|
|
func (platformStub) WaitForProcessExit(context.Context, int, time.Duration) error {
|
|
return ErrUnsupported
|
|
}
|
|
|
|
func (platformStub) StartSelfUpdate(updater.StartCommand) (int, error) {
|
|
return 0, ErrUnsupported
|
|
}
|
|
|
|
func (platformStub) SyncDirectory(string) error {
|
|
return ErrUnsupported
|
|
}
|