Fix release-tests workflow
This commit is contained in:
parent
9bb3171a8a
commit
62aa78dcae
43
.github/workflows/release-tests.yml
vendored
43
.github/workflows/release-tests.yml
vendored
|
@ -82,6 +82,38 @@ jobs:
|
||||||
name: Rare.AppImage
|
name: Rare.AppImage
|
||||||
path: 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:
|
nuitka:
|
||||||
if: ${{ false }}
|
if: ${{ false }}
|
||||||
needs: version
|
needs: version
|
||||||
|
@ -90,8 +122,10 @@ jobs:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
|
cache: pip
|
||||||
python-version: '3.9'
|
python-version: '3.9'
|
||||||
architecture: x64
|
architecture: x64
|
||||||
|
check-latest: true
|
||||||
- name: Install build dependencies
|
- name: Install build dependencies
|
||||||
run: pip3 install nuitka ordered-set
|
run: pip3 install nuitka ordered-set
|
||||||
- name: Install target dependencies
|
- name: Install target dependencies
|
||||||
|
@ -146,7 +180,9 @@ jobs:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
cache: pip
|
||||||
|
python-version: '3.11'
|
||||||
|
check-latest: true
|
||||||
architecture: x64
|
architecture: x64
|
||||||
- name: Install Build Dependencies
|
- name: Install Build Dependencies
|
||||||
run: pip3 install --upgrade cx_freeze wheel
|
run: pip3 install --upgrade cx_freeze wheel
|
||||||
|
@ -182,7 +218,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
pip3 install -r requirements.txt
|
pip3 install -r requirements.txt
|
||||||
pip3 install -r requirements-presence.txt
|
pip3 install -r requirements-presence.txt
|
||||||
pip3 install .
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cxfreeze -c rare/__main__.py --target-dir dist --target-name rare --icon rare/resources/images/Rare.ico -OO --base-name Win32GUI
|
run: cxfreeze -c rare/__main__.py --target-dir dist --target-name rare --icon rare/resources/images/Rare.ico -OO --base-name Win32GUI
|
||||||
- name: Compress
|
- name: Compress
|
||||||
|
@ -202,7 +237,9 @@ jobs:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
cache: pip
|
||||||
|
python-version: '3.11'
|
||||||
|
check-latest: true
|
||||||
- name: Install Build Dependencies
|
- name: Install Build Dependencies
|
||||||
run: pip install pyinstaller
|
run: pip install pyinstaller
|
||||||
- name: Install Target Dependencies
|
- name: Install Target Dependencies
|
||||||
|
|
|
@ -262,7 +262,6 @@ class InstallDialog(QDialog):
|
||||||
return True, path, IndicatorReasonsCommon.VALID
|
return True, path, IndicatorReasonsCommon.VALID
|
||||||
|
|
||||||
def save_install_edit(self, path: str):
|
def save_install_edit(self, path: str):
|
||||||
print("Edit")
|
|
||||||
if not os.path.exists(path):
|
if not os.path.exists(path):
|
||||||
return
|
return
|
||||||
_, _, free_space = shutil.disk_usage(path)
|
_, _, free_space = shutil.disk_usage(path)
|
||||||
|
|
Loading…
Reference in a new issue