From 30b3e4f6cb63d14c5f8681262ff81409c8a4db18 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Tue, 29 Dec 2020 12:56:07 +0100 Subject: [PATCH] sign: Add description UAC prompt displays some random MSI filename otherwise. Signed-off-by: Simon Rozman --- sign.bat | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sign.bat b/sign.bat index 0aaa8d0..5f732fd 100644 --- a/sign.bat +++ b/sign.bat @@ -3,13 +3,14 @@ setlocal enabledelayedexpansion set BUILDDIR=%~dp0 -call :sign hr-apple || goto :error -call :sign sl-apple || goto :error +call :sign hr-apple "Apple Magic Keyboard Croatian" || goto :error +call :sign sl-apple "Apple Magic Keyboard Slovenian" || goto :error exit /b 0 :sign set BASENAME=%1 - signtool.exe sign /sha1 "%ManifestCertificateThumbprint%" /fd sha256 /tr "%ManifestTimestampRFC3161Url%" /td sha256 "%BUILDDIR%%BASENAME%\amd64\%BASENAME%.dll" "%BUILDDIR%%BASENAME%\i386\%BASENAME%.dll" "%BUILDDIR%%BASENAME%\ia64\%BASENAME%.dll" "%BUILDDIR%%BASENAME%\wow64\%BASENAME%.dll" "%BUILDDIR%%BASENAME%\%BASENAME%_amd64.msi" "%BUILDDIR%%BASENAME%\%BASENAME%_i386.msi" "%BUILDDIR%%BASENAME%\%BASENAME%_ia64.msi" + set DESCRIPTION=%2 + signtool.exe sign /sha1 "%ManifestCertificateThumbprint%" /fd sha256 /tr "%ManifestTimestampRFC3161Url%" /td sha256 /d "%DESCRIPTION%" "%BUILDDIR%%BASENAME%\amd64\%BASENAME%.dll" "%BUILDDIR%%BASENAME%\i386\%BASENAME%.dll" "%BUILDDIR%%BASENAME%\ia64\%BASENAME%.dll" "%BUILDDIR%%BASENAME%\wow64\%BASENAME%.dll" "%BUILDDIR%%BASENAME%\%BASENAME%_amd64.msi" "%BUILDDIR%%BASENAME%\%BASENAME%_i386.msi" "%BUILDDIR%%BASENAME%\%BASENAME%_ia64.msi" goto :eof :error