This is a special note for distribution packagers: There is a standard feature of GitHub which enables you to be notified of new package releases: In the top right bar there is the Watch option, which has the suboption to be notified of releases only. Please subscribe so you won’t miss any of our new releases. Thanks!
Dependencies for Nicotine+ are described in DEPENDENCIES.md.
To build source distribution files
.tar.gz from the Git repository, run:
python3 setup.py sdist --formats=bztar,gztar
The source distribution files will be located in the
Unstable and stable PPAs are already provided for pre-compiled packages. However, if you wish to build your own package, perform the following steps.
Start by installing the build dependencies:
sudo apt build-dep .
Generate the “upstream” tarball:
python3 setup.py sdist mk-origtargz dist/nicotine-plus-*.tar.gz
Build the Debian package:
debuild -sa -us -uc
GitHub Actions currently builds Nicotine+ installers for Windows. However, the following instructions may be useful if you wish to generate an installer on your own machine.
Follow the instructions on installing MSYS2: https://pygobject.readthedocs.io/en/latest/getting_started.html#windows-logo-windows
nicotine-plus Git repository:
pacman -S git git clone https://github.com/nicotine-plus/nicotine-plus cd nicotine-plus
export NICOTINE_GTK_VERSION=3 export ARCH=x86_64 pacman --noconfirm -S --needed mingw-w64-$ARCH-python python3 packaging/windows/dependencies_core.py python3 packaging/windows/dependencies_packaging.py
Build the application:
python3 packaging/windows/setup.py bdist_msi
When the application has finished building, it is located in the
build\exe.*\ subfolder. The installer is located in the
If you want to run the application, you can launch the executable
Start a MinGW 32-bit terminal, and follow the above instructions again. Replace any instance of
i686 when installing packages.
You are recommended to clone a fresh copy of the
nicotine-plus Git repository before building a frozen application again.