melhorias nos modulos #27
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 with Installer | |
| 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 -r requirements.txt | |
| pip install pyinstaller pandas reportlab | |
| - name: ⚙️ Compilar o sistema | |
| run: | | |
| pyinstaller ` | |
| --noconfirm ` | |
| --onefile ` | |
| --windowed ` | |
| --name "SistemaControle" ` | |
| --icon=image/icons/papel.ico ` | |
| --add-data "logo.png;." ` | |
| --add-data "ico.png;." ` | |
| --add-data "image;image" ` | |
| --add-data "tema_config.py;." ` | |
| --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 "logger_sistema.py;." ` | |
| --add-data "gerenciador_excecoes.py;." ` | |
| --collect-all "customtkinter" ` | |
| --collect-all "numpy" ` | |
| --collect-all "scipy" ` | |
| --collect-all "control" ` | |
| --collect-all "matplotlib" ` | |
| --collect-all "pandas" ` | |
| --collect-all "reportlab" ` | |
| --hidden-import "matplotlib.backends.backend_tkagg" ` | |
| --hidden-import "PIL._tkinter_finder" ` | |
| tela.py | |
| - name: 🔧 Instalar Inno Setup | |
| run: | | |
| choco install innosetup -y | |
| - name: 📦 Criar instalador | |
| run: | | |
| & "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" installer.iss | |
| - name: 📤 Upload do executável | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Sistema-de-Controle-EXE | |
| path: dist/SistemaControle.exe | |
| - name: 📤 Upload do instalador | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Sistema-de-Controle-Installer | |
| path: Output/SistemaControleSetup.exe |