fix: rename binary to ssm

This commit is contained in:
2026-07-19 21:23:44 +08:00
parent fcaef77aea
commit fee5c34218
10 changed files with 56 additions and 56 deletions

View File

@ -16,7 +16,7 @@ func newPlatformManager(configDir string) (platformManager, error) {
}
// windowsServiceManager manages services via sc.exe, with the service
// binPath pointing back at this same ss executable in
// binPath pointing back at this same ssm executable in
// "service run-windows" mode (see wrapper_windows.go) instead of a separate
// pywin32-based wrapper process. Direct port of WindowsServiceManager in
// service_manager.py, minus the pywin32/JSON-config-file indirection.
@ -85,7 +85,7 @@ func runAsAdmin(cmdArgs []string, description string) error {
func (w *windowsServiceManager) Install(cfg Config) error {
selfPath, err := os.Executable()
if err != nil {
return fmt.Errorf("failed to determine ss executable path: %w", err)
return fmt.Errorf("failed to determine ssm executable path: %w", err)
}
serviceCmd := fmt.Sprintf(`"%s" service run-windows --name "%s" --bin "%s" --args "%s"`,