Skip to content

20240220

20240220 #29

name: windows-Build
on: [push]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9' # 指定 Python 版本
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r "source code\requirements.txt"
- name: Build Python file
run: |
pyinstaller --onefile --windowed "source code\XPMSL.py"
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: compiled-app
path: "dist/XPMSL.exe"