2023-12-07 03:18:58 +13:00
|
|
|
name: job_cx-freeze-msi
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_call:
|
|
|
|
inputs:
|
|
|
|
version:
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: "windows-latest"
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
cache: pip
|
2024-05-16 22:57:30 +12:00
|
|
|
python-version: '3.12'
|
2023-12-07 03:18:58 +13:00
|
|
|
check-latest: true
|
|
|
|
architecture: x64
|
|
|
|
- name: Install Build Dependencies
|
|
|
|
run: pip3 install --upgrade cx_freeze wheel
|
|
|
|
- name: Install Target Dependencies
|
|
|
|
run: |
|
|
|
|
pip3 install -r requirements.txt
|
|
|
|
pip3 install -r requirements-presence.txt
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
python freeze.py bdist_msi
|
|
|
|
mv dist/*.msi Rare.msi
|
|
|
|
|
|
|
|
- name: Upload artifact
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: Rare-${{ inputs.version }}.msi
|
|
|
|
path: Rare.msi
|