Spaces:
Sleeping
Sleeping
Deploy: clean professional lite builder (no false integrity failure)
Browse files- Lite bundle now exits cleanly with guidance (Start-JackAILocal .ps1/.sh)
instead of failing the full-package integrity check.
- Exported builder no longer ships the misleading SHA manifest or internal
dev/vendor dirs (docs, scripts, tools, updates, client-builder, installer,
deploy).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Files changed (3)
1 unmodified line2345671 unmodified lineset -euo pipefailROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"LOG_DIR="$ROOT_DIR/.jackailocal/logs"mkdir -p "$LOG_DIR"export JACKAILOCAL_ROOT="$ROOT_DIR"1 unmodified line2345678910111213141516171819202122232425262728293031323334353637383940411 unmodified lineset -euo pipefailROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"# Lite / inspection bundle exported from the hosted Hugging Face Space: it ships# the builder, WebUI, config and the AI-reviewed manifest, but NOT the native# runtime binaries or models (a hosted Space cannot ship them). Exit cleanly with# guidance instead of failing on a missing binary.BUILD_MANIFEST="$ROOT_DIR/manifest/build-manifest.json"IS_LITE=0if [ -f "$BUILD_MANIFEST" ] && grep -q '"hosted_lite_build"[[:space:]]*:[[:space:]]*true' "$BUILD_MANIFEST"; thenIS_LITE=1fiif [ ! -x "$ROOT_DIR/bin/jackailocald" ]; thenIS_LITE=1fiif [ "$IS_LITE" -eq 1 ]; thencat <<'LITE_EOF'JackAILocal - lite inspection bundle-----------------------------------------------------------------This package was exported from the hosted Hugging Face Space.It contains the builder scripts, WebUI, configuration and theAI-reviewed build manifest - but NOT the native runtime binaries(Ollama, whisper.cpp, Piper) or the models, which a hosted Spacecannot ship. This bundle is for inspecting the build plan.To actually run JackAILocal:1. Get the full package (with binaries) from the project repo.2. From that full package, run BUILD-LOCAL-MAC.command or BUILD-USB-MAC.command.See README-FIRST.txt and manifest/build-manifest.json for details.-----------------------------------------------------------------LITE_EOFexit 0fiLOG_DIR="$ROOT_DIR/.jackailocal/logs"mkdir -p "$LOG_DIR"export JACKAILOCAL_ROOT="$ROOT_DIR"
2297 unmodified lines2298229923002301230223032304230539 unmodified lines2345234623472348234923502297 unmodified lines"START-HERE.cmd", "START-DESKTOP.cmd", "STOP-JACKAILOCAL.cmd", "START-HERE.command", "STOP-JACKAILOCAL.command","BUILD-LOCAL.cmd", "BUILD-USB.cmd", "BUILD-SSD.cmd", "BUILD-LOCAL-MAC.command", "BUILD-USB-MAC.command", "BUILD-SSD-MAC.command", "README-FIRST.txt", "autorun.inf","webui", "windows", "macos", "unix", "config", "manifest", "models", "backends", "bin","docs", "tools", "scripts", "updates", "licenses", "client-builder", "content", "content-packs","installer", "deploy",]with tempfile.NamedTemporaryFile(delete=False, suffix=".zip", prefix=prefix) as tmp:output_path = tmp.name39 unmodified linesrelative = os.path.relpath(full_path, WORKSPACE_ROOT).replace("\\", "/")if relative == "config/update-private-key.xml" or filename.endswith(".pyc"):continuearchive.write(full_path, relative)return output_path2297 unmodified lines2298229923002301230223032304230523062307230839 unmodified lines234823492350235123522353235423552356235723582297 unmodified lines"START-HERE.cmd", "START-DESKTOP.cmd", "STOP-JACKAILOCAL.cmd", "START-HERE.command", "STOP-JACKAILOCAL.command","BUILD-LOCAL.cmd", "BUILD-USB.cmd", "BUILD-SSD.cmd", "BUILD-LOCAL-MAC.command", "BUILD-USB-MAC.command", "BUILD-SSD-MAC.command", "README-FIRST.txt", "autorun.inf","webui", "windows", "macos", "unix", "config", "manifest", "models", "backends", "bin","licenses", "content", "content-packs",# Internal dev/vendor directories (docs with commercialization notes,# scripts, tools, update key-gen tooling, client-builder, installer and# deploy sources) are deliberately NOT shipped in the exported product# builder so the download stays clean and customer/judge-facing.]with tempfile.NamedTemporaryFile(delete=False, suffix=".zip", prefix=prefix) as tmp:output_path = tmp.name39 unmodified linesrelative = os.path.relpath(full_path, WORKSPACE_ROOT).replace("\\", "/")if relative == "config/update-private-key.xml" or filename.endswith(".pyc"):continue# A lite bundle ships no native binaries, so the full# package SHA baseline would only yield false integrity# failures. Drop it from the lite export.if lite_build and relative == "manifest/sha256-manifest.json":continuearchive.write(full_path, relative)return output_path
10 unmodified lines11121314151610 unmodified lines$RunDir = Join-Path $Root ".jackailocal\run"New-Item -ItemType Directory -Force -Path $DiagDir,$LogDir,$CacheDir,$RunDir | Out-Null& (Join-Path $PSScriptRoot "hwscan-windows.ps1") -OutputPath (Join-Path $DiagDir "hardware.json") | Out-Null& (Join-Path $PSScriptRoot "Integrity-Check.ps1") -Root $Root -Mode Fail | Out-Null10 unmodified lines11121314151617181920212223242526272829303132333435363738394041424344454647484910 unmodified lines$RunDir = Join-Path $Root ".jackailocal\run"New-Item -ItemType Directory -Force -Path $DiagDir,$LogDir,$CacheDir,$RunDir | Out-Null# Lite / inspection bundle exported from the hosted Hugging Face Space: it ships# the builder scripts, WebUI, config and the AI-reviewed manifest, but NOT the# native runtime binaries (Ollama, whisper.cpp, Piper) or the models, which a# hosted Space cannot ship. Detect it and exit cleanly with guidance instead of# failing the integrity check meant for the full package.$buildManifest = Join-Path $Root "manifest\build-manifest.json"$isLite = $falseif (Test-Path $buildManifest) {try {$bm = Get-Content -Raw $buildManifest | ConvertFrom-Jsonif ($bm.hosted_lite_build -eq $true) { $isLite = $true }} catch {}}if (-not (Test-Path (Join-Path $Root "bin\jackailocald.exe"))) { $isLite = $true }if ($isLite) {Write-Host ""Write-Host "JackAILocal - lite inspection bundle" -ForegroundColor CyanWrite-Host "-----------------------------------------------------------------"Write-Host "This package was exported from the hosted Hugging Face Space."Write-Host "It contains the builder scripts, WebUI, configuration and the"Write-Host "AI-reviewed build manifest - but NOT the native runtime binaries"Write-Host "(Ollama, whisper.cpp, Piper) or the models, which a hosted Space"Write-Host "cannot ship. This bundle is for inspecting the build plan."Write-Host ""Write-Host "To actually run JackAILocal:"Write-Host " 1. Get the full package (with binaries) from the project repo."Write-Host " 2. From that full package, run BUILD-LOCAL.cmd or BUILD-USB.cmd."Write-Host ""Write-Host "See README-FIRST.txt and manifest\build-manifest.json for details."Write-Host "-----------------------------------------------------------------"exit 0}& (Join-Path $PSScriptRoot "hwscan-windows.ps1") -OutputPath (Join-Path $DiagDir "hardware.json") | Out-Null& (Join-Path $PSScriptRoot "Integrity-Check.ps1") -Root $Root -Mode Fail | Out-Null
macos/Start-JackAILocal.sh+34
saas/gradio/app.py+10-2
windows/Start-JackAILocal.ps1+33