mirror of
https://github.com/storytold/AniCraft.git
synced 2026-11-28 13:38:05 -08:00
15 lines
772 B
PowerShell
15 lines
772 B
PowerShell
# Runs the web editor in a real browser (ADR 0137, docs/web.md): builds web/ and drives it in
|
|
# headless Chrome or Edge through tests/web_browser.rs. The PowerShell twin of web-check.sh.
|
|
#
|
|
# scripts\web-check.ps1 # build web\, then check it
|
|
# $env:ANICRAFT_WEB_DIR = 'unzipped'; scripts\web-check.ps1 # check a bundle already built
|
|
# $env:ANICRAFT_BROWSER = 'C:\path\to\chrome.exe' # choose the browser
|
|
$ErrorActionPreference = 'Stop'
|
|
Set-Location -LiteralPath (Split-Path -Parent $PSScriptRoot)
|
|
if (-not $env:ANICRAFT_WEB_DIR) {
|
|
& (Join-Path $PSScriptRoot 'build-web.ps1')
|
|
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
|
}
|
|
cargo test -p anicraft --test web_browser -- --ignored --nocapture
|
|
exit $LASTEXITCODE
|