修正打包版 App 找不到多語系檔而崩潰的問題
之前直接點擊安裝好的 App 啟動時,因為打包軟體漏掉了一份多語系檔(i18n.json),導致系統一開機就找不到檔案而直接閃退崩潰。現在我們把這份負責翻譯的檔案正確包進去了,而且系統也學會優先從 App 自己的肚子裡找檔案。就像是買了進口家電,以前箱子裡漏放了翻譯說明書,你一開機就完全無法使用;現在原廠已經把說明書乖乖塞進包裝盒,拿出來就能直接懂它的語言了。
發布日期:2026-05-22
之前直接點擊安裝好的 App 啟動時,因為打包軟體漏掉了一份多語系檔(i18n.json),導致系統一開機就找不到檔案而直接閃退崩潰。現在我們把這份負責翻譯的檔案正確包進去了,而且系統也學會優先從 App 自己的肚子裡找檔案。就像是買了進口家電,以前箱子裡漏放了翻譯說明書,你一開機就完全無法使用;現在原廠已經把說明書乖乖塞進包裝盒,拿出來就能直接懂它的語言了。
Previously, when launching the compiled App directly, a missing translation file (i18n.json) caused the system to panic and crash immediately on startup. We've now properly packed this responsible language file inside, and the system has learned to prioritize looking inside its own app bundle for it. It's like buying an imported appliance where the box used to be missing the translated manual, leaving you completely stuck on power-up; now the manufacturer has properly tucked the manual into the packaging so you can understand its language right out of the box.
**Fix .app launch failure when i18n.json is missing**: py2app now includes `i18n.json` in the resource list, and the menu bar / Web panel loaders prefer the `.app` bundle's `Contents/Resources/i18n.json` before falling back to source-tree paths, preventing the `FileNotFoundError` that broke v0.6.0+ launches.