-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.ps1
More file actions
36 lines (28 loc) · 1.23 KB
/
Copy pathbootstrap.ps1
File metadata and controls
36 lines (28 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#Requires -Version 5.1
<#
.SYNOPSIS
Sets up the console-error-scanner development environment.
.DESCRIPTION
Creates the .venv via uv, installs runtime + dev dependencies, the Nuitka
build tool (for compile-win64.ps1) and the Playwright Chromium browser.
Run once after cloning the repo.
#>
$ErrorActionPreference = "Stop"
Set-Location $PSScriptRoot
# Corporate-Proxy (Zscaler/EON): uv nutzt den Windows-Zertifikatspeicher, sonst
# scheitert es an 'invalid peer certificate: UnknownIssuer'. SSL_CERT_FILE muss
# geleert werden, sonst zwingt uv ein von rustls abgelehntes Bundle auf.
$env:UV_SYSTEM_CERTS = "1"
$env:SSL_CERT_FILE = $null
Write-Host "=== console-error-scanner - dev environment ===" -ForegroundColor Cyan
Write-Host "[1/3] venv + dependencies (uv sync)..."
uv sync --extra dev
if ($LASTEXITCODE -ne 0) { throw "uv sync fehlgeschlagen" }
Write-Host "[2/3] Nuitka build tool..."
uv pip install nuitka
if ($LASTEXITCODE -ne 0) { throw "nuitka-Installation fehlgeschlagen" }
Write-Host "[3/3] Playwright Chromium..."
uv run playwright install chromium
if ($LASTEXITCODE -ne 0) { throw "playwright install fehlgeschlagen" }
Write-Host ""
Write-Host "Done. Start with: .\run.ps1 https://example.com" -ForegroundColor Green