mirror of
https://github.com/mitch030504/Wiicompiled_VR_Frame.git
synced 2026-10-06 01:00:14 +02:00
Fix the Dawn source extraction under Windows PowerShell
Windows PowerShell drops the inner double quotes when it builds a native command line, so Python received filter=data as a bare name and the build stopped at extraction with "Python 3.12+ required". Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7498b78ce4
commit
8245af6607
1 file changed
+3
-1
@@ -23,7 +23,9 @@ if ((Get-FileHash -LiteralPath $archive -Algorithm SHA256).Hash.ToLowerInvariant
|
||||
}
|
||||
$source = Join-Path $WorkDirectory "dawn-$revision"
|
||||
if (-not (Test-Path -LiteralPath $source)) {
|
||||
& $Python -c 'import sys,tarfile; tarfile.open(sys.argv[1]).extractall(sys.argv[2], filter="data")' $archive $WorkDirectory
|
||||
# Single quotes inside: Windows PowerShell drops the inner double quotes when it builds a
|
||||
# native command line, and Python then reads filter=data as a name.
|
||||
& $Python -c "import sys,tarfile; tarfile.open(sys.argv[1]).extractall(sys.argv[2], filter='data')" $archive $WorkDirectory
|
||||
if ($LASTEXITCODE -ne 0) { throw 'Dawn source extraction failed (Python 3.12+ required).' }
|
||||
}
|
||||
$patch = Join-Path $PSScriptRoot '..\aurora-main\patches\dawn\apply.py'
|
||||
|
||||
Reference in new issue
Block a user