diff --git a/packages/inno/build.ps1 b/packages/inno/build.ps1 index b8449e3a7c82..e94c4ecd3b3d 100644 --- a/packages/inno/build.ps1 +++ b/packages/inno/build.ps1 @@ -31,9 +31,17 @@ $content = $content.Replace('', $Version) $ISSName = ".oh-my-posh-$Architecture-$Version.iss" $content | Out-File -Encoding 'UTF8' $ISSName +# clean paths +$signtool = $signtool -Replace '\\', '/' +$signtoolDlib = $signtoolDlib -Replace '\\', '/' + # package content $installer = "install-$Architecture" -ISCC.exe /F$installer "/Ssigntool=$signtool sign /v /debug /fd SHA256 /tr http://timestamp.acs.microsoft.com /td SHA256 /dlib $signtoolDlib /dmdf ./metadata.json `$f" $ISSName +ISCC.exe /F$installer $ISSName + +# sign installer +& "$signtool" sign /v /debug /fd SHA256 /tr 'http://timestamp.acs.microsoft.com' /td SHA256 /dlib "$signtoolDlib" /dmdf ../../src/metadata.json "./Output/$installer.exe" + # get hash $zipHash = Get-FileHash "Output/$installer.exe" -Algorithm SHA256 $zipHash.Hash | Out-File -Encoding 'UTF8' "Output/$installer.exe.sha256" diff --git a/packages/inno/oh-my-posh.iss b/packages/inno/oh-my-posh.iss index b5ecbfb8127c..9db7e8a7d345 100644 --- a/packages/inno/oh-my-posh.iss +++ b/packages/inno/oh-my-posh.iss @@ -13,8 +13,6 @@ UninstallDisplayIcon={app}\bin\oh-my-posh.exe PrivilegesRequired=lowest PrivilegesRequiredOverridesAllowed=dialog ChangesEnvironment=yes -SignTool=signtool -SignedUninstaller=yes CloseApplications=no [Files]