diff --git a/scripts/install-syncthing.ps1 b/scripts/install-syncthing.ps1 index af54c8bc..019cf614 100644 --- a/scripts/install-syncthing.ps1 +++ b/scripts/install-syncthing.ps1 @@ -6,7 +6,7 @@ Syncthing is a continuous file synchronization program. See https://syncthing.net for details. .EXAMPLE PS> ./install-syncthing.ps1 - ⏳ Installing Syncthing... + ⏳ Installing Syncthing from WinGet... ... .LINK Author: Markus Fleschutz | License: CC0 @@ -15,20 +15,24 @@ #> try { - "⏳ Installing Syncthing..." $stopWatch = [system.diagnostics.stopwatch]::startNew() if ($IsLinux) { + "⏳ Installing Syncthing..." & sudo apt install syncthing } else { - & winget install --id Syncthing.Syncthing + "⏳ Installing Syncthing from WinGet..." + & winget install --id Syncthing.Syncthing --accept-package-agreements --accept-source-agreements + + "⏳ Starting Syncthing as daemon..." + Start-Process -NoNewWindow "$env:LOCALAPPDATA\Microsoft\WinGet\Links\syncthing.exe" } [int]$elapsed = $stopWatch.Elapsed.TotalSeconds "✅ Syncthing installed successfully in $($elapsed)s." - " Adming GUI at: http://127.0.0.1:8384 (use )" - " Your sync folder is at: ~/Sync/" + " Web interface: http://127.0.0.1:8384 (open by: )" + " Sync folder at: ~/Sync/ (execute: cd-sync.ps1)" exit 0 # success } catch { - "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" + "⚠️ Error: $($Error[0])" exit 1 } diff --git a/scripts/list-cli-tools.ps1 b/scripts/list-cli-tools.ps1 index 28990b14..687cfe0f 100755 --- a/scripts/list-cli-tools.ps1 +++ b/scripts/list-cli-tools.ps1 @@ -288,6 +288,7 @@ function List-CLI-Tools { ListTool strings "--version" ListTool strip "--version" ListTool sudo "--version" + ListTool syncthing "--version" ListTool systeminfo "" ListTool tail "--version" ListTool tar "--version"