Skip to content

Commit ecf9a9f

Browse files
committed
code.sh: add datafolder
1 parent 0a7ec36 commit ecf9a9f

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

build/gulpfile.vscode.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ function packageTask(platform, arch, sourceFolderName, destinationFolderName, op
397397
.pipe(replace('@@VERSION@@', version))
398398
.pipe(replace('@@COMMIT@@', commit))
399399
.pipe(replace('@@APPNAME@@', product.applicationName))
400+
.pipe(replace('@@DATAFOLDER@@', product.dataFolderName))
400401
.pipe(replace('@@QUALITY@@', quality))
401402
.pipe(rename(function (f) { f.basename = product.applicationName; f.extname = ''; })));
402403

resources/win32/bin/code.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ COMMIT="@@COMMIT@@"
66
APP_NAME="@@APPNAME@@"
77
QUALITY="@@QUALITY@@"
88
NAME="@@NAME@@"
9+
DATAFOLDER="@@DATAFOLDER@@"
910
VSCODE_PATH="$(dirname "$(dirname "$(realpath "$0")")")"
1011
ELECTRON="$VSCODE_PATH/$NAME.exe"
1112
if grep -qi Microsoft /proc/version; then
@@ -26,7 +27,7 @@ if grep -qi Microsoft /proc/version; then
2627
# replace \r\n with \n in WSL_EXT_WLOC
2728
WSL_CODE=$(wslpath -u "${WSL_EXT_WLOC%%[[:cntrl:]]}")/scripts/wslCode.sh
2829
WIN_CODE_CMD=$(wslpath -w "$VSCODE_PATH/bin/$APP_NAME.cmd")
29-
"$WSL_CODE" $COMMIT $QUALITY "$WIN_CODE_CMD" "$APP_NAME" "$@"
30+
"$WSL_CODE" "$COMMIT" "$QUALITY" "$WIN_CODE_CMD" "$APP_NAME" "$DATAFOLDER" "$@"
3031
exit $?
3132
else
3233
CLI=$(wslpath -m "$VSCODE_PATH/resources/app/out/cli.js")

0 commit comments

Comments
 (0)