Skip to content

Commit 90541a7

Browse files
committed
Add product.json to build process
This way we do not have to patch it.
1 parent 688ae31 commit 90541a7

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

ci/build/build-release.sh

+26-3
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,39 @@ bundle_vscode() {
8989
rsync "$VSCODE_SRC_PATH/resources/server/bin/helpers/" "$VSCODE_OUT_PATH/bin/helpers"
9090
chmod +x "$VSCODE_OUT_PATH/bin/helpers/browser.sh"
9191

92-
# Add the commit and date and enable telemetry. This just makes telemetry
93-
# available; telemetry can still be disabled by flag or setting.
92+
# Add the commit, date, our name, links, and enable telemetry. This just makes
93+
# telemetry available; telemetry can still be disabled by flag or setting.
9494
jq --slurp '.[0] * .[1]' "$VSCODE_SRC_PATH/product.json" <(
9595
cat << EOF
9696
{
9797
"enableTelemetry": true,
9898
"commit": "$(cd "$VSCODE_SRC_PATH" && git rev-parse HEAD)",
9999
"quality": "stable",
100100
"date": $(jq -n 'now | todate'),
101-
"codeServerVersion": "$VERSION"
101+
"codeServerVersion": "$VERSION",
102+
"nameShort": "code-server",
103+
"nameLong": "code-server",
104+
"applicationName": "code-server",
105+
"dataFolderName": ".code-server",
106+
"win32MutexName": "codeserver",
107+
"licenseUrl": "https://github.com/cdr/code-server/blob/main/LICENSE.txt",
108+
"win32DirName": "code-server",
109+
"win32NameVersion": "code-server",
110+
"win32AppUserModelId": "coder.code-server",
111+
"win32ShellNameShort": "c&ode-server",
112+
"darwinBundleIdentifier": "com.coder.code.server",
113+
"linuxIconName": "com.coder.code.server",
114+
"reportIssueUrl": "https://github.com/cdr/code-server/issues/new",
115+
"documentationUrl": "https://go.microsoft.com/fwlink/?LinkID=533484#vscode",
116+
"keyboardShortcutsUrlMac": "https://go.microsoft.com/fwlink/?linkid=832143",
117+
"keyboardShortcutsUrlLinux": "https://go.microsoft.com/fwlink/?linkid=832144",
118+
"keyboardShortcutsUrlWin": "https://go.microsoft.com/fwlink/?linkid=832145",
119+
"introductoryVideosUrl": "https://go.microsoft.com/fwlink/?linkid=832146",
120+
"tipsAndTricksUrl": "https://go.microsoft.com/fwlink/?linkid=852118",
121+
"newsletterSignupUrl": "https://www.research.net/r/vsc-newsletter",
122+
"linkProtectionTrustedDomains": [
123+
"https://open-vsx.org"
124+
]
102125
}
103126
EOF
104127
) > "$VSCODE_OUT_PATH/product.json"

0 commit comments

Comments
 (0)