-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.ps1
More file actions
25 lines (19 loc) · 749 Bytes
/
bootstrap.ps1
File metadata and controls
25 lines (19 loc) · 749 Bytes
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
#Requires -Version 5.1
<#
.SYNOPSIS
Sets up the inspectcode-tui development environment.
.DESCRIPTION
Creates the .venv via uv, installs runtime + dev dependencies and the
Nuitka build tool (for compile-win64.ps1). Run once after cloning the repo.
#>
$ErrorActionPreference = "Stop"
Set-Location $PSScriptRoot
Write-Host "=== inspectcode-tui - dev environment ===" -ForegroundColor Cyan
Write-Host "[1/2] venv + dependencies (uv sync)..."
uv sync --extra dev
if ($LASTEXITCODE -ne 0) { throw "uv sync fehlgeschlagen" }
Write-Host "[2/2] Nuitka build tool..."
uv pip install nuitka
if ($LASTEXITCODE -ne 0) { throw "nuitka-Installation fehlgeschlagen" }
Write-Host ""
Write-Host "Done. Start with: .\run.ps1" -ForegroundColor Green