forgot to edit appveyor build
This commit is contained in:
parent
6c3a30eac0
commit
9eb448f1bc
1 changed files with 10 additions and 2 deletions
|
@ -1,12 +1,14 @@
|
||||||
pip install -r build\requirements.txt
|
pip install -r build\requirements.txt
|
||||||
python build\set_version.py
|
python build\set_version.py
|
||||||
|
|
||||||
|
|
||||||
# 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
|
||||||
|
|
||||||
# install node modules
|
|
||||||
yarn install
|
yarn install
|
||||||
|
|
||||||
|
|
||||||
|
# do app
|
||||||
cd app
|
cd app
|
||||||
yarn install
|
yarn install
|
||||||
# necessary to ensure native Node modules (e.g. keytar) are built against the correct version of Node)
|
# necessary to ensure native Node modules (e.g. keytar) are built against the correct version of Node)
|
||||||
|
@ -15,15 +17,18 @@ node_modules\.bin\electron-rebuild
|
||||||
node_modules\.bin\electron-rebuild
|
node_modules\.bin\electron-rebuild
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
|
||||||
# build ui
|
# build ui
|
||||||
cd ui
|
cd ui
|
||||||
yarn install
|
yarn install
|
||||||
|
npm rebuild node-sass
|
||||||
node extractLocals.js
|
node extractLocals.js
|
||||||
node_modules\.bin\node-sass --output dist\css --sourcemap=none scss\
|
node_modules\.bin\node-sass --output dist\css --sourcemap=none scss\
|
||||||
node_modules\.bin\webpack
|
node_modules\.bin\webpack
|
||||||
Copy-Item dist ..\app\ -recurse
|
Copy-Item dist ..\app\ -recurse
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
|
||||||
# get daemon and cli executable
|
# get daemon and cli executable
|
||||||
$daemon_url = (Get-Content build\DAEMON_URL -Raw).replace("OSNAME", "windows")
|
$daemon_url = (Get-Content build\DAEMON_URL -Raw).replace("OSNAME", "windows")
|
||||||
Invoke-WebRequest -Uri $daemon_url -OutFile daemon.zip
|
Invoke-WebRequest -Uri $daemon_url -OutFile daemon.zip
|
||||||
|
@ -31,6 +36,7 @@ Expand-Archive daemon.zip -DestinationPath app\dist\
|
||||||
dir app\dist\ # verify that daemon binary is there
|
dir app\dist\ # verify that daemon binary is there
|
||||||
rm daemon.zip
|
rm daemon.zip
|
||||||
|
|
||||||
|
|
||||||
# build electron app
|
# build electron app
|
||||||
node_modules\.bin\build -p never
|
node_modules\.bin\build -p never
|
||||||
$binary_name = Get-ChildItem -Path dist -Filter '*.exe' -Name
|
$binary_name = Get-ChildItem -Path dist -Filter '*.exe' -Name
|
||||||
|
@ -38,9 +44,11 @@ $new_name = $binary_name -replace '^LBRY Setup (.*)\.exe$', 'LBRY_$1.exe'
|
||||||
Rename-Item -Path "dist\$binary_name" -NewName $new_name
|
Rename-Item -Path "dist\$binary_name" -NewName $new_name
|
||||||
dir dist # verify that binary was built/named correctly
|
dir dist # verify that binary was built/named correctly
|
||||||
|
|
||||||
|
|
||||||
# sign binary
|
# sign binary
|
||||||
nuget install secure-file -ExcludeVersion
|
nuget install secure-file -ExcludeVersion
|
||||||
secure-file\tools\secure-file -decrypt build\lbry2.pfx.enc -secret "$env:pfx_key"
|
secure-file\tools\secure-file -decrypt build\lbry2.pfx.enc -secret "$env:pfx_key"
|
||||||
& ${env:SIGNTOOL_PATH} sign /f build\lbry2.pfx /p "$env:key_pass" /tr http://tsa.starfieldtech.com /td SHA256 /fd SHA256 dist\*.exe
|
& ${env:SIGNTOOL_PATH} sign /f build\lbry2.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…
Add table
Reference in a new issue