os: Visual Studio 2017

platform:
  - x64

environment:
  nodejs_version: "10"

cache:
  - "%USERPROFILE%\\.electron"
  - "%LOCALAPPDATA%\\Yarn"

version: "{build}"

install:
  - ps: Install-Product node $env:nodejs_version $env:platform
  - yarn
  - node scripts/build-native.js

build_script:
  - yarn run build
  - node scripts/prepackage-plugins.js
  - node scripts/build-windows.js

artifacts:
  - path: 'dist\win\*.exe'
  - path: 'dist\squirrel-windows\*.exe'
  - path: 'dist\*.exe'