Skip to content

Update python-build-win.yml #2

Update python-build-win.yml

Update python-build-win.yml #2

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: |
cd source\ code # 切换到包含XPMSL.py的文件夹
pyinstaller --onefile XPMSL.py
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: compiled-app
path: dist/*.exe