From 5558e334176db5a55d890c4ea3d8bc64bbadfa0c Mon Sep 17 00:00:00 2001 From: DazedAnon Date: Sat, 9 May 2026 16:23:01 -0500 Subject: [PATCH] Short name for sha --- gameupdate/patch-download.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gameupdate/patch-download.ps1 b/gameupdate/patch-download.ps1 index 8c6cf7e..4d17588 100644 --- a/gameupdate/patch-download.ps1 +++ b/gameupdate/patch-download.ps1 @@ -107,7 +107,9 @@ try { Write-Host 'Update found! Patching...' Write-Host 'Downloading latest patch... (backend: iwr, GitLab API)' $zipPath = Join-Path $PWD.Path 'repo.zip' - $stage = Join-Path $PWD.Path '_patch_extract_tmp' + # Use a short temp extract root to avoid Windows MAX_PATH issues when + # GitLab archive root folder includes long commit SHA suffixes. + $stage = Join-Path ([IO.Path]::GetTempPath()) ("gu_" + [Guid]::NewGuid().ToString("N")) $archiveSha = [uri]::EscapeDataString($latestSha) $archiveUrl = "https://gitgud.io/api/v4/projects/$id/repository/archive.zip?sha=$archiveSha"