mirror of
https://github.com/ankitects/anki.git
synced 2026-10-02 05:24:38 +08:00
## Linked issue Closes #5603 ## Summary Briefcase recently started to adding the "lib" subfolder to PYTHONPATH (https://github.com/beeware/briefcase-windows-VisualStudio-template/pull/105). This unfortunately caused unexpected issues with users trying to upgrade to 26.09 who happened to have leftover lib/anki/_rsbridge.pyd libraries (probably resulting from failed uninstalls) from PyOxidizer-based pre-25.07 builds. The fix suggested here is to revert the upstream change. This involves switching from the pre-built [briefcase-windows-app-template](https://github.com/ankitects/briefcase-windows-app-template) template to [briefcase-windows-VisualStudio-template](https://github.com/ankitects/briefcase-windows-VisualStudio-template). I made sure to port all Anki-specific changes we made to the Wix template (such as uninstall handling for the old NSIS-based installer). ## Steps to reproduce (before) - Install 26.09 - Download and extract a lib folder from a PyOxidizer-build such as [25.02.7](https://github.com/ankitects/anki/releases/tag/25.02.7) (You can unzip the .exe using [7-zip](https://www.7-zip.org/)). - Move the lib folder to the installation folder of 26.09 - Run Anki and confirm you get an error. ## How to test (after) Repeat the same process but with this PR (`./tools/ninja installer`) and confirm the lib subfolder has no effect.