17 lines
374 B
PowerShell
17 lines
374 B
PowerShell
$ErrorActionPreference = "Stop"
|
|
|
|
$Root = Split-Path -Parent $PSScriptRoot
|
|
Set-Location $Root
|
|
|
|
$Python = Join-Path $Root ".venv\Scripts\python.exe"
|
|
if (-not (Test-Path $Python)) {
|
|
$Python = "python"
|
|
}
|
|
|
|
& $Python -m ensurepip --upgrade
|
|
& $Python -m pip install -e ".[dev]"
|
|
& $Python -m PyInstaller --clean "TraderAI.spec"
|
|
|
|
Write-Host ""
|
|
Write-Host "Built dist\TraderAI.exe"
|