- Download and install the MSYS2 platform as described here up to point 4.
- Start mingw64 shell.
- Run command
pacman -Suy
After that, you may need to restart the terminal and re-run the update command. - Install minimal required packages:
pacman -S mingw-w64-x86_64-gtk4 mingw-w64-x86_64-libadwaita mingw-w64-x86_64-python3 mingw-w64-x86_64-python3-gobject mingw-w64-x86_64-python-requests
- Install GStreamer and plugins:
pacman -S mingw-w64-x86_64-gstreamer mingw-w64-x86_64-gst-plugins-base mingw-w64-x86_64-gst-plugins-good mingw-w64-x86_64-gst-plugins-bad mingw-w64-x86_64-gtk4-media-gstreamer mingw-w64-x86_64-gst-plugins-rs
- Download and unzip the archive with sources from preferred branch (e.g. main) in to folder where MSYS2 is installed. E.g:
c:\msys64\home\username\
- Run mingw64 shell. Go to the folder where the program was unpacked. E.g:
cd TVDemon
And run:./tvdemon.py
To build a standalone package, we can use PyInstaller.
- Launch mingw64 shell.
- Install UPX (optional) via command:
pacman -S upx
. - Install PyInstaller :
pacman -S mingw-w64-x86_64-pyinstaller
- Go to the folder where the program was unpacked. E.g:
c:\msys64\home\username\TVDemon
- Сopy and replace the files from the /build/win/ folder to the root .
- Go to the folder with the program in the running terminal:
cd TVDemon
- Give the following command:
pyinstaller.exe TVDemon.spec
- Wait until the operation end. In the dist folder you will find a ready-made build.