Fetch disk image from private GitHub release; harden download scripts

OneDrive 1drv.ms links no longer serve raw bytes to headless clients after the SPO migration. The disk image now lives as a release asset on a private repo and is fetched via 'gh release download' using DISK_REPO + DISK_TAG vars and an IMAGES_REPO_TOKEN secret. Scripts fail fast on missing env, bad zip, or missing windows95.img.
This commit is contained in:
Felix Rieseberg
2026-04-12 19:16:13 -07:00
parent dddaca9120
commit 60ee631575
3 changed files with 67 additions and 13 deletions

View File

@@ -71,12 +71,16 @@ jobs:
run: tools/download-disk.ps1
if: matrix.os == 'windows-latest' && startsWith(github.ref, 'refs/tags/')
env:
DISK_URL: ${{ secrets.DISK_URL }}
DISK_REPO: ${{ vars.DISK_REPO }}
DISK_TAG: ${{ vars.DISK_TAG }}
GH_TOKEN: ${{ secrets.IMAGES_REPO_TOKEN }}
- name: Download disk image (sh)
run: chmod +x tools/download-disk.sh && ./tools/download-disk.sh
if: matrix.os != 'windows-latest' && startsWith(github.ref, 'refs/tags/')
env:
DISK_URL: ${{ secrets.DISK_URL }}
DISK_REPO: ${{ vars.DISK_REPO }}
DISK_TAG: ${{ vars.DISK_TAG }}
GH_TOKEN: ${{ secrets.IMAGES_REPO_TOKEN }}
- name: Install
run: npm ci
- name: Make