zoffline / zwift-offline

Use Zwift offline
GNU Affero General Public License v3.0
650 stars 105 forks source link

Windows Defender alert still visible? #356

Closed rafaldrozd95 closed 1 week ago

rafaldrozd95 commented 1 week ago

I'd like to share this project with my parents who use Zwift a lot but they don't care about the community at all. Is there any possibility to built it differently and avoid Windows Defender alert?

fatsbrown commented 1 week ago

Using pyinstaller there are some things you can do, but they are not very simple.

  1. Build a custom bootloader https://pyinstaller.org/en/stable/bootloader-building.html
  2. Sign the executable using a certificate issued by a trusted certificate authority.

There are others tools to create executables from Python programs (like https://nuitka.net), but I have never used them.

In my opinion, the best way to avoid virus alert is running from source. You can create Windows shortcuts to run (python.exe standalone.py) and update zoffline (git pull).

oldnapalm commented 1 week ago

This is a known issue, it's mentioned in every release. You can add zoffline as an exclusion to Windows Security, or run from source.

The executable is made with pyinstaller. An unfortunate side effect is that some anti-virus software may falsely flag pyinstaller executables as malware. This is a known issue (https://github.com/pyinstaller/pyinstaller/issues?utf8=%E2%9C%93&q=is%3Aissue+virus) and unavoidable. If you prefer, you can not use this exe and instead run zoffline directly from the source code (2nd installation method in the README).