From 159e12c79ac2da3b11eb395b25f6e9733983fb52 Mon Sep 17 00:00:00 2001 From: Alexander Loren Date: Sat, 29 Aug 2026 07:33:17 -0700 Subject: [PATCH] Fixes failure with extracting *.tpz --- export-windows.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/export-windows.ps1 b/export-windows.ps1 index 951083a..db29ddb 100644 --- a/export-windows.ps1 +++ b/export-windows.ps1 @@ -162,6 +162,7 @@ if (-not $editorExecutable) { $manifestPath = Join-Path $cacheDirectory 'SHA512-SUMS.txt' $editorArchive = Join-Path $cacheDirectory $editorAsset $templatesArchive = Join-Path $cacheDirectory $templatesAsset + $templatesZipArchive = Join-Path $cacheDirectory ($templatesAsset -replace '\.tpz$', '.zip') $templatesStagingDirectory = Join-Path $cacheDirectory 'templates-staging' Invoke-WebRequest -Uri "$script:BaseUrl/SHA512-SUMS.txt" -OutFile $manifestPath $editorChecksum = Get-Checksum $manifestPath $editorAsset @@ -169,7 +170,8 @@ if (-not $editorExecutable) { Download-AndVerify $editorAsset $editorArchive $editorChecksum Download-AndVerify $templatesAsset $templatesArchive $templatesChecksum Expand-Archive -LiteralPath $editorArchive -DestinationPath $editorDirectory -Force - Expand-Archive -LiteralPath $templatesArchive -DestinationPath $templatesStagingDirectory -Force + Move-Item -LiteralPath $templatesArchive -Destination $templatesZipArchive + Expand-Archive -LiteralPath $templatesZipArchive -DestinationPath $templatesStagingDirectory -Force Install-ExportTemplates $templatesStagingDirectory $templateDirectory $templatesAsset $templateVersion $editorExecutable = Find-Editor $editorDirectory if (-not $editorExecutable) { Fail 'The Godot editor archive did not contain an executable.' }