From 814e408ab8a1dec7a467cd6c96b6c807a4cd2f2e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 30 Apr 2026 14:00:21 +0000 Subject: [PATCH 1/2] Initial plan From 4cd83e8e5a843d951c540745d9a8c1e34e7a38ed Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 30 Apr 2026 14:03:51 +0000 Subject: [PATCH 2/2] Fix Windows 386 URL generation for Python installer downloads Agent-Logs-Url: https://github.com/version-fox/vfox-python/sessions/c5007c2e-24f3-40ba-94a7-0eef5e0f3c31 Co-authored-by: bytemain <13938334+bytemain@users.noreply.github.com> --- lib/util.lua | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/util.lua b/lib/util.lua index a9a6758..8128663 100644 --- a/lib/util.lua +++ b/lib/util.lua @@ -20,7 +20,7 @@ local REQUEST_HEADERS = { -- download source local DOWNLOAD_SOURCE = { - MSI = PYTHON_URL .. "%s/python-%s.%s.msi", + MSI = PYTHON_URL .. "%s/python-%s%s.msi", EXE = PYTHON_URL .. "%s/python-%s%s.exe", SOURCE = PYTHON_URL .. "%s/Python-%s.tar", } @@ -247,12 +247,15 @@ end function getReleaseForWindows(version) local archType = RUNTIME.archType - if archType == "386" then - archType = "" + local exeArchSuffix = "" + local msiArchSuffix = "" + if archType ~= "386" then + exeArchSuffix = "-" .. archType + msiArchSuffix = "." .. archType end -- try get exe file - local url = DOWNLOAD_SOURCE.EXE:format(version, version, '-' .. archType) + local url = DOWNLOAD_SOURCE.EXE:format(version, version, exeArchSuffix) local resp, err = http.head({ url = url, headers = REQUEST_HEADERS @@ -262,7 +265,7 @@ function getReleaseForWindows(version) end -- try get msi file - local url = DOWNLOAD_SOURCE.MSI:format(version, version, archType) + local url = DOWNLOAD_SOURCE.MSI:format(version, version, msiArchSuffix) local resp, err = http.head({ url = url, headers = REQUEST_HEADERS