forked from bitfocus/companion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
companion-macOS.yml
41 lines (33 loc) · 1.08 KB
/
companion-macOS.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
pool:
vmImage: 'macOS-10.13'
steps:
- task: NodeTool@0
inputs:
versionSpec: '8.x'
displayName: 'Install Node.js'
- script: |
git config --file=.gitmodules submodule.bitfocus-skeleton.url https://github.com/bitfocus/bitfocus-skeleton.git
git config --file=.gitmodules submodule.bitfocus-libs.url https://github.com/bitfocus/bitfocus-libs.git
git submodule sync
git submodule init
git submodule update --recursive --remote
displayName: 'Import the submodules from GitHub'
- bash: |
tools/yarn.sh
displayName: 'Install the dependencies for the submodules'
- bash: |
tools/build_writefile.sh
displayName: 'Create the build file'
- script: |
yarn
displayName: 'Install the dependencies for core application'
- script: |
yarn macdist
displayName: 'Create the distribution'
- task: CopyFiles@2
displayName: 'Copy Files to: $(build.artifactstagingdirectory)'
inputs:
SourceFolder: '$(system.defaultworkingdirectory)'
Contents: 'electron-output/**'
TargetFolder: '$(build.artifactstagingdirectory)'
- task: PublishBuildArtifacts@1