fedarovich / qbittorrent-cli

Command line interface for QBittorrent
MIT License
312 stars 17 forks source link

Alpine binary possible? #59

Open rwtallant13 opened 2 years ago

rwtallant13 commented 2 years ago

Admittedly i do not know what this would entail for you to make it possible.

This tool was being used previously by linuxserver.io's qbittorrent docker container image. Recently they rebased their image in alpine and due to your project not having an alpine binary available they switched to a different qbt tool that does not do nearly as much as this one does.

Would building an alpine binary on next release be within the scope of this project to add? Then I could recommend the linuxserver.io qbittorrent image could go back to using this amazing piece of software instead of the other one that is really lacking in features.

Thank you either way for this tool, I will continue to use it on my desktop even if i cant continue using it on my server.

fedarovich commented 2 years ago

Hi,

I have never really tried it, but it should be easy to build it for Alpine Linux. With .net core 3.1 SDK installed (on any OS, either Windows, Linux or macOS) it can be build for Alpine using the following command executed from the src/QBittorrent.CommandLineInterface directory: dotnet publish -c Release -f netcoreapp3.1 -r linux-musl-x64 -o <OUTPUT_DIR>

fedarovich commented 2 years ago

I've checked that the build created using the command from my previous post works fine on Alpine. Please note that the following packages are required to run qbt:

Unfortunately, I'm quite busy right now, but I'll try to create binary archive for Alpine when I have some time.

rwtallant13 commented 2 years ago

This is fantastic thank you!

fedarovich commented 2 years ago

Tar.gz archives with binaries for Alpine Linux are now available in the latest release (v1.7.22122.3).

The archives are named in the following way: qbt-linux-alpine-architecture-version.tar.gz

fedarovich commented 2 years ago

Also added the installation guide: https://github.com/fedarovich/qbittorrent-cli/wiki/Setup-Linux#alpine