v0.9.1 : le poste distant est integre a ajean (fini le binaire ajean-remote separe)

- nouvelle sous-commande `ajean remote install|connect|run|status|uninstall|logout`
  (reutilise internal/nodeclient), remplace le binaire cmd/ajean-remote supprime
- le service (Windows/systemd/launchd) lance desormais `ajean remote run`
- UI Postes distants : commande affichee `ajean remote install ...`
- CI release : retrait du cross-build des 6 binaires ajean-remote
This commit is contained in:
nathaninline committed 2026-08-14 09:24:40 +02:00
1 parent 1454dff2a7
commit 88d1e79e80
12 files changed
+97 -98

No files matched your search

+3 -3
View File
@@ -40,7 +40,7 @@ func Install() error {
case "darwin":
return installLaunchd(dst)
}
return fmt.Errorf("installation auto non gérée sur %s — lance « ajean-remote connect » via ton propre gestionnaire de démarrage", runtime.GOOS)
return fmt.Errorf("installation auto non gérée sur %s — lance « ajean remote connect » via ton propre gestionnaire de démarrage", runtime.GOOS)
}
func Uninstall() error {
@@ -58,7 +58,7 @@ func Uninstall() error {
func installSystemd(exe string) error {
unit := "[Unit]\nDescription=AJEAN poste distant\nAfter=network-online.target\n\n" +
"[Service]\nExecStart=" + exe + " run\nRestart=always\nRestartSec=5\n\n" +
"[Service]\nExecStart=" + exe + " remote run\nRestart=always\nRestartSec=5\n\n" +
"[Install]\nWantedBy=default.target\n"
dir := filepath.Join(os.Getenv("HOME"), ".config/systemd/user")
if err := os.MkdirAll(dir, 0o755); err != nil {
@@ -79,7 +79,7 @@ func installLaunchd(exe string) error {
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"><dict>
<key>Label</key><string>link.ajean.remote</string>
<key>ProgramArguments</key><array><string>` + exe + `</string><string>run</string></array>
<key>ProgramArguments</key><array><string>` + exe + `</string><string>remote</string><string>run</string></array>
<key>RunAtLoad</key><true/>
<key>KeepAlive</key><true/>
</dict></plist>
+2 -2
View File
@@ -73,13 +73,13 @@ func Install() error {
defer m.Disconnect()
if s, err := m.OpenService(serviceName); err == nil {
s.Close()
return fmt.Errorf("service déjà installé — « ajean-remote uninstall » d'abord")
return fmt.Errorf("service déjà installé — « ajean remote uninstall » d'abord")
}
s, err := m.CreateService(serviceName, dst, mgr.Config{
StartType: mgr.StartAutomatic,
DisplayName: "AJEAN — poste distant",
Description: "Pont léger permettant à votre serveur IA AJEAN d'agir sur ce PC.",
}, "run")
}, "remote", "run")
if err != nil {
return fmt.Errorf("création du service: %w", err)
}