From 62aa78dcae3c357ff7a172735c6c7f6890073434 Mon Sep 17 00:00:00 2001 From: lennard <44114474+Dummerle@users.noreply.github.com> Date: Tue, 2 May 2023 23:49:39 +0200 Subject: [PATCH] Fix release-tests workflow --- .github/workflows/release-tests.yml | 43 +++++++++++++++++++++-- rare/components/dialogs/install_dialog.py | 1 - 2 files changed, 40 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-tests.yml b/.github/workflows/release-tests.yml index 26cf3e04..6808469a 100644 --- a/.github/workflows/release-tests.yml +++ b/.github/workflows/release-tests.yml @@ -82,6 +82,38 @@ jobs: name: Rare.AppImage path: Rare.AppImage + cx_freeze_zip: + needs: version + runs-on: "windows-latest" + steps: + - uses: actions/checkout@v3 + with: + ref: "release" + - uses: actions/setup-python@v4 + with: + cache: pip + python-version: '3.11' + check-latest: true + 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 + pip3 install . + - 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 Artifacts + uses: actions/upload-artifact@v3 + with: + name: Rare-Windows-${{ needs.version.outputs.tag_abbrev }}.${{ needs.version.outputs.tag_offset }}.zip + path: Rare-Windows.zip + nuitka: if: ${{ false }} needs: version @@ -90,8 +122,10 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: + cache: pip python-version: '3.9' architecture: x64 + check-latest: true - name: Install build dependencies run: pip3 install nuitka ordered-set - name: Install target dependencies @@ -146,7 +180,9 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: - python-version: '3.9' + cache: pip + python-version: '3.11' + check-latest: true architecture: x64 - name: Install Build Dependencies run: pip3 install --upgrade cx_freeze wheel @@ -182,7 +218,6 @@ jobs: run: | pip3 install -r requirements.txt pip3 install -r requirements-presence.txt - pip3 install . - 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 @@ -202,7 +237,9 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: - python-version: '3.9' + cache: pip + python-version: '3.11' + check-latest: true - name: Install Build Dependencies run: pip install pyinstaller - name: Install Target Dependencies diff --git a/rare/components/dialogs/install_dialog.py b/rare/components/dialogs/install_dialog.py index fabb80d8..22d3a0dd 100644 --- a/rare/components/dialogs/install_dialog.py +++ b/rare/components/dialogs/install_dialog.py @@ -262,7 +262,6 @@ class InstallDialog(QDialog): return True, path, IndicatorReasonsCommon.VALID def save_install_edit(self, path: str): - print("Edit") if not os.path.exists(path): return _, _, free_space = shutil.disk_usage(path)