mirror of
https://github.com/litruv/PNGTuber-Plus.git
synced 2026-07-24 18:46:01 +10:00
bat update
This commit is contained in:
18
.github/workflows/build-windows.yml
vendored
18
.github/workflows/build-windows.yml
vendored
@@ -22,10 +22,24 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
lfs: true
|
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
|
- name: Windows Build
|
||||||
run: |
|
run: |
|
||||||
New-Item -ItemType Directory -Force -Path "build\windows"
|
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
|
- name: Upload Windows Build
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
@@ -38,7 +52,7 @@ jobs:
|
|||||||
name: Create Release
|
name: Create Release
|
||||||
needs: export-windows
|
needs: export-windows
|
||||||
runs-on: self-hosted
|
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:
|
steps:
|
||||||
- name: Download Windows Build
|
- name: Download Windows Build
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
|
|||||||
@@ -1,22 +1,24 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
setlocal
|
||||||
|
|
||||||
echo Building PNGTuber Plus for Windows...
|
echo Building PNGTuber Plus for Windows...
|
||||||
|
|
||||||
:: Create build directory
|
rem Create build directory
|
||||||
if not exist "build\windows" mkdir "build\windows"
|
if not exist "build\windows" mkdir "build\windows"
|
||||||
|
|
||||||
:: Build the project
|
rem Build the project
|
||||||
echo Running Godot export...
|
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 (
|
if %ERRORLEVEL% EQU 0 (
|
||||||
echo.
|
echo.
|
||||||
echo ✅ Build completed successfully!
|
echo Build completed successfully!
|
||||||
echo Output: build\windows\PNGTuber-Plus.exe
|
echo Output: build\windows\PNGTuber-Plus.exe
|
||||||
echo.
|
echo.
|
||||||
pause
|
|
||||||
) else (
|
) else (
|
||||||
echo.
|
echo.
|
||||||
echo ❌ Build failed with error code %ERRORLEVEL%
|
echo Build failed with error code %ERRORLEVEL%
|
||||||
echo.
|
echo.
|
||||||
pause
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
pause
|
||||||
|
|||||||
Reference in New Issue
Block a user