mirror of
https://github.com/FluxaMedia/fluxa-desktop.git
synced 2026-08-16 12:13:43 +00:00
ci(windows): surface the real Expand-Archive failure instead of a swallowed exception
This commit is contained in:
parent
14ab9a0608
commit
f9918db942
1 changed files with 10 additions and 1 deletions
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
|
|
@ -93,11 +93,20 @@ jobs:
|
|||
- name: Fetch libVLC runtime
|
||||
shell: pwsh
|
||||
run: |
|
||||
$ErrorActionPreference = "Stop"
|
||||
$version = "3.0.23"
|
||||
$archive = "$env:RUNNER_TEMP/vlc-win64.zip"
|
||||
Invoke-WebRequest "https://get.videolan.org/vlc/$version/win64/vlc-$version-win64.zip" -OutFile $archive
|
||||
Get-Item $archive | Format-List Name, Length
|
||||
$extract = "$env:RUNNER_TEMP/vlc-win64"
|
||||
Expand-Archive $archive -DestinationPath $extract
|
||||
try {
|
||||
Expand-Archive $archive -DestinationPath $extract
|
||||
} catch {
|
||||
Write-Host "Expand-Archive failed:"
|
||||
$_ | Format-List * -Force
|
||||
$_.Exception | Format-List * -Force
|
||||
throw
|
||||
}
|
||||
$root = Get-ChildItem $extract -Directory | Select-Object -First 1
|
||||
New-Item -ItemType Directory -Force src-tauri/lib/vlc | Out-Null
|
||||
Copy-Item "$($root.FullName)/libvlc.dll" src-tauri/lib/vlc/
|
||||
|
|
|
|||
Loading…
Reference in a new issue