zapret-kvn/xray_fluent/platform
Repository files (latest commit first)
Filename Latest commit message Latest commit date
loop-uh e18064bd7d
Some checks failed
Windows project source guards / test (push) Has been cancelled
Keep lazy imports reading the running exe after it is replaced
PyInstaller reopens the exe by name for every lazy import. When another file
took that name while the app ran, the next lazy import read the new file at
the old offsets: field check #3 (2026-11-23) found 15 crashes on
0.8.102-0.8.107 (crash:error = zlib.error at pyimod01_archive.extract:134,
crash:OSError at extract:119) in start_metrics_worker and the disconnect
cleanup, often seconds from a failed update on the same install.

frozen_archive.install gives PyInstaller's archive reader one descriptor to
the original file, opened with FILE_SHARE_DELETE, so renaming or deleting the
exe works as before and imports keep reading this build. The first time the
name points at another file the app logs it and notes the app error
update:exe_replaced, so whatever swaps files under a live app stays visible.

Proof: tests/test_frozen_archive.py (PyInstaller's own reader crashes
unpinned and reads the original pinned, on the build VM with PyInstaller
6.21) and a frozen onedir probe on win10 (unpinned zlib.error, pinned OK).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 04:13:46 -05:00
..
windows Прокси: предупреждать, если браузер не берёт системный прокси; 172.* только частные 2026-10-31 14:19:44 -04:00
__init__.py feat: use official Amnezia transport and organize runtime modules 2026-09-06 00:14:08 +03:00
frozen_archive.py Keep lazy imports reading the running exe after it is replaced 2026-11-23 04:13:46 -05:00