You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git-bash's ln command actually just does a copy, which is super slow. Worse, the command fails when the "link" folder already exists, even though I use ln --force. So use the Windows native mklink command instead.
# Create a symbolic link so that the Arduino IDE can always be referenced by the user from the same path no matter which version is being used.
449
+
if [[ "$OSTYPE"=="cygwin" ]] || [[ "$OSTYPE"=="msys" ]];then
450
+
# git-bash's ln just does a copy instead of making a symlink, which takes forever and fails when the target folder exists (despite --force), which takes forever.
451
+
# Therefore, use the native Windows command mklink to create a directory junction instead.
452
+
# Using a directory junction instead of symlink because supposedly a symlink requires admin privileges.
453
+
454
+
# Windows doesn't seem to provide any way to overwrite directory junctions
455
+
if [[ -d"${ARDUINO_CI_SCRIPT_APPLICATION_FOLDER}/${ARDUINO_CI_SCRIPT_IDE_INSTALLATION_FOLDER}" ]];then
0 commit comments