@@ -9,8 +9,51 @@ MINIFY=${MINIFY-true}
9
9
main () {
10
10
cd " $( dirname " ${0} " ) /../.."
11
11
12
+ source ./ci/lib.sh
13
+
12
14
cd lib/vscode
13
15
16
+ # Add the commit, date, our name, links, and enable telemetry (this just makes
17
+ # telemetry available; telemetry can still be disabled by flag or setting).
18
+ # This needs to be done before building as Code will read this file and embed
19
+ # it into the client-side code.
20
+ cp product.json product.original.json
21
+ jq --slurp ' .[0] * .[1]' product.original.json <(
22
+ cat << EOF
23
+ {
24
+ "enableTelemetry": true,
25
+ "commit": "$( git rev-parse HEAD) ",
26
+ "quality": "stable",
27
+ "date": $( jq -n ' now | todate' ) ,
28
+ "codeServerVersion": "$VERSION ",
29
+ "nameShort": "code-server",
30
+ "nameLong": "code-server",
31
+ "applicationName": "code-server",
32
+ "dataFolderName": ".code-server",
33
+ "win32MutexName": "codeserver",
34
+ "licenseUrl": "https://github.com/coder/code-server/blob/main/LICENSE",
35
+ "win32DirName": "code-server",
36
+ "win32NameVersion": "code-server",
37
+ "win32AppUserModelId": "coder.code-server",
38
+ "win32ShellNameShort": "c&ode-server",
39
+ "darwinBundleIdentifier": "com.coder.code.server",
40
+ "linuxIconName": "com.coder.code.server",
41
+ "reportIssueUrl": "https://github.com/coder/code-server/issues/new",
42
+ "documentationUrl": "https://go.microsoft.com/fwlink/?LinkID=533484#vscode",
43
+ "keyboardShortcutsUrlMac": "https://go.microsoft.com/fwlink/?linkid=832143",
44
+ "keyboardShortcutsUrlLinux": "https://go.microsoft.com/fwlink/?linkid=832144",
45
+ "keyboardShortcutsUrlWin": "https://go.microsoft.com/fwlink/?linkid=832145",
46
+ "introductoryVideosUrl": "https://go.microsoft.com/fwlink/?linkid=832146",
47
+ "tipsAndTricksUrl": "https://go.microsoft.com/fwlink/?linkid=852118",
48
+ "newsletterSignupUrl": "https://www.research.net/r/vsc-newsletter",
49
+ "linkProtectionTrustedDomains": [
50
+ "https://open-vsx.org"
51
+ ]
52
+ }
53
+ EOF
54
+ ) > product.json
55
+ rm product.original.json
56
+
14
57
# Any platform works since we have our own packaging step (for now).
15
58
yarn gulp " vscode-reh-web-linux-x64${MINIFY: +-min} "
16
59
}
0 commit comments