Go-Programm lc-agent: sendet neu kopierten Text als Clip ins Projekt "Zwischenablage" und übernimmt eigene Clips anderer Geräte live in die Zwischenablage. Von Passwort-Managern markierte Inhalte werden nie gesendet; Größengrenze, Ausschlussmuster, nur die letzten 50 eigenen Clips. Wiederholt beim Start, bis der Server erreichbar ist; beendet sich bei widerrufenem Token mit Exit-Code 3. Build für alle Plattformen per build.sh im Container, Autostart-Vorlagen für alle drei Systeme. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
986 B
PowerShell
18 lines
986 B
PowerShell
# Windows: start lc-agentw.exe (no console window) at login via the Startup folder.
|
|
# Run in PowerShell from the folder containing lc-agentw.exe:
|
|
# powershell -ExecutionPolicy Bypass -File autostart-windows.ps1
|
|
$target = Join-Path $env:LOCALAPPDATA "lan-clipboard"
|
|
New-Item -ItemType Directory -Force -Path $target | Out-Null
|
|
Copy-Item -Force (Join-Path $PSScriptRoot "lc-agentw.exe") $target
|
|
Copy-Item -Force (Join-Path $PSScriptRoot "lc-agent.exe") $target
|
|
|
|
$shell = New-Object -ComObject WScript.Shell
|
|
$link = $shell.CreateShortcut((Join-Path ([Environment]::GetFolderPath("Startup")) "LAN-Clipboard Agent.lnk"))
|
|
$link.TargetPath = Join-Path $target "lc-agentw.exe"
|
|
$link.Arguments = "run -log `"$target\agent.log`""
|
|
$link.WorkingDirectory = $target
|
|
$link.Save()
|
|
Write-Host "Autostart eingerichtet. Jetzt einmalig einrichten mit:"
|
|
Write-Host " & `"$target\lc-agent.exe`" setup"
|
|
Write-Host "Danach abmelden/anmelden oder lc-agentw.exe direkt starten. Protokoll: $target\agent.log"
|