@@ -70,6 +70,25 @@ functions:
7070 ${npm|npm} install
7171 ${npm|npm} install
7272
73+ # For Windows: retrieve a fake "signtool.exe" which proxies to notary-service,
74+ # and remove the real one from our path. Must run after "npm install"
75+ " fetch signtool" : &fetch_signtool
76+ command : shell.exec
77+ build_variants :
78+ - windows-64
79+ params :
80+ working_dir : src
81+ script : |
82+ curl -fs \
83+ -o "signtool.exe" \
84+ --url "https://s3.amazonaws.com/boxes.10gen.com/build/signtool.exe"
85+ rm node_modules/electron-installer-squirrel-windows/vendor/signtool.exe
86+
87+ # Environment variables set for use by notary-service signtool.exe on Windows:
88+ # NOTARY_URL, NOTARY_AUTH_TOKEN, NOTARY_SIGNING_KEY, NOTARY_SIGNING_COMMENT
89+ #
90+ # SIGNTOOL_PARAMS is set to a non-empty value to activate signing logic in Squirrel.Windows
91+ #
7392 " build" :
7493 command : shell.exec
7594 params :
@@ -78,6 +97,11 @@ functions:
7897 set -ev
7998 export PATH="${node_path}:$PATH"
8099 export CI=1 EVERGREEN=1
100+ export NOTARY_URL="http://notary-service.build.10gen.cc:5000"
101+ export NOTARY_AUTH_TOKEN="${signing_auth_token}"
102+ export NOTARY_SIGNING_KEY="${signing_key_name}"
103+ export NOTARY_SIGNING_COMMENT="Evergreen project mongodb/compass ${revision} - ${build_variant} - ${branch_name}"
104+ export SIGNTOOL_PARAMS="yes"
81105 test -n "${add_environment|}" && export ${add_environment|}
82106 ${npm|npm} run ci
83107 ${npm|npm} run test
@@ -90,7 +114,7 @@ functions:
90114 aws_key : ${aws_key}
91115 aws_secret : ${aws_secret}
92116 local_file : " src/dist/${installer_filename}"
93- remote_file : " mongodbjs-scout -master/${build_variant}/${revision}/${installer_filename}"
117+ remote_file : " mongodb-compass -master/${build_variant}/${revision}/${installer_filename}"
94118 bucket : mciuploads
95119 permissions : public-read
96120 content_type : ${installer_content_type|application/octet-stream}
@@ -128,6 +152,7 @@ tasks:
128152 - func : " fetch source"
129153 - func : " fetch npm tarball"
130154 - func : " npm install"
155+ - func : " fetch signtool"
131156 - func : " build"
132157 - func : " save release"
133158
0 commit comments