PreRelease V0.1.8d #26
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 ICC (Windows EXE) | |
| on: | |
| release: | |
| types: [published] | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-and-release: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install Dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pyinstaller customtkinter requests esptool zeroconf pillow pyserial | |
| - name: Build Executable | |
| working-directory: "Insane Control Center/Linux" | |
| run: pyinstaller -y --noconsole --onefile --name=InsaneControlCenter --icon=logo.ico --add-data="logo.png;." --add-data="logo.ico;." --hidden-import=serial.urlhandler.protocol_socket --collect-data=esptool InsaneControlCenter.py | |
| - name: Move EXE to Windows Folder | |
| shell: bash | |
| run: | | |
| mkdir -p "Insane Control Center/Windows" | |
| cp "Insane Control Center/Linux/dist/InsaneControlCenter.exe" "Insane Control Center/Windows/InsaneControlCenter.exe" | |
| - name: Auto-Commit EXE to Repo | |
| uses: stefanzweifel/git-auto-commit-action@v5 | |
| with: | |
| commit_message: "Auto-build: Update InsaneControlCenter.exe for Release" | |
| file_pattern: "Insane Control Center/Windows/InsaneControlCenter.exe" | |
| - name: Upload EXE as Release Asset | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: "Insane Control Center/Windows/InsaneControlCenter.exe" |