Resolver Forge Client app- User Request Update #11
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Desktop App | |
| on: | |
| release: | |
| types: [published, created, released] | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-windows: | |
| runs-on: windows-latest | |
| defaults: | |
| run: | |
| working-directory: ./desktop_server | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| cache: 'pip' | |
| - name: Install Dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install pyinstaller | |
| - name: Build EXE | |
| # --onefile: Bundles everything into a single .exe | |
| # --noconsole: Hides the black command window | |
| # --name: Sets your specific filename | |
| run: | | |
| pyinstaller --onefile --noconsole --name "BojroPowerv5portable" --icon="app.ico" --add-data "app.ico;." main.py | |
| # 1. ALWAYS upload as a downloadable artifact (for manual builds/testing) | |
| - name: Upload Artifact for Testing | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: BojroPowerv5portable | |
| path: desktop_server/dist/BojroPowerv5portable.exe | |
| # 2. ONLY upload to Release if this was triggered by a Tag (Publishing a Release) | |
| - name: Upload to Release | |
| uses: softprops/action-gh-release@v1 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| files: desktop_server/dist/BojroPowerv5portable.exe | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |