From 130e8c116c0dd5152b94bf7a0536605564fe0788 Mon Sep 17 00:00:00 2001 From: NiuTao Date: Fri, 26 Apr 2024 10:36:09 +0800 Subject: [PATCH 1/2] fix: devkit install dir error --- scripts/install_devkit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install_devkit.sh b/scripts/install_devkit.sh index ec41a4a..78e9e1f 100644 --- a/scripts/install_devkit.sh +++ b/scripts/install_devkit.sh @@ -38,7 +38,7 @@ function install_plugins() cp "${file}" "${ROOTFS}/${plugin}" display_alert "Installing " "${plugin}" "info" mount_chroot ${ROOTFS} - run_on_rootfs "code --no-sandbox --user-data-dir /home/${execute_user} --install-extension ${plugin}" + run_on_rootfs "code --no-sandbox --user-data-dir /home/${execute_user} --extensions-dir /home/${execute_user}/.vscode/extensions --install-extension ${plugin}" umount_chroot ${ROOTFS} rm ${ROOTFS}/${plugin} else -- Gitee From ef4f9b01f39860e6aa2717e0688cdd4043a8bd10 Mon Sep 17 00:00:00 2001 From: NiuTao Date: Fri, 26 Apr 2024 11:34:38 +0800 Subject: [PATCH 2/2] fix: fix devkit install error --- scripts/devkit/deploy_devkit.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/devkit/deploy_devkit.sh b/scripts/devkit/deploy_devkit.sh index 723c46f..12c95f0 100644 --- a/scripts/devkit/deploy_devkit.sh +++ b/scripts/devkit/deploy_devkit.sh @@ -7,13 +7,13 @@ cd $devkit_dir_path spawn $devkit_dir_path/install_devkit.sh expect { - "The preceding dependencies will be automatically installed with DevKit. If source installation packages are available, add the installation paths to the LD_LIBRARY_PATH or PATH environment variable. Do you allow automatic installation of these dependencies?" { send "y\r"; exp_continue } - "Enter the sequence number of the tool access mode for your installation (default: 1)" { send "\r"; exp_continue } - "Enter the sequence number of the tool to be installed (default: 1)" { send "2\r"; exp_continue } - "Enter the serial number of the plug-in that can be installed. Format: a single digit or 'digits+commas', for example, (1 or 1,2 or 1,2,3). To exit the plug-in installation, enter no" { send "1,2,3,4,5\r"; exp_continue } - "Do you want to authorize the tool to handle the items failed in the installation environment check?" { send "Y\r"; exp_continue } - "Enter the installation path. (The default path is /opt)" { send "\r"; exp_continue } - "Please enter the installation port (default: 8086)" { send "\r"; exp_continue } + "The preceding dependencies will be automatically installed with DevKit. If source installation packages are available, add the installation paths to the LD_LIBRARY_PATH or PATH environment variable. Do you allow automatic installation of these dependencies?" { send "y\r\n"; exp_continue } + "Enter the sequence number of the tool access mode for your installation (default: 1)" { send "\r\n"; exp_continue } + "Enter the sequence number of the tool to be installed (default: 1)" { send "2\r\n"; exp_continue } + "Enter the serial number of the plug-in that can be installed. Format: a single digit or 'digits+commas', for example, (1 or 1,2 or 1,2,3). To exit the plug-in installation, enter no" { send "1,2,3,4,5\r\n"; exp_continue } + "Do you want to authorize the tool to handle the items failed in the installation environment check?" { send "Y\r\n"; exp_continue } + "Enter the installation path. (The default path is /opt)" { send "\r\n"; exp_continue } + "Please enter the installation port (default: 8086)" { send "\r\n"; exp_continue } "please use the mapping IP" { exit 0 } eof {} } -- Gitee