<#.SynopsisCompiles and signs a catalog file..DescriptionGiven the CDF definition file, builds and signs a catalog..Parameter catalogThe path to the catalog definition file to compile andsign. It is assumed that the .cat file will be the samename with a new extension..Parameter descriptionThe description to add to the signature (optional)..Parameter certnameThe name of the certificate to sign with (optional)..Parameter certsha1The SHA1 hash of the certificate to sign with (optional).#>param([Parameter(Mandatory=$true)][string]$catalog,[switch]$sign,[string]$description,[string]$certname,[string]$certsha1,[string]$certfile)$tools=$script:MyInvocation.MyCommand.Path|Split-Path-parent;Import-Module$tools\sdktools.psm1-WarningActionSilentlyContinue-ForceSet-AliasMakeCat(Find-Tool"makecat.exe")-ScopeScriptMakeCat$catalogif(-not$?){throw"Catalog compilation failed"}if($sign){Sign-File-certname$certname-certsha1$certsha1-certfile$certfile-description$description-files@($catalog-replace'cdf$','cat')}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。