melhorias no Readme #19
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 | |
| # CORREÇÃO: Adicionado 'sympy' (necessário para lugar_geometrico_raizes.py) | |
| pip install pyinstaller customtkinter pillow matplotlib numpy scipy control sympy | |
| - name: ⚙️ Compilar o sistema | |
| run: | | |
| pyinstaller ` | |
| --noconfirm ` | |
| --onefile ` | |
| --windowed ` | |
| --name "SistemaControle" ` | |
| # CORREÇÃO: O ícone deve apontar para o arquivo .ico que seu app usa | |
| --icon=image/icons/papel.ico ` | |
| # CORREÇÃO: Adicionado 'logo.png', que tela.py carrega | |
| --add-data "logo.png;." ` | |
| # CORREÇÃO: O caminho do ícone deve ser preservado para o app encontrar | |
| --add-data "image/icons/papel.ico;image/icons" ` | |
| --add-data "criterios_estabilidade.py;." ` | |
| --add-data "analise_segunda_ordem.py;." ` | |
| --add-data "controladores.py;." ` | |
| --add-data "utilidades_ui.py;." ` | |
| --add-data "lugar_geometrico_raizes.py;." ` | |
| --add-data "metricas_exportacao.py;." ` | |
| --add-data "painel_metricas.py;." ` | |
| --add-data "tela.py;." ` | |
| --add-data "logger_sistema.py;." ` | |
| --add-data "gerenciador_excecoes.py;." ` | |
| --collect-all "customtkinter" ` | |
| --collect-all "numpy" ` | |
| --collect-all "scipy" ` | |
| --collect-all "control" ` | |
| --collect-all "reportlab" ` | |
| # CORREÇÃO: Removido 'reportlab', que não é usado | |
| --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 |