fix: update miniz zip reader function call from get_stat to file_stat #67
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: Dev Release | |
| on: | |
| push: | |
| branches: [main, master] | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| cache: pip | |
| - name: Install Python dependencies | |
| run: pip install -r requirements.txt | |
| - name: Set up MinGW | |
| uses: egor-tensin/setup-mingw@v2 | |
| with: | |
| platform: x64 | |
| static: 0 | |
| - name: Build Launcher (C++) | |
| run: | | |
| cmake -S launcher -B build/launcher -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release | |
| cmake --build build/launcher | |
| - name: Build Updater (C++) | |
| run: | | |
| cmake -S updater -B build/updater -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release | |
| cmake --build build/updater | |
| - name: Build Python App | |
| run: python makefile.py --build-app | |
| - name: Copy launcher and updater into dist folder | |
| run: | | |
| copy build\launcher\Hammer5Tools.exe hammer5tools\Hammer5Tools.exe | |
| copy build\updater\Hammer5ToolsUpdater.exe hammer5tools\Hammer5ToolsUpdater.exe | |
| - name: Create Zip Archive | |
| run: python makefile.py --archive | |
| - name: Read app version | |
| id: version | |
| run: | | |
| $ver = python -c "from src.common import app_version; print(app_version)" | |
| echo "app_version=$ver" >> $env:GITHUB_OUTPUT | |
| - name: Upload to dev release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: dev | |
| name: "Dev Build v${{ steps.version.outputs.app_version }} (${{ github.sha }})" | |
| body: | | |
| Automated dev build from commit ${{ github.sha }} on branch `${{ github.ref_name }}`. | |
| prerelease: true | |
| files: dist/hammer5tools.zip |