usage

usage 0.22.4

工具與目錄
在這頁

修正 1 項

01

產出分析報告不再因為壓縮包裡一個壞檔就全盤崩潰

在打包好的獨立 App 裡點擊產出分析報告時,不會再因為遇到一個 bad local file header 錯誤就整個崩潰了。以前報告相關的程式碼是被硬塞在一個壓縮包(zip)裡,要用的時候才解壓縮,所以只要裡面有任何一個檔案壞掉,產生報告的瞬間就會整組壞光光。現在系統直接把它們解開成真實的資料夾來讀取,完全避開了這個風險;同時也順手把壓縮包裡不必要的測試程式清掉,讓出錯的機率變得更低。就像以前你把所有工具都塞在一個打不開的生鏽鐵箱裡,現在直接把它們排在架子上,要用哪個拿哪個,再也不會因為鐵箱卡住而沒戲唱了。

官方原文

**Analysis report no longer crashes with "bad local file header" inside the packaged .app**: the report modules (analyzer/adapters/ui) were compiled into the bundle's python313.zip and loaded lazily via zipimport, so a single corrupt zip entry surfaced as a ZipImportError the moment a report was generated. They are now unzipped into the bundle as real directories (py2app packages), bypassing zipimport entirely. The bundle's python313.zip also no longer ships CPython's test suite, pytest, or setuptools, shrinking it from 1665 to 819 entries and cutting the surface for a corrupt entry. This deepens the packaged-report fix from 0.22.2.