Skip to content

Commit 01a9ab3

Browse files
committed
Set commit based on code-server instead of VS Code
This ensures it'll be different for each build, otherwise it would also be the same as long as the VS Code version is the same.
1 parent 7e794bd commit 01a9ab3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/tasks.bash

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ function prepend-loader() {
5757
function build-code-server() {
5858
copy-server
5959
local min=""
60+
export BUILD_SOURCEVERSION
61+
BUILD_SOURCEVERSION=$(node -p "require('${sourcePath}/build/lib/git.js').getVersion('${rootPath}')")
6062
if [[ -n "${minify}" ]] ; then
6163
min="-min"
6264
yarn gulp minify-vscode --max-old-space-size=32384

0 commit comments

Comments
 (0)