Skip to content

Latest commit

 

History

History
23 lines (22 loc) · 1.85 KB

BUILD.md

File metadata and controls

23 lines (22 loc) · 1.85 KB

Launch

  1. Download and install the MSYS2 platform as described here up to point 4.
  2. Start mingw64 shell.
    mingw64
  3. Run command pacman -Suy After that, you may need to restart the terminal and re-run the update command.
  4. 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
  5. 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
  6. 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\
  7. Run mingw64 shell. Go to the folder where the program was unpacked. E.g: cd TVDemon And run: ./tvdemon.py

Building a package

To build a standalone package, we can use PyInstaller.

  1. Launch mingw64 shell.
  2. Install UPX (optional) via command: pacman -S upx.
  3. Install PyInstaller : pacman -S mingw-w64-x86_64-pyinstaller
  4. Go to the folder where the program was unpacked. E.g: c:\msys64\home\username\TVDemon
  5. Сopy and replace the files from the /build/win/ folder to the root .
  6. Go to the folder with the program in the running terminal: cd TVDemon
  7. Give the following command: pyinstaller.exe TVDemon.spec
  8. Wait until the operation end. In the dist folder you will find a ready-made build.