Skip to content

Commit e93e24d

Browse files
committed
winpython@3.14.5.0: Fix extraction (Closes #8231)
1 parent 06e97d3 commit e93e24d

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

bucket/winpython.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,18 @@
77
"architecture": {
88
"64bit": {
99
"url": "https://sourceforge.net/projects/winpython/WinPython_3.14/3.14.5.0/WinPython64-3.14.5.0slim.7z",
10-
"hash": "e54363cf3a0679bd75d4e345753304cac8f0be63d22b2bdfbcb238570b5786de",
11-
"extract_dir": "WPy64-3.14.5.0"
10+
"hash": "e54363cf3a0679bd75d4e345753304cac8f0be63d22b2bdfbcb238570b5786de"
1211
}
1312
},
13+
"pre_install": [
14+
"# Use a script to extract files since the extract_dir changes frequently.",
15+
"$items = @(Get-ChildItem -Path $dir | Select-Object -First 2)",
16+
"if ($items.Count -eq 1 -and $items[0].PSIsContainer) {",
17+
" $inner_dir = $items | ForEach-Object -MemberName FullName",
18+
" Move-Item -Path \"$inner_dir\\*\" -Destination $dir -Force",
19+
" Remove-Item -Path $inner_dir -Recurse -Force -ErrorAction Ignore",
20+
"}"
21+
],
1422
"bin": [
1523
"scripts\\python.bat",
1624
[

0 commit comments

Comments
 (0)