MoviePilot/.github/workflows/build-windows.yml
2023-10-09 13:40:09 +08:00

39 lines
904 B
YAML

name: MoviePilot Windows Builder
on:
workflow_dispatch:
push:
branches:
- master
paths:
- version.py
- .github/workflows/build-windows.yml
jobs:
Windows-build:
runs-on: windows-latest
steps:
- name: Init Python 3.11.4
uses: actions/setup-python@v4
with:
python-version: '3.11.4'
- name: Install Dependent Packages
run: |
python -m pip install --upgrade pip
pip install wheel pyinstaller
git clone --depth=1 -b main https://github.com/jxxghp/MoviePilot
cd MoviePilot
pip install -r requirements.txt
shell: pwsh
- name: Pyinstaller
run: |
cd MoviePilot
pyinstaller windows.spec
shell: pwsh
- name: Upload Windows File
uses: actions/upload-artifact@v3
with:
name: windows
path: MoviePilot/dist/MoviePilot/MoviePilot.exe