Skip to content

Commit c0aeff9

Browse files
committed
fix: allow self-signed statuses in installer precheck
1 parent 7d67b64 commit c0aeff9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packaging/Install-CopilotWatchTower.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ if not exist "%CER%" (
4040

4141
echo [precheck] Verifying MSIX signature...
4242
powershell -NoProfile -ExecutionPolicy Bypass -Command ^
43-
"$sig = Get-AuthenticodeSignature -FilePath '%MSIX%'; if ($sig.Status -ne 'Valid') { Write-Host ('[ERROR] MSIX signature invalid: ' + $sig.Status); exit 2 }"
43+
"$sig = Get-AuthenticodeSignature -FilePath '%MSIX%'; if (($sig.Status -eq 'NotSigned') -or ($null -eq $sig.SignerCertificate)) { Write-Host ('[ERROR] MSIX signature missing: ' + $sig.Status); exit 2 } else { Write-Host (' Signature detected: ' + $sig.Status) }"
4444
if %errorlevel% neq 0 (
4545
echo [ERROR] %MSIX% is not properly signed.
4646
echo Rebuild with signing enabled (build-msix.ps1 -CertPath ...)

0 commit comments

Comments
 (0)