2017-02-10 20:11:26 +01:00
|
|
|
# Test against the latest version of this Node.js version
|
|
|
|
environment:
|
|
|
|
nodejs_version: "6"
|
|
|
|
|
2017-02-15 17:34:44 +01:00
|
|
|
skip_branch_with_pr: true
|
|
|
|
|
2017-02-10 20:11:26 +01:00
|
|
|
clone_folder: C:\projects\lbry-electron
|
|
|
|
|
|
|
|
# Install scripts. (runs after repo cloning)
|
|
|
|
install:
|
|
|
|
# needed to deal with submodules
|
|
|
|
- git submodule update --init --recursive
|
2017-02-16 01:50:38 +01:00
|
|
|
- python set_version.py
|
|
|
|
- python set_build.py
|
2017-02-10 20:11:26 +01:00
|
|
|
# Get the latest stable version of Node.js or io.js
|
|
|
|
- ps: Install-Product node $env:nodejs_version
|
|
|
|
# install modules
|
|
|
|
- npm install
|
|
|
|
- cd app
|
|
|
|
- npm install
|
|
|
|
- cd ..
|
|
|
|
# create lbrynet-daemon executable
|
|
|
|
- cd lbrynet
|
|
|
|
- ps: .\build.ps1
|
|
|
|
- cd ..
|
|
|
|
# build ui
|
|
|
|
- cd lbry-web-ui
|
|
|
|
- npm install
|
|
|
|
- node_modules\.bin\node-sass --output dist\css --sourcemap=none scss\
|
|
|
|
- node_modules\.bin\webpack
|
|
|
|
- ps: Copy-Item dist ..\app\ -recurse
|
|
|
|
- cd ..
|
|
|
|
- ps: Copy-Item lbrynet\dist\lbrynet-daemon.exe app\dist
|
|
|
|
|
|
|
|
build_script:
|
|
|
|
# build electron app
|
|
|
|
- node_modules\.bin\build -p never
|
|
|
|
# for debugging, see what was built
|
|
|
|
- dir dist
|
|
|
|
|
|
|
|
test: off
|
|
|
|
|
|
|
|
artifacts:
|
2017-02-17 21:13:55 +01:00
|
|
|
- path: dist\*.exe
|
2017-02-10 20:11:26 +01:00
|
|
|
name: LBRY
|
2017-02-15 20:17:48 +01:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
- provider: GitHub
|
|
|
|
release: $(APPVEYOR_REPO_TAG_NAME)
|
|
|
|
description: 'Release'
|
|
|
|
auth_token:
|
|
|
|
secure: LiI5jyuHUw6XbH4kC3gP1HX4P/v4rwD/gCNtaFhQu2AvJz1/1wALkp5ECnIxRySN
|
|
|
|
artifact: LBRY
|
2017-02-17 21:06:57 +01:00
|
|
|
draft: false
|
2017-02-15 20:17:48 +01:00
|
|
|
prerelease: true
|
|
|
|
on:
|
|
|
|
appveyor_repo_tag: true # deploy on tag push only
|