2017-04-11 10:38:32 -04:00
|
|
|
pip install -r build\requirements.txt
|
2017-06-26 13:07:44 -04:00
|
|
|
|
2017-12-12 13:23:02 -08:00
|
|
|
# Decrypt cert
|
2017-12-12 11:43:32 -08:00
|
|
|
nuget install secure-file -ExcludeVersion
|
|
|
|
secure-file\tools\secure-file -decrypt build\lbry3.pfx.enc -secret "$env:pfx_key"
|
|
|
|
|
2017-04-11 10:38:32 -04:00
|
|
|
# Get the latest stable version of Node.js or io.js
|
|
|
|
Install-Product node $env:nodejs_version
|
2017-06-23 15:18:03 -04:00
|
|
|
npm install -g yarn
|
|
|
|
yarn install
|
2017-06-26 13:07:44 -04:00
|
|
|
|
2017-11-28 21:29:59 -03:00
|
|
|
# clean dist\
|
|
|
|
if (Test-Path -Path dist\) {
|
|
|
|
Remove-Item -Recurse -Force dist\
|
|
|
|
}
|
|
|
|
New-Item -ItemType directory -Path dist\
|
2017-06-05 12:29:17 -04:00
|
|
|
|
2017-04-11 10:38:32 -04:00
|
|
|
# get daemon and cli executable
|
2017-11-28 21:29:59 -03:00
|
|
|
$package_settings = (Get-Content package.json -Raw | ConvertFrom-Json).lbrySettings
|
2017-08-09 18:50:01 -05:00
|
|
|
$daemon_ver = $package_settings.lbrynetDaemonVersion
|
|
|
|
$daemon_url_template = $package_settings.lbrynetDaemonUrlTemplate
|
|
|
|
$daemon_url = $daemon_url_template.Replace('OSNAME', 'windows').Replace('DAEMONVER', $daemon_ver)
|
2017-04-11 10:38:32 -04:00
|
|
|
Invoke-WebRequest -Uri $daemon_url -OutFile daemon.zip
|
2017-12-04 17:46:51 -03:00
|
|
|
Expand-Archive daemon.zip -DestinationPath static\daemon\
|
|
|
|
dir static\daemon\ # verify that daemon binary is there
|
2017-04-11 10:38:32 -04:00
|
|
|
rm daemon.zip
|
|
|
|
|
|
|
|
# build electron app
|
2017-12-20 11:48:38 -03:00
|
|
|
yarn build
|
2017-04-11 10:38:32 -04:00
|
|
|
dir dist # verify that binary was built/named correctly
|
2017-04-25 14:41:26 -04:00
|
|
|
|
2017-07-24 16:10:57 -04:00
|
|
|
python build\upload_assets.py
|