Skip to content

packagemanager: downloads extract again on Windows - #2365

Merged
jcelerier merged 1 commit into
masterfrom
packagemanager-windows-zip
Oct 29, 2026
Merged

jcelerier merged 1 commit into
masterfrom
packagemanager-windows-zip

Conversation

@jcelerier

Copy link
Copy Markdown
Member

On Windows the package manager could not install anything downloaded as a zip: the first-run user library download, installAddon, installLibrary and installSDK all failed with "The downloaded archive could not be read".

This bumps 3rdparty/zipdownloader to jcelerier/zipdownloader#6, which has the details:

  • The downloaded archive was still held open by its QTemporaryFile when miniz tried to open it, and miniz's _wfopen_s refuses to share a file with a writer. The temporary file is now released first.
  • Entries are written through QFile, so paths past MAX_PATH extract. The user library's deepest entry is 169 characters before the packages folder, close to the limit for a long user name or a OneDrive-redirected Documents folder.

Merge jcelerier/zipdownloader#6 first. The submodule commit (a7ed5dd) currently exists only on that PR's branch; if that branch is squash-merged or rebased, this bump needs to point at the resulting commit.

Testing

Windows 11, clang64: score_lib_base builds in the developer configuration. A standalone harness over the same sources downloads and extracts score-user-library/archive/master.zip in Release (6741 files) where it failed before. The full score application has not been run with this change.

Bumps zipdownloader: the downloaded archive was still held by its
QTemporaryFile when miniz tried to open it, so the user library and every
package failed with "The downloaded archive could not be read". Entries
are also extracted past MAX_PATH now.
@jcelerier
jcelerier merged commit fba38c6 into master Oct 29, 2026
56 of 60 checks passed
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 49.18% (-0.003%) from 49.183% — packagemanager-windows-zip into master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants