From 6f01d463157cfde14f0996c11714fc3c515f1d2e Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Thu, 6 Feb 2020 02:52:27 -0700 Subject: [PATCH] sign stuff --- deploy.ps1 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/deploy.ps1 b/deploy.ps1 index d063dac..b6ac233 100644 --- a/deploy.ps1 +++ b/deploy.ps1 @@ -26,9 +26,11 @@ foreach ($language in @{ { cd $arch; $VS_arch = if ($arch -eq "x86") {"Win32"} else {"x64"}; - cmake -G "Visual Studio 16 2019" -A"$VS_arch" -DVERSION="$version" -DTEXT_LANGUAGE="$($language.Key)" -DCMAKE_BUILD_TYPE="Release" ../..; + &"C:\Program Files\CMake\bin\cmake" -G "Visual Studio 16 2019" -A"$VS_arch" -DVERSION="$version" -DTEXT_LANGUAGE="$($language.Key)" -DCMAKE_BUILD_TYPE="Release" ../..; &"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\devenv" Textractor.sln /build "Release|$VS_arch"; cd ..; + &"C:\Program Files (x86)\Windows Kits\10\App Certification Kit\signtool.exe" sign /a /v /t "http://timestamp.digicert.com" /fd SHA256 "Release_$arch/Textractor.exe"; + &"C:\Program Files (x86)\Windows Kits\10\App Certification Kit\signtool.exe" sign /a /v /t "http://timestamp.digicert.com" /fd SHA256 "Release_$arch/TextractorCLI.exe"; mkdir -Force -Verbose "$folder/$arch"; foreach ($file in @( "Textractor.exe", @@ -78,4 +80,5 @@ mkdir -Force -Verbose "Textractor"; copy -Force -Recurse -Verbose -Destination "Textractor" -Path @("Runtime/*", "Textractor--$version/*"); cd .. -&"C:\Program Files (x86)\Inno Setup 6\iscc.exe" -DVERSION="$version" installer.iss +&"C:\Program Files (x86)\Inno Setup 6\iscc" -DVERSION="$version" installer.iss +&"C:\Program Files (x86)\Windows Kits\10\App Certification Kit\signtool.exe" sign /a /v /t "http://timestamp.digicert.com" /fd SHA256 "Builds/Textractor-$version-Setup.exe";