1
0
Fork 0
mirror of synced 2024-05-18 19:42:54 +12:00

Fix release-tests workflow

This commit is contained in:
lennard 2023-05-02 23:49:39 +02:00 committed by Dummerle
parent 9bb3171a8a
commit 62aa78dcae
2 changed files with 40 additions and 4 deletions

View file

@ -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

View file

@ -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)