From 62342ce53c4c51c3dea587a008699a0d2f566035 Mon Sep 17 00:00:00 2001 From: Fhilipe Coelho Date: Fri, 19 Apr 2024 15:03:41 -0300 Subject: [PATCH] build: use cx freeze instead pyinstaller --- torrent-client/setup.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 torrent-client/setup.py diff --git a/torrent-client/setup.py b/torrent-client/setup.py new file mode 100644 index 00000000..e098ec80 --- /dev/null +++ b/torrent-client/setup.py @@ -0,0 +1,16 @@ +from cx_Freeze import setup, Executable + +# Dependencies are automatically detected, but it might need fine tuning. +build_exe_options = { + "packages": ["libtorrent"], + "build_exe": "resources/dist/hydra-download-manager", + "include_msvcr": True +} + +setup( + name="hydra-download-manager", + version="0.1", + description="Hydra Torrent Client", + options={"build_exe": build_exe_options}, + executables=[Executable("torrent-client/main.py", target_name="hydra-download-manager")] +)