There was an error while loading. Please reload this page.
1 parent 7d67b64 commit c0aeff9Copy full SHA for c0aeff9
1 file changed
packaging/Install-CopilotWatchTower.bat
@@ -40,7 +40,7 @@ if not exist "%CER%" (
40
41
echo [precheck] Verifying MSIX signature...
42
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 }"
+ "$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) }"
44
if %errorlevel% neq 0 (
45
echo [ERROR] %MSIX% is not properly signed.
46
echo Rebuild with signing enabled (build-msix.ps1 -CertPath ...)
0 commit comments