Skip to content

Commit ddcbdb1

Browse files
committed
fixup! fix: modify product.json before building
1 parent 387b4de commit ddcbdb1

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

ci/build/build-vscode.sh

+7-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ main() {
1717
# telemetry available; telemetry can still be disabled by flag or setting).
1818
# This needs to be done before building as Code will read this file and embed
1919
# it into the client-side code.
20-
cp product.json product.original.json
20+
git checkout product.json # Reset in case the script exited early.
21+
cp product.json product.original.json # Since jq has no inline edit.
2122
jq --slurp '.[0] * .[1]' product.original.json <(
2223
cat << EOF
2324
{
@@ -52,10 +53,14 @@ main() {
5253
}
5354
EOF
5455
) > product.json
55-
rm product.original.json
5656

5757
# Any platform works since we have our own packaging step (for now).
5858
yarn gulp "vscode-reh-web-linux-x64${MINIFY:+-min}"
59+
60+
# Reset so if you develop after building you will not be stuck with the wrong
61+
# commit (the dev client will use `oss-dev` but the dev server will still use
62+
# product.json which will have `stable-$commit`).
63+
git checkout product.json
5964
}
6065

6166
main "$@"

0 commit comments

Comments
 (0)