新打包的游戲執行檔出現 smartscreen 警告,需要使用 code sign 簽章 下載 signtool.exe https://github.com/Delphier/SignTool 下載完后執行 python signtool.py 解壓縮 SignTool-10.0.26100.14-x64.zip 編輯此段 生成證書 使用系統管理員開啓 power shell 啟用ExecutionPolicy 為 Bypass Set-ExecutionPolicy Bypass -Scope Process $cert = New-SelfSignedCertificate -DnsName uj.com.tw -CertStoreLocation cert:\LocalMachine\My -type CodeSigning $pwd = ConvertTo-SecureString -String “123456” -Force -AsPlainText Export-PfxCertificate -cert $cert -FilePath cert_hslr.pfx -Password $pwd 生成證書如下 執行簽章 .\signtool.exe sign /f cert hslr.pfx /p 123456 /fd SHA256 /tr http://timestamp.digicert.com /td SHA256 D:\OlgCase\RS\Build 5\HSLR.exe 查看執行檔上面的簽核信息 驗證執行檔 .\signtool.exe verify /pa /v D:\OlgCase\RS\Build_5\HSLR.exe