Build helper installers #1
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 helper installers | |
| # A Panic-Full helyi segéd (helper/) telepítőit építi: | |
| # - macOS .dmg (macos runner) | |
| # - Windows .exe telepítő (windows runner, Inno Setup) | |
| # Indítás: kézzel (Actions → Run workflow), vagy `helper-v*` tag push-ra | |
| # (ilyenkor GitHub Release-hez is csatolja a fájlokat). | |
| on: | |
| workflow_dispatch: | |
| push: | |
| tags: | |
| - "helper-v*" | |
| permissions: | |
| contents: write | |
| jobs: | |
| macos: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Függőségek | |
| working-directory: helper | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt pyinstaller | |
| - name: .app + .dmg build | |
| working-directory: helper | |
| env: | |
| PYTHON: python | |
| run: bash build_mac.sh | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: Panic-Full-Helper-macOS | |
| path: helper/dist/Panic-Full-Helper.dmg | |
| - name: Release-hez csatolás (tag esetén) | |
| if: startsWith(github.ref, 'refs/tags/') | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: helper/dist/Panic-Full-Helper.dmg | |
| windows: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Függőségek | |
| working-directory: helper | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt pyinstaller | |
| - name: PyInstaller build | |
| working-directory: helper | |
| run: > | |
| python -m PyInstaller --noconfirm --clean --windowed | |
| --name "Panic-Full Helper" | |
| --collect-all pymobiledevice3 | |
| --collect-all pystray | |
| panic_helper.py | |
| - name: Inno Setup telepítése | |
| run: choco install innosetup --no-progress -y | |
| - name: Telepítő build | |
| working-directory: helper | |
| run: iscc installer.iss | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: Panic-Full-Helper-Windows | |
| path: helper/dist/Panic-Full-Helper-Setup.exe | |
| - name: Release-hez csatolás (tag esetén) | |
| if: startsWith(github.ref, 'refs/tags/') | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: helper/dist/Panic-Full-Helper-Setup.exe |