From 4102d4f32116d31accc0f5af204f0bf38ef7df26 Mon Sep 17 00:00:00 2001 From: viettranx Date: Fri, 27 Mar 2026 12:23:29 +0700 Subject: [PATCH] fix(scripts): auto-launch app after install on macOS and Windows --- scripts/install-lite.ps1 | 5 ++--- scripts/install-lite.sh | 7 ++----- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/scripts/install-lite.ps1 b/scripts/install-lite.ps1 index 6290f666..08c898d6 100644 --- a/scripts/install-lite.ps1 +++ b/scripts/install-lite.ps1 @@ -75,6 +75,5 @@ Write-Host "" Write-Host "GoClaw Lite v$Semver installed!" -ForegroundColor Green Write-Host " Location: $InstallDir" -ForegroundColor Gray Write-Host "" -Write-Host "To launch:" -ForegroundColor White -Write-Host " Start Menu -> GoClaw Lite" -Write-Host " Or run: & '$ExePath'" +Write-Host "-> Launching GoClaw Lite..." +if (Test-Path $ExePath) { Start-Process $ExePath } diff --git a/scripts/install-lite.sh b/scripts/install-lite.sh index e4db005a..c1c93e13 100755 --- a/scripts/install-lite.sh +++ b/scripts/install-lite.sh @@ -98,8 +98,5 @@ xattr -rd com.apple.quarantine "$TARGET" 2>/dev/null || true echo "" echo "✅ GoClaw Lite v${SEMVER} installed to $TARGET" echo "" -echo "To launch:" -echo " open /Applications/goclaw-lite.app" -echo "" -echo "If macOS blocks the app:" -echo " Right-click → Open → Open (first launch only)" +echo "→ Launching GoClaw Lite..." +open "$TARGET"