From ecf9a9f7641b05a39765e2c73c813adfadff7740 Mon Sep 17 00:00:00 2001 From: Martin Aeschlimann Date: Wed, 29 May 2019 23:18:39 +0200 Subject: [PATCH] code.sh: add datafolder --- build/gulpfile.vscode.js | 1 + resources/win32/bin/code.sh | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/build/gulpfile.vscode.js b/build/gulpfile.vscode.js index 57ca292ef73..91dec59636d 100644 --- a/build/gulpfile.vscode.js +++ b/build/gulpfile.vscode.js @@ -397,6 +397,7 @@ function packageTask(platform, arch, sourceFolderName, destinationFolderName, op .pipe(replace('@@VERSION@@', version)) .pipe(replace('@@COMMIT@@', commit)) .pipe(replace('@@APPNAME@@', product.applicationName)) + .pipe(replace('@@DATAFOLDER@@', product.dataFolderName)) .pipe(replace('@@QUALITY@@', quality)) .pipe(rename(function (f) { f.basename = product.applicationName; f.extname = ''; }))); diff --git a/resources/win32/bin/code.sh b/resources/win32/bin/code.sh index 8f3404432ef..b1a0f7e4f3e 100644 --- a/resources/win32/bin/code.sh +++ b/resources/win32/bin/code.sh @@ -6,6 +6,7 @@ COMMIT="@@COMMIT@@" APP_NAME="@@APPNAME@@" QUALITY="@@QUALITY@@" NAME="@@NAME@@" +DATAFOLDER="@@DATAFOLDER@@" VSCODE_PATH="$(dirname "$(dirname "$(realpath "$0")")")" ELECTRON="$VSCODE_PATH/$NAME.exe" if grep -qi Microsoft /proc/version; then @@ -26,7 +27,7 @@ if grep -qi Microsoft /proc/version; then # replace \r\n with \n in WSL_EXT_WLOC WSL_CODE=$(wslpath -u "${WSL_EXT_WLOC%%[[:cntrl:]]}")/scripts/wslCode.sh WIN_CODE_CMD=$(wslpath -w "$VSCODE_PATH/bin/$APP_NAME.cmd") - "$WSL_CODE" $COMMIT $QUALITY "$WIN_CODE_CMD" "$APP_NAME" "$@" + "$WSL_CODE" "$COMMIT" "$QUALITY" "$WIN_CODE_CMD" "$APP_NAME" "$DATAFOLDER" "$@" exit $? else CLI=$(wslpath -m "$VSCODE_PATH/resources/app/out/cli.js") -- GitLab