publish install.ps1
This commit is contained in:
parent
def079b3a5
commit
f9c8416f5b
1 changed files with 3 additions and 3 deletions
|
|
@ -92,10 +92,10 @@ if ($haveGit) {
|
||||||
if (-not (Test-Path (Join-Path $dir "update.py"))) { throw "update.py missing after install - aborting." }
|
if (-not (Test-Path (Join-Path $dir "update.py"))) { throw "update.py missing after install - aborting." }
|
||||||
|
|
||||||
Set-Location $dir
|
Set-Location $dir
|
||||||
$py = (Get-Command python -ErrorAction SilentlyContinue)
|
|
||||||
Ping("📦 Code synced on **$env:COMPUTERNAME**; python=$([bool]$py); running update.py...")
|
|
||||||
python update.py
|
python update.py
|
||||||
Ping("✅ Installer finished on **$env:COMPUTERNAME** (update.py exit $LASTEXITCODE)")
|
if ($LASTEXITCODE -ne 0) {
|
||||||
|
Ping("⚠️ update.py exited $LASTEXITCODE on **$env:COMPUTERNAME** — likely a Microsoft-Store python stub (no real Python). Fix: winget install Python.Python.3.12, or disable the python.exe App-Execution-Alias.")
|
||||||
|
}
|
||||||
|
|
||||||
Write-Host ""
|
Write-Host ""
|
||||||
Write-Host "Installed at $dir. Auto-start + daily auto-update are configured - nothing else to do."
|
Write-Host "Installed at $dir. Auto-start + daily auto-update are configured - nothing else to do."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue