diff --git a/.appveyor.yml b/.appveyor.yml index 71e698523..237d2ee1b 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -3,16 +3,15 @@ environment: nodejs_version: 7 GH_TOKEN: secure: LiI5jyuHUw6XbH4kC3gP1HX4P/v4rwD/gCNtaFhQu2AvJz1/1wALkp5ECnIxRySN - key_pass: - secure: u6DydPcdrUJlxGL9uc7yQRYG8+5rY6aAEE9nfCSzFyNzZlX9NniOp8Uh5ZKQqX7bGEngLI6ipbLfiJvn0XFnhbn2iTkOuMqOXVJVOehvwlQ= pfx_key: secure: 1mwqyRy7hDqDjDK+TIAoaXyXzpNgwruFNA6TPkinUcVM7A+NLD33RQLnfnwVy+R5ovD2pUfhQ6+N0Fqebv6tZh436LIEsock+6IOdpgFwrg= - # find with: Get-Childitem –Path "C:\Program Files (x86)\Microsoft SDKs\Windows\" -Include *signtool* -File -Recurse -ErrorAction SilentlyContinue - SIGNTOOL_PATH: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin\signtool.exe AWS_ACCESS_KEY_ID: secure: iVGwoJ7ogspjSmuqr+haVPLglSgQsp6tUZx6mIlKH7Q= AWS_SECRET_ACCESS_KEY: secure: zKaqdZGPl0exDL5YhJkb33prSemC9Rzg9S7Lw2wFy1WnJ6ffgl6mQH7jqJDUTqsY + CSC_LINK: build\lbry3.pfx + CSC_KEY_PASSWORD: + secure: u6DydPcdrUJlxGL9uc7yQRYG8+5rY6aAEE9nfCSzFyNzZlX9NniOp8Uh5ZKQqX7bGEngLI6ipbLfiJvn0XFnhbn2iTkOuMqOXVJVOehvwlQ= skip_branch_with_pr: false diff --git a/build/build.ps1 b/build/build.ps1 index 465e43915..3fb9d90b8 100644 --- a/build/build.ps1 +++ b/build/build.ps1 @@ -1,5 +1,9 @@ pip install -r build\requirements.txt +# Decrypt cert +nuget install secure-file -ExcludeVersion +secure-file\tools\secure-file -decrypt build\lbry3.pfx.enc -secret "$env:pfx_key" + # Get the latest stable version of Node.js or io.js Install-Product node $env:nodejs_version npm install -g yarn @@ -21,16 +25,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" -& ${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