Implement self-update recovery (T-403)
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"time"
|
||||
|
||||
"softbox.local/core/application/launch"
|
||||
"softbox.local/core/updater"
|
||||
)
|
||||
|
||||
// Edition identifies the application build channel shown by the UI.
|
||||
@@ -26,6 +27,9 @@ type Platform interface {
|
||||
IsRunning(appID, entrypoint string) (bool, error)
|
||||
WaitForExit(ctx context.Context, appID, entrypoint string, timeout time.Duration) error
|
||||
Start(command launch.Command) (int, error)
|
||||
WaitForProcessExit(ctx context.Context, pid int, timeout time.Duration) error
|
||||
StartSelfUpdate(command updater.StartCommand) (int, error)
|
||||
SyncDirectory(path string) error
|
||||
}
|
||||
|
||||
// New returns the platform implementation selected by build tags.
|
||||
|
||||
Reference in New Issue
Block a user