Files
anki/.github
Abdo 0cd9a4d04f Fix bundled Windows app trying to load lib subfolder (#5605)
## 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.
2026-09-15 17:03:36 +03:00
..