@@ -278,17 +278,17 @@ jobs:
278278 - name : Install app on macOS
279279 if : runner.os == 'macOS'
280280 run : |
281- rm -rf "/Applications/GitHub Desktop.app"
282- ditto "dist/GitHub Desktop-darwin-arm64/GitHub Desktop.app" "/Applications/GitHub Desktop.app"
283- echo "DESKTOP_E2E_APP_PATH=/Applications/GitHub Desktop.app/Contents/MacOS/GitHub Desktop" >> "$GITHUB_ENV"
281+ rm -rf "/Applications/GitHub Desktop Plus .app"
282+ ditto "dist/GitHub Desktop Plus -darwin-arm64/GitHub Desktop Plus .app" "/Applications/GitHub Desktop Plus .app"
283+ echo "DESKTOP_E2E_APP_PATH=/Applications/GitHub Desktop Plus .app/Contents/MacOS/GitHub Desktop Plus " >> "$GITHUB_ENV"
284284 - name : Install app on Windows
285285 if : runner.os == 'Windows'
286286 shell : pwsh
287287 run : |
288288 function Write-SquirrelLogs {
289289 $logPaths = @(
290290 "$env:LOCALAPPDATA\SquirrelSetup.log",
291- "$env:LOCALAPPDATA\GitHubDesktop \SquirrelSetup.log"
291+ "$env:LOCALAPPDATA\GitHubDesktopPlus \SquirrelSetup.log"
292292 )
293293
294294 foreach ($logPath in $logPaths) {
@@ -299,7 +299,14 @@ jobs:
299299 }
300300 }
301301
302- $setupExe = "dist/GitHubDesktopSetup-${{ matrix.arch }}.exe"
302+ $setupExe = Get-ChildItem "dist/GitHubDesktopPlus-*-windows-${{ matrix.arch }}.exe" -ErrorAction SilentlyContinue |
303+ Sort-Object FullName -Descending |
304+ Select-Object -First 1 -ExpandProperty FullName
305+
306+ if (-not $setupExe) {
307+ throw "Unable to locate Windows installer executable"
308+ }
309+
303310 $installer = Start-Process -FilePath $setupExe -ArgumentList "/S" -PassThru
304311
305312 try {
@@ -309,11 +316,11 @@ jobs:
309316 throw "Windows installer timed out after 300 seconds"
310317 }
311318
312- Get-Process GitHubDesktop -ErrorAction SilentlyContinue | Stop-Process -Force
319+ Get-Process GitHubDesktopPlus -ErrorAction SilentlyContinue | Stop-Process -Force
313320
314321 $installedExe = $null
315322 for ($attempt = 0; $attempt -lt 30 -and -not $installedExe; $attempt++) {
316- $installedExe = Get-ChildItem "$env:LOCALAPPDATA\GitHubDesktop \app-*\GitHubDesktop .exe" -ErrorAction SilentlyContinue |
323+ $installedExe = Get-ChildItem "$env:LOCALAPPDATA\GitHubDesktopPlus \app-*\GitHubDesktopPlus .exe" -ErrorAction SilentlyContinue |
317324 Sort-Object FullName -Descending |
318325 Select-Object -First 1 -ExpandProperty FullName
319326
0 commit comments