Skip to content

Clear the downloaded-from-the-internet mark so the Windows portable build opens - #199

Merged
abrignoni merged 2 commits into
mainfrom
fix/windows-zone-marks
Sep 26, 2026
Merged

abrignoni merged 2 commits into
mainfrom
fix/windows-zone-marks

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Fixes the Windows portable build failing to open its window with "Failed to resolve Python.Runtime.Loader.Initialize".

  • Explorer's Extract All copies the zip's downloaded-from-the-internet mark onto every file, and .NET Framework will not load a marked assembly. On Windows the frozen build now clears that mark from the .dll files in its own _internal folder before pythonnet loads, the same thing the Unblock checkbox does. Files it cannot change are left alone.
  • --selfcheck now imports pywebview's WinForms backend on Windows and exits 1 on a failure instead of opening the error dialog.
  • The Windows test build marks every file the way Extract All does before the smoke tests, then opens the desktop window from the marked build.
  • README: how to unblock v2026.5.1 or earlier.

The first commit alone reproduced the error on the marked CI build (run 36258380140); the second is the fix.

🤖 Generated with Claude Code

abrignoni and others added 2 commits September 26, 2026 13:15
The self-check now imports pywebview's WinForms backend on Windows, where
pythonnet loads .NET, and reports a failure with exit status 1 instead of
the windowed build's error dialog. The Windows test build is given the
Zone.Identifier mark Explorer copies onto files extracted from a download
before it is smoke-tested.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Extracting the portable zip with Explorer copies the zip's Zone.Identifier
stream onto every file, and .NET Framework will not load an assembly
marked as coming from the internet, so the window never opened
("Failed to resolve Python.Runtime.Loader.Initialize"). On Windows the
frozen build now removes that stream from the .dll files under its own
_internal folder before pythonnet loads, which is what ticking Unblock
does. Files it cannot change are left alone. The workers skip it.

The Windows test build now also opens the desktop window from the
marked build, and the README says how to unblock an older build.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@abrignoni
abrignoni merged commit 3b10080 into main Sep 26, 2026
12 checks passed
@abrignoni
abrignoni deleted the fix/windows-zone-marks branch September 26, 2026 18:23
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.

1 participant