forked from akai/readest
chore: point launcher at full-book translation branch
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user