@@ -11,32 +11,58 @@ steps:
11
11
set -e
12
12
echo "machine monacotools.visualstudio.com password $(VSO_PAT)" > ~/.netrc
13
13
yarn
14
- npm run gulp -- hygiene
15
- npm run monaco-compile-check
16
- VSCODE_MIXIN_PASSWORD="$(VSCODE_MIXIN_PASSWORD)" npm run gulp -- mixin
14
+ yarn gulp -- hygiene
15
+ yarn monaco-compile-check
16
+ VSCODE_MIXIN_PASSWORD="$(VSCODE_MIXIN_PASSWORD)" yarn gulp -- mixin
17
17
node build/tfs/common/installDistro.js
18
18
node build/lib/builtInExtensions.js
19
+ displayName : Prepare build
19
20
20
21
- script : |
21
22
set -e
22
23
VSCODE_MIXIN_PASSWORD="$(VSCODE_MIXIN_PASSWORD)" \
23
24
AZURE_STORAGE_ACCESS_KEY="$(AZURE_STORAGE_ACCESS_KEY)" \
24
- npm run gulp -- vscode-darwin-min upload-vscode-sourcemaps
25
- name : build
25
+ yarn gulp -- vscode-darwin-min upload-vscode-sourcemaps
26
+ displayName : Build
26
27
27
28
- script : |
28
29
set -e
29
30
./scripts/test.sh --build --tfs "Unit Tests"
30
- APP_NAME="`ls $(agent.builddirectory)/VSCode-darwin | head -n 1`"
31
+ # APP_NAME="`ls $(agent.builddirectory)/VSCode-darwin | head -n 1`"
31
32
# yarn smoketest -- --build "$(agent.builddirectory)/VSCode-darwin/$APP_NAME"
32
- name : test
33
+ displayName : Run unit tests
33
34
34
35
- script : |
35
36
set -e
36
- # archive the unsigned build
37
- pushd ../VSCode-darwin && zip -r -X -y ../VSCode-darwin-unsigned.zip * && popd
37
+ pushd ../VSCode-darwin && zip -r -X -y ../VSCode-darwin.zip * && popd
38
+ displayName : Archive build
38
39
39
- # publish the unsigned build
40
+ - task : SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
41
+ inputs :
42
+ ConnectedServiceName : ' ESRP CodeSign'
43
+ FolderPath : ' $(agent.builddirectory)'
44
+ Pattern : ' VSCode-darwin.zip'
45
+ signConfigType : inlineSignParams
46
+ inlineOperation : |
47
+ [
48
+ {
49
+ "keyCode": "CP-401337-Apple",
50
+ "operationSetCode": "MacAppDeveloperSign",
51
+ "parameters": [ ],
52
+ "toolName": "sign",
53
+ "toolVersion": "1.0"
54
+ }
55
+ ]
56
+ SessionTimeout : 120
57
+ displayName : Codesign
58
+
59
+ - script : |
60
+ set -e
61
+
62
+ # remove pkg from archive
63
+ zip -d ../VSCode-darwin.zip "*.pkg"
64
+
65
+ # publish the build
40
66
PACKAGEJSON=`ls ../VSCode-darwin/*.app/Contents/Resources/app/package.json`
41
67
VERSION=`node -p "require(\"$PACKAGEJSON\").version"`
42
68
AZURE_DOCUMENTDB_MASTERKEY="$(AZURE_DOCUMENTDB_MASTERKEY)" \
@@ -45,19 +71,16 @@ steps:
45
71
node build/tfs/common/publish.js \
46
72
"$(VSCODE_QUALITY)" \
47
73
darwin \
48
- archive-unsigned \
49
- "VSCode-darwin-$(VSCODE_QUALITY)-unsigned .zip" \
74
+ archive \
75
+ "VSCode-darwin-$(VSCODE_QUALITY).zip" \
50
76
$VERSION \
51
- false \
52
- ../VSCode-darwin-unsigned .zip
77
+ true \
78
+ ../VSCode-darwin.zip
53
79
54
80
# publish hockeyapp symbols
55
81
node build/tfs/common/symbols.js "$(VSCODE_MIXIN_PASSWORD)" "$(VSCODE_HOCKEYAPP_TOKEN)" "$(VSCODE_ARCH)" "$(VSCODE_HOCKEYAPP_ID_MACOS)"
56
82
57
- # enqueue the unsigned build
58
- AZURE_DOCUMENTDB_MASTERKEY="$(AZURE_DOCUMENTDB_MASTERKEY)" \
59
- AZURE_STORAGE_ACCESS_KEY_2="$(AZURE_STORAGE_ACCESS_KEY_2)" \
60
- node build/tfs/darwin/enqueue.js "$(VSCODE_QUALITY)"
61
-
83
+ # upload configuration
62
84
AZURE_STORAGE_ACCESS_KEY="$(AZURE_STORAGE_ACCESS_KEY)" \
63
- npm run gulp -- upload-vscode-configuration
85
+ yarn gulp -- upload-vscode-configuration
86
+ displayName : Publish
0 commit comments