From cf27a73149359a61f602073e42d5d77e0147f835 Mon Sep 17 00:00:00 2001 From: Hydra Date: Thu, 18 Apr 2024 23:27:50 +0100 Subject: [PATCH] ci: testing nuitka --- .github/workflows/build.yml | 18 +++++++++++++++--- requirements.txt | 1 - 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fff7e9c2..e6f9c413 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,7 +2,7 @@ name: Build on: push: - branches: main + branches: "**" jobs: build: @@ -47,8 +47,20 @@ jobs: - name: Install dependencies run: pip install -r requirements.txt - - name: Build with pyinstaller - run: pyinstaller torrent-client/main.py --distpath resources/dist --icon=images/icon.ico -n hydra-download-manager + - name: Build with Nuitka + uses: Nuitka/Nuitka-Action@main + with: + nuitka-version: main + working-directory: torrent-client + script-name: main.py + standalone: true + enable-plugins: libtorrent + output-dir: resources/dist + output-file: hydra-download-manager + windows-icon-from-ico: images/icon.ico + + # - name: Build with pyinstaller + # run: pyinstaller torrent-client/main.py --distpath resources/dist --icon=images/icon.ico -n hydra-download-manager - name: Publish run: yarn run publish diff --git a/requirements.txt b/requirements.txt index b2778d60..ab929a73 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,2 @@ libtorrent -pyinstaller pywin32; sys_platform == 'win32'