melhorias no Readme #20
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 sympy | |
| - name: ⚙️ Compilar o sistema | |
| run: | | |
| pyinstaller ` | |
| --noconfirm ` | |
| --onefile ` | |
| --windowed ` | |
| --name "SistemaControle" ` | |
| --icon=image/icons/papel.ico ` | |
| --add-data "logo.png;." ` | |
| --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" ` | |
| --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 |