mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-08-17 23:01:02 +03:00
Merge commit '9c1d28509179bac89fb6831803d939897acd47da' into checkpoint/main_from_release_2.0.0_9c1d28509179bac89fb6831803d939897acd47da
This commit is contained in:
commit
10cc56f7c9
@ -68,14 +68,33 @@ mv temp.json package.json
|
||||
Write-Output " ---"
|
||||
|
||||
Write-Output " ---"
|
||||
Write-Output "electron-builder"
|
||||
electron-builder build --win --x64 --config.productName="Chia"
|
||||
Write-Output "electron-builder create package directory"
|
||||
electron-builder build --win --x64 --config.productName="Chia" --dir
|
||||
Get-ChildItem dist\win-unpacked\resources
|
||||
Write-Output " ---"
|
||||
|
||||
If ($env:HAS_SIGNING_SECRET) {
|
||||
Write-Output " ---"
|
||||
Write-Output "Sign App"
|
||||
Write-Output "Sign all EXEs"
|
||||
Get-ChildItem ".\dist\win-unpacked" -Recurse | Where-Object { $_.Extension -eq ".exe" } | ForEach-Object {
|
||||
$exePath = $_.FullName
|
||||
Write-Output "Signing $exePath"
|
||||
signtool.exe sign /sha1 $env:SM_CODE_SIGNING_CERT_SHA1_HASH /tr http://timestamp.digicert.com /td SHA256 /fd SHA256 $exePath
|
||||
Write-Output "Verify signature"
|
||||
signtool.exe verify /v /pa $exePath
|
||||
}
|
||||
} Else {
|
||||
Write-Output "Skipping verify signatures - no authorization to install certificates"
|
||||
}
|
||||
|
||||
Write-Output " ---"
|
||||
Write-Output "electron-builder create installer"
|
||||
electron-builder build --win --x64 --config.productName="Chia" --pd ".\dist\win-unpacked"
|
||||
Write-Output " ---"
|
||||
|
||||
If ($env:HAS_SIGNING_SECRET) {
|
||||
Write-Output " ---"
|
||||
Write-Output "Sign Final Installer App"
|
||||
signtool.exe sign /sha1 $env:SM_CODE_SIGNING_CERT_SHA1_HASH /tr http://timestamp.digicert.com /td SHA256 /fd SHA256 .\dist\ChiaSetup-$packageVersion.exe
|
||||
Write-Output " ---"
|
||||
Write-Output "Verify signature"
|
||||
|
Loading…
Reference in New Issue
Block a user