|
66 | 66 | shell:cmd |
67 | 67 | run:call .\ArtifactBuild.cmd |
68 | 68 |
|
| 69 | +# Check that output exists |
| 70 | + -name:Validate UnityLauncherPro.exe exists |
| 71 | +if:env.build_trigger == 'true' |
| 72 | +shell:cmd |
| 73 | +run:| |
| 74 | + if not exist "UnityLauncherPro\bin\Release\UnityLauncherPro.exe" ( |
| 75 | + echo ERROR: UnityLauncherPro.exe not found. |
| 76 | + exit /b 1 |
| 77 | + ) |
| 78 | + echo Found UnityLauncherPro.exe |
| 79 | +
|
69 | 80 | # 1) Compute a wrapped major.minor.build from the run number |
70 | 81 | -name:Compute installer version |
71 | 82 | if:env.build_trigger == 'true' |
@@ -101,16 +112,15 @@ jobs: |
101 | 112 | Write-Host "→ ProductVersion patched to $ver" |
102 | 113 | Write-Host "→ ProductCode patched to $guid" |
103 | 114 |
|
104 | | -# Check that output exists |
105 | | - -name:Validate UnityLauncherPro.exe exists |
| 115 | +# 3) **DEBUG**: print out the patched .vdproj so you can inspect it |
| 116 | + -name:Show patched .vdproj |
106 | 117 | if:env.build_trigger == 'true' |
107 | | -shell:cmd |
| 118 | +shell:pwsh |
108 | 119 | run:| |
109 | | - if not exist "UnityLauncherPro\bin\Release\UnityLauncherPro.exe" ( |
110 | | - echo ERROR: UnityLauncherPro.exe not found. |
111 | | - exit /b 1 |
112 | | - ) |
113 | | - echo Found UnityLauncherPro.exe |
| 120 | + $proj = 'UnityLauncherProInstaller\UnityLauncherProInstaller.vdproj' |
| 121 | + Write-Host "=== BEGIN .vdproj CONTENT ===" |
| 122 | + Get-Content $proj |
| 123 | + Write-Host "=== END .vdproj CONTENT ===" |
114 | 124 |
|
115 | 125 | # locate VS 2022 |
116 | 126 | -name:Locate Visual Studio 2022 |
|