persepolisdm / persepolis

Persepolis Download Manager is a GUI for aria2.
https://persepolisdm.github.io
GNU General Public License v3.0
6.12k stars 647 forks source link

Allow building Persepolis from source on macOS #943

Closed iFreilicht closed 2 months ago

iFreilicht commented 3 months ago

System Details:

Issue Description and steps to reproduce: Right now, it is pretty difficult to build Persepolis from source on macOS. In nixpkgs, we maintain multiple patches (see https://github.com/NixOS/nixpkgs/tree/6d38aff4fc4f8b7606262ddb45e361e1c2863892/pkgs/tools/networking/persepolis) to make it possible.

I would like to upstream these patches to this repository, so that everyone is able to build Persepolis from source on macOS.

@alireza-amirsamimi Would you accept a PR that enables this? I'll gladly write it! I know that you build Persepolis for macOS with https://github.com/persepolisdm/mac-package-build, but for third party repositories like nixpkgs, HomeBrew or MacPorts, having a canonical way to build from source is very helpful.

Maders commented 3 months ago

Hey @iFreilicht,

Thanks for diving into this. Your work on the nixpkgs is pretty cool, and it's clear you've put a lot of effort into it.

We're all for having a unified process to build Persepolis from the source across all major systems. Also, we're planning to transition to the Meson build system soon since setup.py is on its way out.

Regarding the mac-package-build repo, you're right; it's somewhat outdated. Currently, it serves more as a set of instructions for us, but we're eager to update and improve it. (any ideas or contributions are more than welcome!)

iFreilicht commented 3 months ago

Ok, that sounds awesome! Please ping me once you have a branch with Meson ready to test, I'll gladly try it out and offer feedback!