bat update

This commit is contained in:
2025-07-19 19:12:08 +10:00
parent 1d230138a2
commit 5f6bbc750f
2 changed files with 25 additions and 9 deletions

View File

@@ -22,10 +22,24 @@ jobs:
with:
lfs: true
- name: Debug Environment
run: |
Write-Host "Current directory: $(Get-Location)"
Write-Host "Godot executable exists: $(Test-Path 'D:\Godot\Godot_v4.4.1-stable_win64.exe')"
Write-Host "Export name: $env:EXPORT_NAME"
Write-Host "Project file exists: $(Test-Path 'project.godot')"
Get-ChildItem -Path . -Filter "*.cfg" | Select-Object Name
- name: Windows Build
run: |
New-Item -ItemType Directory -Force -Path "build\windows"
D:\Godot\Godot_v4.4.1-stable_win64.exe --headless --verbose --export-release "Windows Desktop" "build\windows\$env:EXPORT_NAME.exe"
& "D:\Godot\Godot_v4.4.1-stable_win64.exe" --headless --verbose --export-release "Windows Desktop" "build\windows\PNGTuber-Plus.exe"
continue-on-error: false
- name: Check Build Output
run: |
Write-Host "Build directory contents:"
Get-ChildItem -Path "build\windows" -Recurse | Select-Object Name, Length
- name: Upload Windows Build
uses: actions/upload-artifact@v4
@@ -38,7 +52,7 @@ jobs:
name: Create Release
needs: export-windows
runs-on: self-hosted
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
if: github.ref == 'refs/heads/master' && github.event_name == 'push' && success()
steps:
- name: Download Windows Build
uses: actions/download-artifact@v4

View File

@@ -1,22 +1,24 @@
@echo off
setlocal
echo Building PNGTuber Plus for Windows...
:: Create build directory
rem Create build directory
if not exist "build\windows" mkdir "build\windows"
:: Build the project
rem Build the project
echo Running Godot export...
godot --headless --verbose --export-release "Windows Desktop" "build\windows\PNGTuber-Plus.exe"
"D:\Godot\Godot_v4.4.1-stable_win64.exe" --headless --verbose --export-release "Windows Desktop" "build\windows\PNGTuber-Plus.exe"
if %ERRORLEVEL% EQU 0 (
echo.
echo Build completed successfully!
echo Build completed successfully!
echo Output: build\windows\PNGTuber-Plus.exe
echo.
pause
) else (
echo.
echo Build failed with error code %ERRORLEVEL%
echo Build failed with error code %ERRORLEVEL%
echo.
pause
)
pause