From 3938c9c8bdc8b6e870b58af4420d0734a3ba9c5a Mon Sep 17 00:00:00 2001 From: an Date: Fri, 10 Jul 2026 12:03:31 +0800 Subject: [PATCH] chore: point launcher at full-book translation branch --- scripts/open-readest-latest.ps1 | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/scripts/open-readest-latest.ps1 b/scripts/open-readest-latest.ps1 index 3ccfce58..c1be85f3 100644 --- a/scripts/open-readest-latest.ps1 +++ b/scripts/open-readest-latest.ps1 @@ -1,6 +1,7 @@ param( - [string]$Remote = "akai-tools", - [string]$Branch = "codex/desktop-review-editor-blocks", + [string]$Remote = "origin", + [string]$Branch = "codex/full-book-translation", + [switch]$Web, [switch]$SkipPull, [switch]$CheckOnly, [switch]$KeepRunning @@ -64,6 +65,12 @@ function Stop-OldReadestDev { } } +function Start-ReadestWeb { + Write-Step "Starting Readest web development server" + Write-Host "Refresh http://localhost:3000 to see the latest committed changes." + Invoke-Checked "pnpm" @("--filter", "@readest/readest-app", "dev-web") +} + function Assert-CleanWorktree { $status = (& git -C $RepoRoot status --porcelain) if ($status) { @@ -148,9 +155,13 @@ try { Stop-OldReadestDev - Write-Step "Starting Readest desktop with the latest code" - Write-Host "Close the Readest window or press Ctrl+C here to stop the dev server." - Invoke-Checked "pnpm" @("--filter", "@readest/readest-app", "tauri", "dev") + if ($Web) { + Start-ReadestWeb + } else { + Write-Step "Starting Readest desktop with the latest code" + Write-Host "Close the Readest window or press Ctrl+C here to stop the dev server." + Invoke-Checked "pnpm" @("--filter", "@readest/readest-app", "tauri", "dev") + } } catch { Write-Host "" Write-Host "Readest launcher failed:" -ForegroundColor Red