ajustes pontuais #9
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 Windows EXE | |
| on: | |
| push: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - name: 🔄 Checkout do código | |
| uses: actions/checkout@v4 | |
| - name: 🐍 Instalar Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: 📦 Instalar dependências | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pyinstaller customtkinter pillow matplotlib numpy scipy control | |
| - name: ⚙️ Compilar o sistema | |
| # CORREÇÃO: Trocado '^' por '`' para ser compatível com PowerShell | |
| run: | | |
| pyinstaller ` | |
| --noconfirm ` | |
| --onefile ` | |
| --windowed ` | |
| --name "SistemaControle" ` | |
| --icon=logo.png ` | |
| --add-data "logo.png;." ` | |
| --add-data "criterios_estabilidade.py;." ` | |
| --add-data "analise_segunda_ordem.py;." ` | |
| --add-data "controladores.py;." ` | |
| --collect-all "customtkinter" ` | |
| --collect-all "numpy" ` | |
| --collect-all "scipy" ` | |
| --collect-all "control" ` | |
| --hidden-import "matplotlib.backends.backend_tkagg" ` | |
| tela.py | |
| - name: 📤 Fazer upload do executável | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Sistema-de-Controle-EXE | |
| path: dist/SistemaControle.exe | |