diff --git a/.github/workflows/pyinstaller-build.yml b/.github/workflows/pyinstaller-build.yml new file mode 100644 index 0000000..7f21cde --- /dev/null +++ b/.github/workflows/pyinstaller-build.yml @@ -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 diff --git a/icon.ico b/icon.ico new file mode 100644 index 0000000..35ba034 Binary files /dev/null and b/icon.ico differ