Skip to content

Latest commit

 

History

History
46 lines (43 loc) · 3.26 KB

BUILD_WIN.md

File metadata and controls

46 lines (43 loc) · 3.26 KB

Launch

The best way to run this program from source is using of MSYS2 platform.

  1. Download and install the platform as described here up to point 4.
  2. Launch mingw64 shell.
    mingw64
  3. Run first 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-gtk3 mingw-w64-x86_64-python3 mingw-w64-x86_64-python3-gobject mingw-w64-x86_64-python3-pip mingw-w64-x86_64-python3-requests
    Optional: pacman -S mingw-w64-x86_64-python3-pillow
    To support streams playback, install the following packages (the list may not be complete):
  • For GStreamer pacman -S mingw-w64-x86_64-gst-libav mingw-w64-x86_64-gst-plugins-bad mingw-w64-x86_64-gst-plugins-base mingw-w64-x86_64-gst-plugins-good mingw-w64-x86_64-gstreamer
  • For MPV pacman -S mingw-w64-x86_64-mpv,
    To reduce installation size or try the latest changes, we can install the libmpv build (mpv-dev-x86_64-v3-*.7z) by shinchiro.
    • Download and extract 7z archive.
    • Copy libmpv-2.dll to C:\msys64\mingw64\bin
    • libmpv.dll.a to C:\msys64\mingw64\lib
      and folder *include\mpv to C:\msys64\mingw64\include path.
  1. Download and unzip the archive with sources from preferred branch (e.g. master) in to folder where MSYS2 is installed. E.g: c:\msys64\home\username\
  2. Run mingw64 shell. Go to the folder where the program was unpacked. E.g: cd DemonEditor/ And run: ./start.py

Building a package

To build a standalone package, we can use PyInstaller.

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

Appearance

To change the look we can use third party Gtk3 themes and Icon sets.
To set the default theme:

  1. Сreate a folder "\etc\gtk-3.0\" in the root of the finished build folder.
  2. Create a settings.ini file in this folder with the following content:
[Settings]
gtk-icon-theme-name = Adwaita
gtk-theme-name = Windows-10

In this case, we are using the default icon theme "Adwaita" and the third party theme "Windows-10". Themes and icon sets should be located in the share\themes and share\icons folders respectively. To fine-tune the default theme you use, you can use the win_style.css file in the ui folder. You can find more info about changing the appearance of Gtk applications on the Web yourself.