Skip to content

Commit 6820d3d

Browse files
committed
update python_exe_sub_directory
1 parent 647c020 commit 6820d3d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ env:
2222
WINPYTHON_VERSION: "16.6.20250620final"
2323
WINPYTHON_FILENAME: "Winpython64-3.12.10.1dot.zip"
2424
WINPYTHON_DOWNLOAD_URL: "https://github.com/winpython/winpython/releases/download/16.6.20250620final/Winpython64-3.12.10.1dot.zip"
25-
25+
2626
jobs:
2727
build:
2828
runs-on: windows-latest
@@ -228,13 +228,14 @@ jobs:
228228
$config = @{}
229229
Write-Host "⚠️ No existing config file, creating new one"
230230
}
231+
$archiveNameWithoutExtension = $archiveName -replace '\.7z$', ''
231232
232233
# Update all values
233234
$config.python_download_url = "https://github.com/$repoOwner/$repoName/releases/download/v$version/$archiveName"
234235
$config.python_expected_hash_sha256 = $hash
235236
$config.default_install_directory = "C:\hec\python"
236237
$config.default_env_var_name = "PYTHON_CWMS_HOME"
237-
$config.python_exe_sub_directory = "$winpythonSubDir\python"
238+
$config.python_exe_sub_directory = "$archiveNameWithoutExtension\python"
238239
$config.version = $version
239240
$config.archive_filename = $archiveName
240241
$config.archive_size_mb = [math]::Round((Get-Item $archiveName).Length / 1MB, 2)

0 commit comments

Comments
 (0)