Skip to content

make pyinstaller wokring #15

make pyinstaller wokring

make pyinstaller wokring #15

Workflow file for this run

name: Build Windows Executable
on:
push:
branches:
- main
release:
types: [ created ]
jobs:
build:
name: Build exe with PyInstaller
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
name: Checkout code
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10' # Use the version of Python you need
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller # Add other dependencies if needed
pip install -r requirements.txt
- name: Build Executable
run: |
echo ${{ github.sha }} > Release.txt
- name: Upload artifact
uses: actions/[email protected]
with:
name: app
path: dist/*.exe
token: "${{ secrets.GITHUB_TOKEN }}"
- name: Release
uses: "softprops/action-gh-release@v2"
env:
GITHUB_TOKEN: ${{ secrets.release }}
with:
tag_name: ${{ github.ref }}
name: Release ${{ github.ref }}
prerelease: true
draft: true
body: |
main_adb.exe 模拟器手机adb连接
main_pc.exe PC版
自动构建main分支
files: |
Release.txt