The best way to run this program from source is using of MSYS2 platform.
- Download and install the platform as described here up to point 4.
- Launch mingw64 shell.
- Run first
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-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.
- 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\
- Run mingw64 shell. Go to the folder where the program was unpacked. E.g:
cd DemonEditor/
And run:./start.py
To build a standalone package, we can use PyInstaller.
- Launch mingw64 shell.
- Install PyInstaller via pip:
pip3 install pyinstaller
- Go to the folder where the program was unpacked. E.g:
c:\msys64\home\username\DemonEditor\
- С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 DemonEditor/
- Give the following command:
pyinstaller.exe DemonEditor.spec
- Wait until the operation end. In the dist folder you will find a ready-made build.
To change the look we can use third party Gtk3 themes and Icon sets.
To set the default theme:
- Сreate a folder "
\etc\gtk-3.0\
" in the root of the finished build folder. - 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.