ci: Electron-Binary resumefaehig vorladen (ELECTRON_CACHE)
GitHub-CDN brach den ~120-MB-Download zweimal mitten im Transfer ab (Jobs 415/416, wsarecv: connection forcibly closed); app-builder kann nicht fortsetzen. curl -C - in Schleife + persistenter Cache im Gast. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKhFj1S3UdD6xL2fbWPeYj
This commit is contained in:
co-authored by
Claude Fable 5
parent
97e18bbf2f
commit
cf66ff018d
@@ -168,8 +168,17 @@ desktop_windows:
|
|||||||
allow_failure: true
|
allow_failure: true
|
||||||
variables:
|
variables:
|
||||||
SQLCIPHER_BUNDLED: "1"
|
SQLCIPHER_BUNDLED: "1"
|
||||||
|
ELECTRON_CACHE: C:\electron-cache
|
||||||
script:
|
script:
|
||||||
- pnpm install --frozen-lockfile --filter element-desktop
|
- pnpm install --frozen-lockfile --filter element-desktop
|
||||||
|
# Electron-Binary vorab resumefaehig laden: der GitHub-CDN-Download riss zweimal
|
||||||
|
# mitten im Transfer ab (Jobs 415/416) und app-builder kann nicht fortsetzen.
|
||||||
|
# curl -C - nimmt nach jedem Abriss am letzten Byte wieder auf; das fertige Zip
|
||||||
|
# landet im persistenten ELECTRON_CACHE und wird nie erneut geladen.
|
||||||
|
- $ev = (& node -p "require('./apps/desktop/package.json').devDependencies.electron") -replace '[\^~]',''
|
||||||
|
- New-Item -ItemType Directory -Force $env:ELECTRON_CACHE | Out-Null
|
||||||
|
- $zip = "$env:ELECTRON_CACHE\electron-v$ev-win32-x64.zip"
|
||||||
|
- if (-not (Test-Path $zip)) { $ok=$false; foreach ($i in 1..8) { & curl.exe -sSL -C - -o "$zip.part" "https://github.com/electron/electron/releases/download/v$ev/electron-v$ev-win32-x64.zip"; if ($LASTEXITCODE -eq 0) { Move-Item -Force "$zip.part" $zip; $ok=$true; break }; Start-Sleep 5 }; if (-not $ok) { throw "electron-Download nach 8 Versuchen gescheitert" } }
|
||||||
- Copy-Item -Recurse apps/web/webapp apps/desktop/webapp
|
- Copy-Item -Recurse apps/web/webapp apps/desktop/webapp
|
||||||
- Copy-Item apps/desktop/axion1337/config.json apps/desktop/webapp/config.json -Force
|
- Copy-Item apps/desktop/axion1337/config.json apps/desktop/webapp/config.json -Force
|
||||||
- cd apps/desktop
|
- cd apps/desktop
|
||||||
|
|||||||
Reference in New Issue
Block a user