feat: auto-detect Windows UI language on launch #14
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 EInk Quick Flasher | |
| on: | |
| push: | |
| tags: ['v*'] | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install dependencies | |
| run: | | |
| pip install pyserial esptool pyinstaller | |
| - name: Build exe | |
| run: | | |
| pyinstaller --onefile --windowed --name "EInk-Quick-Flasher" --hidden-import esptool --hidden-import serial --collect-all esptool main.py | |
| - name: Rename with version | |
| shell: bash | |
| run: | | |
| VER="${GITHUB_REF#refs/tags/v}" | |
| mv dist/EInk-Quick-Flasher.exe "dist/EInk-Quick-Flasher-v${VER}.exe" | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: EInk-Quick-Flasher | |
| path: dist/EInk-Quick-Flasher-v*.exe | |
| - name: Create Release | |
| if: startsWith(github.ref, 'refs/tags/') | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: dist/EInk-Quick-Flasher-v*.exe |