From aeec7866b4a714ace18faefd0fa808d938b2aa8f Mon Sep 17 00:00:00 2001 From: "Mr. M" Date: Wed, 9 Apr 2025 23:27:02 +0200 Subject: [PATCH] Fixed windows signing script for future versions --- build/winsign/sign.ps1 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/build/winsign/sign.ps1 b/build/winsign/sign.ps1 index c5cba97c5..5c6283303 100644 --- a/build/winsign/sign.ps1 +++ b/build/winsign/sign.ps1 @@ -29,7 +29,7 @@ echo "Downloaded x86_64 artifacts" mkdir engine\obj-x86_64-pc-windows-msvc\ -ErrorAction SilentlyContinue -npm run surfer -- ci --brand release +surfer -- ci --brand release function SignAndPackage($name) { echo "Executing on $name" @@ -45,7 +45,7 @@ function SignAndPackage($name) { signtool.exe sign /n "$SignIdentity" /t http://time.certum.pl/ /fd sha256 /v $files echo "Packaging $name" $env:SURFER_SIGNING_MODE="sign" - $env:MAR="$PWD\\build\\winsign\\mar.exe" + $env:MAR="..\\build\\winsign\\mar.exe" if ($name -eq "arm64") { $env:SURFER_COMPAT="aarch64" } else { @@ -92,12 +92,12 @@ function SignAndPackage($name) { } # Extract the zip, sign everything inside, and repackage it - Expand-Archive -Path windsign-temp\windows-x64-signed-$name\zen.win-$name.zip -DestinationPath windsign-temp\windows-x64-signed-$name\zen.win-$name - rm windsign-temp\windows-x64-signed-$name\zen.win-$name.zip - $files = Get-ChildItem windsign-temp\windows-x64-signed-$name\zen.win-$name -Recurse -Include *.exe - $files += Get-ChildItem windsign-temp\windows-x64-signed-$name\zen.win-$name -Recurse -Include *.dll - signtool.exe sign /n "$SignIdentity" /t http://time.certum.pl/ /fd sha256 /v $files - Compress-Archive -Path windsign-temp\windows-x64-signed-$name\zen.win-$name -DestinationPath windsign-temp\windows-x64-signed-$name\zen.win-$name.zip + #Expand-Archive -Path windsign-temp\windows-x64-signed-$name\zen.win-$name.zip -DestinationPath windsign-temp\windows-x64-signed-$name\zen.win-$name + #rm windsign-temp\windows-x64-signed-$name\zen.win-$name.zip + #$files = Get-ChildItem windsign-temp\windows-x64-signed-$name\zen.win-$name -Recurse -Include *.exe + #$files += Get-ChildItem windsign-temp\windows-x64-signed-$name\zen.win-$name -Recurse -Include *.dll + #signtool.exe sign /n "$SignIdentity" /t http://time.certum.pl/ /fd sha256 /v $files + #Compress-Archive -Path windsign-temp\windows-x64-signed-$name\zen.win-$name -DestinationPath windsign-temp\windows-x64-signed-$name\zen.win-$name.zip rmdir windsign-temp\windows-x64-signed-$name\zen.win-$name -Recurse -ErrorAction SilentlyContinue # Move the manifest