File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ main() {
17
17
# telemetry available; telemetry can still be disabled by flag or setting).
18
18
# This needs to be done before building as Code will read this file and embed
19
19
# 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.
21
22
jq --slurp ' .[0] * .[1]' product.original.json <(
22
23
cat << EOF
23
24
{
@@ -52,10 +53,14 @@ main() {
52
53
}
53
54
EOF
54
55
) > product.json
55
- rm product.original.json
56
56
57
57
# Any platform works since we have our own packaging step (for now).
58
58
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
59
64
}
60
65
61
66
main " $@ "
You can’t perform that action at this time.
0 commit comments