From f7eb37351e53822a47c7ceb801283ef1555c8780 Mon Sep 17 00:00:00 2001 From: lennard <44114474+Dummerle@users.noreply.github.com> Date: Sun, 19 Mar 2023 21:33:25 +0100 Subject: [PATCH] Disable nuitka workflow and add cx_freeze zip workflow --- .github/workflows/release-tests.yml | 32 +++++++++++++++++++++++++++++ .github/workflows/release.yml | 32 +++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/.github/workflows/release-tests.yml b/.github/workflows/release-tests.yml index 1d214307..14e265a7 100644 --- a/.github/workflows/release-tests.yml +++ b/.github/workflows/release-tests.yml @@ -83,6 +83,7 @@ jobs: path: Rare.AppImage nuitka: + if: ${{ false }} needs: version runs-on: "windows-latest" steps: @@ -164,6 +165,37 @@ jobs: name: Rare-Windows-${{ needs.version.outputs.tag_abbrev }}.${{ needs.version.outputs.tag_offset }}.msi path: dist/*.msi + win-zip: + runs-on: "windows-latest" + steps: + - uses: actions/checkout@v3 + with: + ref: "release" + - uses: actions/setup-python@v4 + with: + python-version: '3.9' + architecture: x64 + - name: Install build dependencies + run: pip3 install cx_freeze + - name: Install target dependencies + run: | + pip3 install -r requirements.txt + pip3 install -r requirements-presence.txt + - name: Build + run: cxfreeze -c rare/__main__.py --target-dir dist --target-name rare --icon rare/resources/images/Rare.ico -OO --base-name Win32GUI + - name: Compress + run: | + python -c "import shutil; shutil.make_archive('Rare-Windows', 'zip', 'dist')" + + - name: Upload to Releases + uses: svenstaro/upload-release-action@2.2.1 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: Rare-Windows.zip + asset_name: Rare-Windows-${{ github.event.release.tag_name }}.zip + tag: ${{ github.ref }} + overwrite: true + mac_os: needs: version runs-on: macos-latest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bccfb843..fc515bbb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -99,7 +99,39 @@ jobs: tag: ${{ github.ref }} overwrite: true + win-zip: + runs-on: "windows-latest" + steps: + - uses: actions/checkout@v3 + with: + ref: "release" + - uses: actions/setup-python@v4 + with: + python-version: '3.9' + architecture: x64 + - name: Install build dependencies + run: pip3 install cx_freeze + - name: Install target dependencies + run: | + pip3 install -r requirements.txt + pip3 install -r requirements-presence.txt + - name: Build + run: cxfreeze -c rare/__main__.py --target-dir dist --target-name rare --icon rare/resources/images/Rare.ico -OO --base-name Win32GUI + - name: Compress + run: | + python -c "import shutil; shutil.make_archive('Rare-Windows', 'zip', 'dist')" + + - name: Upload to Releases + uses: svenstaro/upload-release-action@2.2.1 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: Rare-Windows.zip + asset_name: Rare-Windows-${{ github.event.release.tag_name }}.zip + tag: ${{ github.ref }} + overwrite: true + nuitka: + if: ${{ false }} runs-on: "windows-latest" steps: - uses: actions/checkout@v3