From 1203f4cf524dc99b9eed1896cee059b0ca5ec990 Mon Sep 17 00:00:00 2001 From: GBeauregard Date: Tue, 14 Sep 2021 13:41:50 -0700 Subject: [PATCH] use msvc for windows build, fix path for github --- .github/workflows/release.yml | 4 +++- pyproject.toml | 2 +- tox.ini | 5 +++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fe18ad4..e5d3377 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,9 +45,11 @@ jobs: python-version: ${{ matrix.python }} - name: Install tox and any other packages run: pip install tox + - name: Add msbuild to PATH + uses: microsoft/setup-msbuild@v1.0.3 - name: Package and Build run: tox -e nuitka-win - name: Upload Release to GitHub env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: gh release upload ${{ github.event.release.tag_name }} build/*.exe + run: gh release upload ${{ github.event.release.tag_name }} build\pyffstream.exe diff --git a/pyproject.toml b/pyproject.toml index 36e6d27..c9c2b79 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "flit_core.buildapi" name = "pyffstream" readme = "README.md" license = {file = "LICENSE"} -version = "0.0.1.dev17" +version = "0.0.1.dev18" authors = [{email = "pyffstream@gably.net"}] dynamic = ["description"] keywords = ["ffmpeg", "streaming", "srt"] diff --git a/tox.ini b/tox.ini index 33d470c..4d929d5 100644 --- a/tox.ini +++ b/tox.ini @@ -69,7 +69,6 @@ commands = nuitka3 \ --assume-yes-for-downloads \ --onefile \ - --mingw64 \ --include-module=platformdirs.windows \ --python-flag=-OO \ -o build/pyffstream.exe \ @@ -78,10 +77,12 @@ commands = --windows-company-name=aphysically \ --windows-file-description="A simple app to facilitate streaming via ffmpeg." \ --output-dir=build \ + --lto \ + src\cli_entry.py + #--mingw64 \ #--nofollow-import-to=setuptools \ #--nofollow-import-to=pkg_resources \ #--enable-plugin=anti-bloat \ - src\cli_entry.py [flake8] extend-ignore =