to compile

This commit is contained in:
2025-08-26 15:35:19 +03:00
parent bcdf676f27
commit b0d65b015b
2 changed files with 51 additions and 0 deletions

51
.github/workflows/pyinstaller-build.yml vendored Normal file
View File

@ -0,0 +1,51 @@
name: Build Pyinstaller Executable and Upload
on:
push:
branches:
- main
jobs:
build-exe:
runs-on: "windows-latest"
env:
MAIN_PY_FILE: "main.py"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.13.x
- name: Install Python dependencies
run: |
pip install uv
uv sync
uv pip install pyinstaller
uv pip uninstall setuptools
uv pip install setuptools==66.1.1
working-directory: ./
- name: Build executable
run: |
uv run pyinstaller ${{ env.MAIN_PY_FILE }} -F -i icon.ico
working-directory: ./
- name: Rename Executable
run: |
mv dist/main.exe dist/${{ secrets.PROJECT_NAME }}.exe
working-directory: ./
- name: Upload to FastFile Single
uses: fjogeleit/http-request-action@v1
with:
url: "https://fastfile.yuharan.ru/"
method: "POST"
username: fastfile
password: ${{ secrets.FF_PSWD }}
files: '{"file": "dist/${{ secrets.PROJECT_NAME }}.exe"}'
timeout: 120000

BIN
icon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB