-
Notifications
You must be signed in to change notification settings - Fork 15
/
azure-pipelines.yml
113 lines (95 loc) · 2.54 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
trigger:
- master
variables:
major: 1
minor: 4
revision: $[counter(format('{0}.{1}', variables['major'], variables['minor']), 100)]
name: $(major).$(minor).$(revision)
jobs:
- job: WindowsBuilds
pool:
vmImage: 'windows-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '16.x'
displayName: 'Install Node.js'
- script: |
cd src
echo $(Build.BuildNumber)
npm --no-git-tag-version version $(Build.BuildNumber)
displayName: 'Update Version Number'
- script: |
cd src
npm install
displayName: 'Install dependencies'
- script: |
cd src
npm run distwin
env:
GH_TOKEN: $(GITHUB_TOKEN)
displayName: 'Package electron for Windows'
# Buuilding for Linux in the pipeline is having some issues at the moment
#- script: |
# cd src
# npm run distlinux
# env:
# GH_TOKEN: $(GITHUB_TOKEN)
# displayName: 'Package electron for Linux'
- task: CopyFiles@2
inputs:
SourceFolder: 'src/distPackages'
Contents: |
AdventurerClient-winia32.appx
AdventurerClient-winx64.appx
AdventurerClient-win
# Buuilding for Linux in the pipeline is having some issues at the moment
#AdventurerClient-linuxia32.AppImage
#AdventurerClient-linuxia32.deb
#AdventurerClient-linuxarm64.AppImage
#AdventurerClient-linuxarm64.deb
#AdventurerClient-linuxarmv7l.AppImage
#AdventurerClient-linuxarmv7l.deb
TargetFolder: 'drop'
CleanTargetFolder: true
preserveTimestamp: true
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: 'drop'
ArtifactName: 'drop'
- job: MacBuilds
pool:
vmImage: 'macOS-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '16.x'
displayName: 'Install Node.js'
- script: |
cd src
echo $(Build.BuildNumber)
npm --no-git-tag-version version $(Build.BuildNumber)
displayName: 'Update Version Number'
- script: |
cd src
npm install
displayName: 'Install dependencies'
- script: |
cd src
npm run distmac
env:
GH_TOKEN: $(GITHUB_TOKEN)
displayName: 'Package electron for Mac'
- task: CopyFiles@2
inputs:
SourceFolder: 'src/distPackages'
Contents: |
AdventurerClient-macx64.dmg
TargetFolder: 'drop'
CleanTargetFolder: true
preserveTimestamp: true
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: 'drop'
ArtifactName: 'drop'
publishLocation: 'Container'