mirror of
https://github.com/litruv/PNGTuber-Plus.git
synced 2026-07-24 10:36:01 +10:00
forgot about service account running it instead
This commit is contained in:
25
.github/workflows/build-windows.yml
vendored
25
.github/workflows/build-windows.yml
vendored
@@ -30,9 +30,12 @@ jobs:
|
||||
Write-Host "Project file exists: $(Test-Path 'project.godot')"
|
||||
Get-ChildItem -Path . -Filter "*.cfg" | Select-Object Name
|
||||
|
||||
- name: Setup Export Templates
|
||||
- name: Setup Export Templates and Tools
|
||||
run: |
|
||||
# Setup export templates
|
||||
$templateDir = "C:\WINDOWS\ServiceProfiles\NetworkService\AppData\Roaming\Godot\export_templates\4.4.1.stable"
|
||||
Write-Host "Checking for export templates at: $templateDir"
|
||||
|
||||
if (-not (Test-Path $templateDir)) {
|
||||
Write-Host "Creating export template directory..."
|
||||
New-Item -ItemType Directory -Force -Path $templateDir
|
||||
@@ -42,17 +45,35 @@ jobs:
|
||||
|
||||
Write-Host "Extracting templates..."
|
||||
Expand-Archive -Path "templates.tpz" -DestinationPath "temp_templates" -Force
|
||||
|
||||
Write-Host "Copying templates..."
|
||||
Copy-Item -Path "temp_templates\templates\*" -Destination $templateDir -Recurse -Force
|
||||
|
||||
Write-Host "Cleaning up..."
|
||||
Remove-Item -Path "temp_templates" -Recurse -Force
|
||||
Remove-Item -Path "templates.tpz" -Force
|
||||
|
||||
Write-Host "Export templates installed to: $templateDir"
|
||||
Write-Host "Template directory contents:"
|
||||
Get-ChildItem -Path $templateDir | Select-Object Name
|
||||
} else {
|
||||
Write-Host "Export templates already exist at: $templateDir"
|
||||
Write-Host "Template directory contents:"
|
||||
Get-ChildItem -Path $templateDir | Select-Object Name
|
||||
}
|
||||
|
||||
# Check if rcedit is available (it's already in the project)
|
||||
Write-Host "Checking for rcedit..."
|
||||
if (Test-Path "rcedit-x64.exe") {
|
||||
Write-Host "rcedit found in project directory"
|
||||
} else {
|
||||
Write-Host "rcedit not found - downloading..."
|
||||
Invoke-WebRequest -Uri "https://github.com/electron/rcedit/releases/latest/download/rcedit-x64.exe" -OutFile "rcedit-x64.exe"
|
||||
Write-Host "rcedit downloaded"
|
||||
}
|
||||
|
||||
- name: Windows Build
|
||||
run: .\build-windows.bat
|
||||
run: .\build-windows-ci.bat
|
||||
shell: cmd
|
||||
|
||||
- name: Check Build Output
|
||||
|
||||
Reference in New Issue
Block a user