Merge pull request #864 from lbryio/build-tests
Building and Signing Stuff
This commit is contained in:
commit
17dbcf662b
2 changed files with 7 additions and 12 deletions
|
@ -3,16 +3,15 @@ environment:
|
||||||
nodejs_version: 7
|
nodejs_version: 7
|
||||||
GH_TOKEN:
|
GH_TOKEN:
|
||||||
secure: LiI5jyuHUw6XbH4kC3gP1HX4P/v4rwD/gCNtaFhQu2AvJz1/1wALkp5ECnIxRySN
|
secure: LiI5jyuHUw6XbH4kC3gP1HX4P/v4rwD/gCNtaFhQu2AvJz1/1wALkp5ECnIxRySN
|
||||||
key_pass:
|
|
||||||
secure: u6DydPcdrUJlxGL9uc7yQRYG8+5rY6aAEE9nfCSzFyNzZlX9NniOp8Uh5ZKQqX7bGEngLI6ipbLfiJvn0XFnhbn2iTkOuMqOXVJVOehvwlQ=
|
|
||||||
pfx_key:
|
pfx_key:
|
||||||
secure: 1mwqyRy7hDqDjDK+TIAoaXyXzpNgwruFNA6TPkinUcVM7A+NLD33RQLnfnwVy+R5ovD2pUfhQ6+N0Fqebv6tZh436LIEsock+6IOdpgFwrg=
|
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:
|
AWS_ACCESS_KEY_ID:
|
||||||
secure: iVGwoJ7ogspjSmuqr+haVPLglSgQsp6tUZx6mIlKH7Q=
|
secure: iVGwoJ7ogspjSmuqr+haVPLglSgQsp6tUZx6mIlKH7Q=
|
||||||
AWS_SECRET_ACCESS_KEY:
|
AWS_SECRET_ACCESS_KEY:
|
||||||
secure: zKaqdZGPl0exDL5YhJkb33prSemC9Rzg9S7Lw2wFy1WnJ6ffgl6mQH7jqJDUTqsY
|
secure: zKaqdZGPl0exDL5YhJkb33prSemC9Rzg9S7Lw2wFy1WnJ6ffgl6mQH7jqJDUTqsY
|
||||||
|
CSC_LINK: build\lbry3.pfx
|
||||||
|
CSC_KEY_PASSWORD:
|
||||||
|
secure: u6DydPcdrUJlxGL9uc7yQRYG8+5rY6aAEE9nfCSzFyNzZlX9NniOp8Uh5ZKQqX7bGEngLI6ipbLfiJvn0XFnhbn2iTkOuMqOXVJVOehvwlQ=
|
||||||
|
|
||||||
skip_branch_with_pr: false
|
skip_branch_with_pr: false
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
pip install -r build\requirements.txt
|
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
|
# Get the latest stable version of Node.js or io.js
|
||||||
Install-Product node $env:nodejs_version
|
Install-Product node $env:nodejs_version
|
||||||
npm install -g yarn
|
npm install -g yarn
|
||||||
|
@ -21,16 +25,8 @@ Expand-Archive daemon.zip -DestinationPath static\daemon\
|
||||||
dir static\daemon\ # verify that daemon binary is there
|
dir static\daemon\ # verify that daemon binary is there
|
||||||
rm daemon.zip
|
rm daemon.zip
|
||||||
|
|
||||||
|
|
||||||
# build electron app
|
# build electron app
|
||||||
yarn dist
|
yarn dist
|
||||||
dir dist # verify that binary was built/named correctly
|
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
|
python build\upload_assets.py
|
||||||
|
|
Loading…
Reference in a new issue