From 848361d19bb023df98b3f6c4c170aced91e0041d Mon Sep 17 00:00:00 2001 From: Max Litruv Boonzaayer Date: Sat, 19 Jul 2025 23:52:46 +1000 Subject: [PATCH 1/2] update versioning to be not awful --- .github/workflows/build-windows.yml | 45 +++++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index b439f9e..dc9d38a 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -99,6 +99,36 @@ jobs: runs-on: self-hosted if: github.ref == 'refs/heads/master' && github.event_name == 'push' && success() steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Generate Release Info + id: release_info + run: | + # Get current date and time + $date = Get-Date -Format "yyyy.MM.dd" + $time = Get-Date -Format "HHmm" + + # Get short commit hash (first 7 characters) + $shortSha = "${{ github.sha }}".Substring(0, 7) + + # Get commit count since last tag (for build number) + $buildNumber = & git rev-list --count HEAD + + # Create version-like tag and release name + $tag = "v$date-build$buildNumber" + $releaseName = "PNGTuber Plus v$date Build $buildNumber" + + Write-Host "Generated tag: $tag" + Write-Host "Generated release name: $releaseName" + + # Set outputs for use in next steps + echo "tag=$tag" >> $env:GITHUB_OUTPUT + echo "release_name=$releaseName" >> $env:GITHUB_OUTPUT + echo "short_sha=$shortSha" >> $env:GITHUB_OUTPUT + echo "build_number=$buildNumber" >> $env:GITHUB_OUTPUT - name: Download Windows Build uses: actions/download-artifact@v4 with: @@ -111,12 +141,19 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: build-${{ github.sha }} - release_name: PNGTuber Plus Build ${{ github.sha }} + tag_name: ${{ steps.release_info.outputs.tag }} + release_name: ${{ steps.release_info.outputs.release_name }} body: | Automated build of PNGTuber Plus + **Build Information:** + - Build Number: ${{ steps.release_info.outputs.build_number }} + - Commit: ${{ steps.release_info.outputs.short_sha }} + - Built: ${{ github.event.head_commit.timestamp }} + ## Recent Updates by Litruv + - **Microphone Improvements**: Audio delay fix & experimental loudness detection + - **Sprite Masking System**: Advanced masking with opacity controls and file selection - **StreamDeck Integration**: Add buttons to enable the streamdeck plugin that was built in - **Rotation Wobble**: New sprite rotation effects with frequency and amplitude controls - **Enhanced Modifier Keys**: Support for complex key combinations (Ctrl+Shift+Alt+Cmd) @@ -126,6 +163,10 @@ jobs: 1. Download PNGTuber-Plus.exe from the assets below 2. Run the executable - no installation required! 3. For StreamDeck integration, download the plugin from [here](https://github.com/BoyneGames/streamdeck-godot-plugin/releases/tag/1.0.0) + + ## Credits + - Original project by [kaiakairos](https://github.com/kaiakairos/PNGTuber-Plus) + - Microphone improvements by [k0ffinz](https://github.com/k0ffinz/PNGTuber-Plus) draft: false prerelease: false From fc4cacdc9ff9f91dcefdb12b97be93e6739efda4 Mon Sep 17 00:00:00 2001 From: Max Litruv Boonzaayer Date: Sat, 19 Jul 2025 23:58:28 +1000 Subject: [PATCH 2/2] Update release name format in build workflow --- .github/workflows/build-windows.yml | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index dc9d38a..2baccfb 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -119,7 +119,7 @@ jobs: # Create version-like tag and release name $tag = "v$date-build$buildNumber" - $releaseName = "PNGTuber Plus v$date Build $buildNumber" + $releaseName = "PNGTuber+ v$date Build $buildNumber" Write-Host "Generated tag: $tag" Write-Host "Generated release name: $releaseName" @@ -145,20 +145,7 @@ jobs: release_name: ${{ steps.release_info.outputs.release_name }} body: | Automated build of PNGTuber Plus - - **Build Information:** - - Build Number: ${{ steps.release_info.outputs.build_number }} - - Commit: ${{ steps.release_info.outputs.short_sha }} - - Built: ${{ github.event.head_commit.timestamp }} - - ## Recent Updates by Litruv - - **Microphone Improvements**: Audio delay fix & experimental loudness detection - - **Sprite Masking System**: Advanced masking with opacity controls and file selection - - **StreamDeck Integration**: Add buttons to enable the streamdeck plugin that was built in - - **Rotation Wobble**: New sprite rotation effects with frequency and amplitude controls - - **Enhanced Modifier Keys**: Support for complex key combinations (Ctrl+Shift+Alt+Cmd) - - **Godot 4.4.1 Support**: Updated for latest Godot stable release - + ## Installation 1. Download PNGTuber-Plus.exe from the assets below 2. Run the executable - no installation required!