2019-02-17 01:54:54 -08:00
|
|
|
# Node.js
|
|
|
|
# Build a general Node.js project with npm.
|
|
|
|
# Add steps that analyze code, save build artifacts, deploy, and more:
|
|
|
|
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
|
|
|
|
trigger:
|
|
|
|
- master
|
2019-02-17 17:24:38 -08:00
|
|
|
- azure-pipelines
|
2019-02-17 01:54:54 -08:00
|
|
|
|
2019-02-17 17:24:38 -08:00
|
|
|
jobs:
|
2019-02-17 17:25:41 -08:00
|
|
|
- job: job_32_bit
|
2019-02-17 17:24:38 -08:00
|
|
|
pool:
|
|
|
|
vmImage: 'vs2017-win2016'
|
2019-02-17 01:54:54 -08:00
|
|
|
|
2019-02-17 17:24:38 -08:00
|
|
|
steps:
|
|
|
|
- task: NodeTool@0
|
|
|
|
inputs:
|
|
|
|
versionSpec: '8.x'
|
|
|
|
displayName: 'Install Node.js'
|
2019-02-17 17:52:08 -08:00
|
|
|
- bash: |
|
2019-02-17 17:24:38 -08:00
|
|
|
npm set npm_config_arch ia32
|
|
|
|
npm install --arch=ia32 electron-prebuilt -g
|
|
|
|
npm install --arch=ia32 electron-builder -g
|
|
|
|
npm install --arch=ia32 electron-rebuild -g
|
|
|
|
npm install --arch=ia32
|
|
|
|
electron-rebuild -f --arch=ia32
|
|
|
|
electron-builder --win --arch=ia32
|
2019-02-17 17:38:54 -08:00
|
|
|
echo Electron builder complete
|
2019-02-17 17:24:38 -08:00
|
|
|
displayName: 'npm install and build 32-bit'
|
|
|
|
|
2019-02-17 17:25:41 -08:00
|
|
|
- job: job_64_bit
|
2019-02-17 17:24:38 -08:00
|
|
|
pool:
|
|
|
|
vmImage: 'vs2017-win2016'
|
2019-02-17 02:01:01 -08:00
|
|
|
|
2019-02-17 17:24:38 -08:00
|
|
|
steps:
|
|
|
|
- task: NodeTool@0
|
|
|
|
inputs:
|
|
|
|
versionSpec: '8.x'
|
|
|
|
displayName: 'Install Node.js'
|
2019-02-17 17:52:08 -08:00
|
|
|
- bash: |
|
2019-02-17 17:24:38 -08:00
|
|
|
npm install
|
|
|
|
npm install electron-builder -g
|
|
|
|
npm run build
|
|
|
|
electron-builder --win
|
|
|
|
displayName: 'npm install and build 64-bit'
|