diff --git a/build/build.ps1 b/build/build.ps1 index fc4535ad1..e5bbe9d3b 100644 --- a/build/build.ps1 +++ b/build/build.ps1 @@ -1,5 +1,13 @@ pip install -r build\requirements.txt +# sign binary +nuget install secure-file -ExcludeVersion +secure-file\tools\secure-file -decrypt build\lbry3.pfx.enc -secret "$env:pfx_key" +Write-Host "Testing for lbry3" +Test-Path build\lbry3.pfx + +# & ${env:SIGNTOOL_PATH} sign /f build\lbry3.pfx /p "$env:key_pass" /tr http://tsa.starfieldtech.com /td SHA256 /fd SHA256 dist\*.exe + # Get the latest stable version of Node.js or io.js Install-Product node $env:nodejs_version npm install -g yarn @@ -21,19 +29,8 @@ Expand-Archive daemon.zip -DestinationPath static\daemon\ dir static\daemon\ # verify that daemon binary is there rm daemon.zip - # build electron app yarn dist dir dist # verify that binary was built/named correctly - -# sign binary -nuget install secure-file -ExcludeVersion -secure-file\tools\secure-file -decrypt build\lbry3.pfx.enc -secret "$env:pfx_key" -Write-Host "Testing for lbry3" -Test-Path build\lbry3.pfx - -# & ${env:SIGNTOOL_PATH} sign /f build\lbry3.pfx /p "$env:key_pass" /tr http://tsa.starfieldtech.com /td SHA256 /fd SHA256 dist\*.exe - - python build\upload_assets.py