Files
gotify-tray-customized/BUILDING.md
kdusek 7b695d7b7f
Some checks failed
build / build-win64 (push) Waiting to run
build / build-macos (push) Waiting to run
build / build-pip (push) Failing after 11s
Fix compatibility issues with Qt/PyQt6 versions
- Add null check for message.message in search filter
- Handle missing colorScheme/colorSchemeChanged methods for older Qt versions
- Add display check to prevent hanging in headless environments
- Update build documentation with system package alternative
- Update PyInstaller spec for Python 3.12
- Improve run.sh script with venv management
2025-12-06 04:00:10 +01:00

1.7 KiB

Get the source and install the requirements:

$ git clone https://github.com/seird/gotify-tray.git
$ cd gotify-tray
$ pip install -r requirements.txt
$ pip install pyinstaller

Alternative: System packages (Debian/Ubuntu)

If you prefer to use system packages instead of pip, install the required PyQt6 packages:

$ apt install python3-pyqt6 python3-pyqt6.qtwebsockets python3-pyqt6.qtmultimedia

Note: This may require specific Python versions and may not include the latest features.

Currently it's only possible to create installer packages from the pyinstaller output. For any target platform, first create the executable with pyinstaller:

$ pyinstaller gotify-tray.spec

Windows

Create an installer with Inno Setup

Create an installer for windows with inno setup from pyinstaller output:

$ iscc gotify-tray.iss

The installer is created at inno-output/gotify-tray-installer.exe.

Linux

Packages can be created from the pyinstaller output with fpm. Run the build_linux.sh script with the desired package type:

Create a deb package

$ ./build_linux.sh deb

Create a pacman package

$ ./build_linux.sh pacman

MacOS

Create a macos .app

$ pip install pyinstaller Pillow
$ pyinstaller gotify-tray.spec

Create and install a pip package

  • Create the pip package:

    $ python -m build
    
  • Install the pip package:

    $ pip install dist/gotify_tray-{{VERSION}}-py3-none-any.whl
    
  • Launch from the command line:

    $ gotify-tray