Add compression estimates, transparent image output and full format selection
This commit is contained in:
1 parent
65cebb31ca
commit
2b897267d1
22 files changed
+220
-30
No files matched your search
@@ -1,10 +1,11 @@
|
||||
# Run explicitly in an elevated PowerShell. Trusts only the FileBow development certificate.
|
||||
[CmdletBinding()]param()
|
||||
$ErrorActionPreference='Stop'
|
||||
. (Join-Path $PSScriptRoot 'hash-file.ps1')
|
||||
$root=[IO.Path]::GetFullPath((Join-Path $PSScriptRoot '..'))
|
||||
$record=Get-Content (Join-Path $root 'out\msix\build-Development.json') -Raw | ConvertFrom-Json
|
||||
if (-not $record.Signed) { throw 'Zuerst build-msix.ps1 -SignDevelopment ausführen.' }
|
||||
if ((Get-FileHash $record.Package -Algorithm SHA256).Hash -ne $record.SHA256) { throw 'Paket-Prüfsumme stimmt nicht überein.' }
|
||||
if ((Get-FileBowSha256 $record.Package) -ne $record.SHA256) { throw 'Paket-Prüfsumme stimmt nicht überein.' }
|
||||
$cert=[Security.Cryptography.X509Certificates.X509Certificate2]::new($record.Certificate)
|
||||
if ($cert.Subject -ne 'CN=FileBow Development') { throw 'Unerwartetes Zertifikat.' }
|
||||
Import-Certificate -FilePath $record.Certificate -CertStoreLocation Cert:\LocalMachine\TrustedPeople | Out-Null
|
||||
|
||||
Reference in new issue
Block a user