Skip to content

Commit 00705fd

Browse files
committed
Tweak bin chmod
Do it during the copy instead of the post install link.
1 parent ed37567 commit 00705fd

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

ci/build/build-vscode.sh

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ copy-bin-script() {
2727
# Fix Node path on Windows.
2828
sed -i.bak 's/^set ROOT_DIR=\(.*\)$/set ROOT_DIR=%~dp0..\\..\\..\\..\r\nset VSROOT_DIR=\1/g' "$dest"
2929
sed -i.bak 's/%ROOT_DIR%\\out/%VSROOT_DIR%\\out/g' "$dest"
30+
31+
chmod +x "$dest"
3032
}
3133

3234
main() {

ci/build/npm-postinstall.sh

+1-5
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,10 @@ symlink_bin_script() {
5454
dest="$3"
5555
ext="${4-}"
5656
case $OS in
57-
windows)
58-
ext=".cmd"
59-
symlink "$source.cmd" "$dest$ext"
60-
;;
57+
windows) symlink "$source.cmd" "$dest.cmd" ;;
6158
darwin | macos) symlink "$source-darwin.sh" "$dest$ext" ;;
6259
*) symlink "$source-linux.sh" "$dest$ext" ;;
6360
esac
64-
chmod +x "$dest$ext"
6561
cd "$oldpwd"
6662
}
6763

0 commit comments

Comments
 (0)