Documentation
¶
Index ¶
- Variables
- func CommitDirectoryInstall(staged, target string) error
- func CommitInstall(staged, target string) error
- func DesktopAssetName(tag, goos, arch string) (string, error)
- func DesktopExecutablePath(cli string) (string, error)
- func DesktopRestartArgs(executable string) []string
- func DesktopUpdateExecutable(cli string) (string, error)
- func DevelopmentBuildVersion(exact string, dirty bool, candidates ...string) string
- func EnsureDesktop(ctx context.Context, version, cli string, progress io.Writer) (string, error)
- func ExecInstallRestart(ctx context.Context, tag string) error
- func ExecInstallRestartForTest(ctx context.Context, tag string) error
- func FinishUpgradeRestart(ctx context.Context, tag string) error
- func Install(ctx context.Context, tag string, progress io.Writer) error
- func InstallBuiltDesktop(ctx context.Context, version, cli, source string, progress io.Writer) error
- func InstallCommand(tag string) (string, error)
- func InstallDesktop(ctx context.Context, tag, cli string, progress io.Writer) error
- func InstallFallbackMessage(tag string) string
- func IsDevelopmentVersion(current string) bool
- func IsNewerRelease(latestTag, current string) bool
- func LaunchPreparedUpdate(tag, staged, target string) error
- func PrepareInstall(ctx context.Context, tag string, progress io.Writer) (staged, target string, err error)
- func ReleaseAssetName(tag string) (string, error)
- func RunSystemInstall(ctx context.Context, tag string, progress io.Writer) error
- func SetCompareReleaseAPIURL(url string) func()
- func SetDesktopRegistrar(fn func(context.Context, string, string, string, io.Writer) error) func()
- func SetExecInstallRestartHook(fn func(context.Context, string) error) func()
- func SetHTTPDownload(fn func(context.Context, string) (*http.Response, error)) func()
- func SetLatestReleaseAPIURL(url string) func()
- func SetReleaseCommitAPIURL(url string) func()
- func SetScheduleInstallRestartHook(fn func(context.Context, string, io.Writer) error) func()
- func SimulateUpgradeExitRestartForTest(tag string) error
- func SnapshotSourceTree(root string) (string, error)
- func SwitchToLayout(ctx context.Context, layout string) error
- func UsesExecInstallRestartAfterSystemInstall() bool
- func UsesExecInstallRestartAfterSystemInstallForTest() bool
- func VerifyPreparedInstall(ctx context.Context, tag, staged, target string) error
- func WindowsInstallRestartScriptBodyForTest(pid int, tag, cwd, exe string, args []string) (string, error)
- type CheckResult
- func Check(ctx context.Context, currentVersion string) CheckResult
- func CheckForNewerRelease(ctx context.Context, currentVersion string) CheckResult
- func CheckWithCommit(ctx context.Context, currentVersion, localCommit string) CheckResult
- func CheckWithCommitTime(ctx context.Context, currentVersion, localCommit string, ...) CheckResult
- func CheckWithSourceTree(ctx context.Context, currentVersion, localCommit string, ...) CheckResult
- type InstallationBackup
- type Notice
- type PreparedDesktop
Constants ¶
This section is empty.
Variables ¶
var ErrRestartScheduled = errors.New("restart scheduled after update")
Functions ¶
func CommitDirectoryInstall ¶ added in v2026.1009.3
func CommitInstall ¶ added in v2026.1009.0
CommitInstall replaces the binary atomically, restoring it on failure.
func DesktopAssetName ¶ added in v2026.1009.0
func DesktopExecutablePath ¶ added in v2026.1009.0
func DesktopRestartArgs ¶ added in v2026.1024.0
DesktopRestartArgs keeps an embedded desktop from reopening as a terminal.
func DesktopUpdateExecutable ¶ added in v2026.1024.0
DesktopUpdateExecutable selects the client belonging to the saved layout.
func DevelopmentBuildVersion ¶ added in v2026.1012.0
DevelopmentBuildVersion selects the newest known release baseline while retaining development identity for untagged, modified, or older checkouts.
func EnsureDesktop ¶ added in v2026.1009.0
EnsureDesktop completes a CLI-only installation on its first normal launch. Subsequent launches use the recorded version without consulting the network.
func ExecInstallRestart ¶ added in v2026.609.2
func ExecInstallRestartForTest ¶ added in v2026.701.3
func FinishUpgradeRestart ¶ added in v2026.701.0
func InstallBuiltDesktop ¶ added in v2026.1009.3
func InstallBuiltDesktop(ctx context.Context, version, cli, source string, progress io.Writer) error
InstallBuiltDesktop deploys the already built native client without a release lookup. On macOS source is the complete Solomon.app bundle.
func InstallCommand ¶ added in v2026.603.0
func InstallDesktop ¶ added in v2026.1009.0
func InstallFallbackMessage ¶ added in v2026.621.0
func IsDevelopmentVersion ¶ added in v2026.924.0
IsDevelopmentVersion reports whether current identifies a local/development build rather than a published release. The updater compares a development build's commit with the latest release before deciding whether it is stale.
func IsNewerRelease ¶
func LaunchPreparedUpdate ¶ added in v2026.1010.0
LaunchPreparedUpdate hands a verified download to the detached coordinator.
func PrepareInstall ¶ added in v2026.1009.0
func PrepareInstall(ctx context.Context, tag string, progress io.Writer) (staged, target string, err error)
PrepareInstall downloads and verifies a release beside its final destination. It does not replace the running installation; the caller owns the staged file.
func ReleaseAssetName ¶
func RunSystemInstall ¶ added in v2026.603.0
func SetCompareReleaseAPIURL ¶ added in v2026.924.0
func SetCompareReleaseAPIURL(url string) func()
func SetDesktopRegistrar ¶ added in v2026.1009.0
SetDesktopRegistrar replaces OS registration for isolated installer tests.
func SetExecInstallRestartHook ¶ added in v2026.701.0
func SetHTTPDownload ¶ added in v2026.613.0
func SetLatestReleaseAPIURL ¶
func SetLatestReleaseAPIURL(url string) func()
func SetReleaseCommitAPIURL ¶ added in v2026.924.0
func SetReleaseCommitAPIURL(url string) func()
func SetScheduleInstallRestartHook ¶ added in v2026.605.0
func SimulateUpgradeExitRestartForTest ¶ added in v2026.701.0
func SnapshotSourceTree ¶ added in v2026.1001.1
SnapshotSourceTree records the source inputs before release binaries and their checksums are generated. A private index leaves the user's staging untouched; Git applies the same ignore rules and line-ending filters as a normal commit.
func SwitchToLayout ¶ added in v2026.1020.1
SwitchToLayout uses the same recoverable runtime handoff as an explicit upgrade.
func UsesExecInstallRestartAfterSystemInstall ¶ added in v2026.701.0
func UsesExecInstallRestartAfterSystemInstall() bool
func UsesExecInstallRestartAfterSystemInstallForTest ¶ added in v2026.701.0
func UsesExecInstallRestartAfterSystemInstallForTest() bool
func VerifyPreparedInstall ¶ added in v2026.1010.0
VerifyPreparedInstall checks the handoff again before stopping the runtime.
Types ¶
type CheckResult ¶
type CheckResult struct {
Current string
LatestTag string
Newer bool
Err error
LocalCommitRelation string
MatchesReleaseSource bool
}
func CheckForNewerRelease ¶ added in v2026.1012.0
func CheckForNewerRelease(ctx context.Context, currentVersion string) CheckResult
CheckForNewerRelease advertises an update only when the published release exceeds the local build's release baseline. Check remains available for an explicit request to replace a development build with the official release.
func CheckWithCommit ¶ added in v2026.924.0
func CheckWithCommit(ctx context.Context, currentVersion, localCommit string) CheckResult
func CheckWithCommitTime ¶ added in v2026.924.0
func CheckWithSourceTree ¶ added in v2026.1001.1
func CheckWithSourceTree(ctx context.Context, currentVersion, localCommit string, localCommitTime time.Time, sourceTree string) CheckResult
CheckWithSourceTree compares the current source commit and the input tree captured before compiling assets, independently of the executable's bytes.
func (CheckResult) Notice ¶
func (r CheckResult) Notice() *Notice
type InstallationBackup ¶ added in v2026.1009.3
type InstallationBackup struct {
// contains filtered or unexported fields
}
InstallationBackup keeps independent copies until all new processes are ready. Failed restoration leaves its copies on disk and reports their locations.
func BackupInstallation ¶ added in v2026.1009.3
func BackupInstallation(targets ...string) (*InstallationBackup, error)
func (*InstallationBackup) Close ¶ added in v2026.1009.3
func (b *InstallationBackup) Close()
func (*InstallationBackup) Locations ¶ added in v2026.1009.3
func (b *InstallationBackup) Locations() []string
func (*InstallationBackup) Restore ¶ added in v2026.1009.3
func (b *InstallationBackup) Restore() error
type PreparedDesktop ¶ added in v2026.1024.0
type PreparedDesktop struct {
// contains filtered or unexported fields
}
PreparedDesktop keeps a verified release off the live installation until the runtime coordinator has stopped clients and backed up both CLI and desktop.
func PrepareDesktopUpdate ¶ added in v2026.1024.0
func (*PreparedDesktop) BackupPaths ¶ added in v2026.1024.0
func (p *PreparedDesktop) BackupPaths() []string
func (*PreparedDesktop) Close ¶ added in v2026.1024.0
func (p *PreparedDesktop) Close()