BPRT sync: point the page and docstrings at static/Sync-BPRT.ps1

Follow-up to 92f1e62, which moved the file but missed these references.
This commit is contained in:
cproudlock
2026-10-13 17:12:51 -04:00
parent 92f1e62966
commit 6187219378
3 changed files with 6 additions and 7 deletions

View File

@@ -6,7 +6,7 @@ packages, the Office zips and the bulk-enroll orchestrator scripts. The vendor
keeps it current on the user's GE work PC with MediaCreator Lite; this server
is only reachable from there over the GE network (this webapp and SSH, no
SMB), and never reaches out itself. So the user runs
scripts/windows/Sync-BPRT.ps1 there, which:
webapp/static/Sync-BPRT.ps1 there (downloadable from the BPRT page), which:
1. GETs manifest.json (path, size, sha256 of every vendor file here);
2. hashes its own copy and uploads only new or changed files, plus a
@@ -1434,11 +1434,10 @@ def active_imaging():
def sync_script():
"""Path of scripts/windows/Sync-BPRT.ps1 when the webapp can serve it."""
"""Path of static/Sync-BPRT.ps1 (shipped with the webapp) when it can be served."""
here = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
for p in (os.environ.get("BPRT_SYNC_SCRIPT", ""),
os.path.join(here, "static", "Sync-BPRT.ps1"),
os.path.join(here, "..", "scripts", "windows", "Sync-BPRT.ps1")):
os.path.join(here, "static", "Sync-BPRT.ps1")):
if p and os.path.isfile(p):
return os.path.abspath(p)
return None