forked from jasongin/noble-uwp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
31 lines (27 loc) · 1.16 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
trigger: none
pr: none
pool:
vmImage: 'vs2017-win2016'
variables:
- group: kit-app-ui
steps:
- task: UseNode@1
- powershell: npm install -g node-pre-gyp node-gyp node-pre-gyp-github
- powershell: |
$uwp_modules = @("windows.foundation", "windows.devices.bluetooth", "windows.devices.bluetooth.advertisement", "windows.devices.bluetooth.genericattributeprofile", "windows.devices.enumeration", "windows.devices.radios", "windows.storage.streams")
foreach ($module in $uwp_modules) {
$path = "./uwp/" + $module
cd $path
echo "============================== start building $module =============================="
Convert-Path .
node-gyp -v
npm install --ignore-scripts
./node_modules/.bin/node-pre-gyp rebuild --runtime=electron --target=3.1.0 --arch=x64 --dist-url=https://electronjs.org/headers
./node_modules/.bin/node-pre-gyp package --runtime=electron --target=3.1.0 --arch=x64 --dist-url=https://electronjs.org/headers
node-pre-gyp-github publish --release
cd ../..
}
echo "done."
env:
NODE_PRE_GYP_GITHUB_TOKEN: $(GITHUB_RELEASES_TOKEN)
GYP_MSVS_VERSION: '2015'