1
0
Fork 0
mirror of synced 2024-05-19 03:52:47 +12:00

Disable nuitka workflow and add cx_freeze zip workflow

This commit is contained in:
lennard 2023-03-19 21:33:25 +01:00
parent 554d3557d3
commit f7eb37351e
No known key found for this signature in database
GPG key ID: AB6010FE63C7C2B1
2 changed files with 64 additions and 0 deletions

View file

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

View file

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