File tree 4 files changed +4
-29
lines changed
4 files changed +4
-29
lines changed Original file line number Diff line number Diff line change 49
49
if [[ -n " ${BAZEL_OUTPUTS_DSYM:- } " ]]; then
50
50
cd " ${BAZEL_OUT%/* } "
51
51
52
- if [[ " $( sw_vers -productVersion) " == " 15.4.0" ]]; then
53
- # 15.4.0's `rsync` has a bug that requires the src to have write
54
- # permissions. We normally shouldn't do this as it modifies the bazel output
55
- # base, so we limit this to only macOS 15.4.0.
56
- # shellcheck disable=SC2046
57
- chmod -R +w $( xargs -n1 <<< " $BAZEL_OUTPUTS_DSYM" )
58
- fi
59
-
60
52
# shellcheck disable=SC2046
61
53
rsync \
62
54
--copy-links \
@@ -65,6 +57,7 @@ if [[ -n "${BAZEL_OUTPUTS_DSYM:-}" ]]; then
65
57
--archive \
66
58
--delete \
67
59
${exclude_list: +--exclude-from=" $exclude_list " } \
60
+ --perms \
68
61
--chmod=u+w \
69
62
--out-format=" %n%L" \
70
63
$( xargs -n1 <<< " $BAZEL_OUTPUTS_DSYM" ) \
Original file line number Diff line number Diff line change @@ -30,20 +30,14 @@ if [[ "$ACTION" != indexbuild ]]; then
30
30
# rpaths to work
31
31
ln -sfh " $PWD /$BAZEL_OUTPUTS_PRODUCT_BASENAME " " $TARGET_BUILD_DIR /$PRODUCT_NAME "
32
32
else
33
- if [[ " $( sw_vers -productVersion) " == " 15.4.0" ]]; then
34
- # 15.4.0's `rsync` has a bug that requires the src to have write
35
- # permissions. We normally shouldn't do this as it modifies the bazel
36
- # output base, so we limit this to only macOS 15.4.0.
37
- chmod -R +w " $BAZEL_OUTPUTS_PRODUCT_BASENAME "
38
- fi
39
-
40
33
# Product is a bundle
41
34
rsync \
42
35
--copy-links \
43
36
--recursive \
44
37
--times \
45
38
--delete \
46
39
${exclude_list: +--exclude-from=" $exclude_list " } \
40
+ --perms \
47
41
--chmod=u+w \
48
42
--out-format=" %n%L" \
49
43
" $BAZEL_OUTPUTS_PRODUCT_BASENAME " \
Original file line number Diff line number Diff line change @@ -74,16 +74,10 @@ dest_dir="$(dirname "${dest}")"
74
74
# Copy over `xcschemes`
75
75
readonly dest_xcschemes=" $dest /xcshareddata/xcschemes"
76
76
77
- if [[ " $( sw_vers -productVersion) " == " 15.4.0" ]]; then
78
- # 15.4.0's `rsync` has a bug that requires the src to have write permissions.
79
- # We normally shouldn't do this as it modifies the bazel output base, so we
80
- # limit this to only macOS 15.4.0.
81
- chmod -R +w " $src_xcschemes "
82
- fi
83
-
84
77
mkdir -p " $dest_xcschemes "
85
78
rsync \
86
79
--archive \
80
+ --perms \
87
81
--chmod=u+w,F-x \
88
82
--delete \
89
83
" $src_xcschemes " " $dest_xcschemes /"
Original file line number Diff line number Diff line change 136
136
137
137
# Sync over the project, changing the permissions to be writable
138
138
139
- if [[ " $( sw_vers -productVersion) " == " 15.4.0" ]]; then
140
- # 15.4.0's `rsync` has a bug that requires the src to have write permissions.
141
- # We normally shouldn't do this as it modifies the bazel output base, so we
142
- # limit this to only macOS 15.4.0.
143
- chmod -R +w " $src "
144
- fi
145
-
146
139
# Don't touch project.xcworkspace as that will make Xcode prompt
147
140
rsync \
148
141
--archive \
149
142
--copy-links \
143
+ --perms \
150
144
--chmod=u+w,F-x \
151
145
--exclude=project.xcworkspace \
152
146
--exclude=rules_xcodeproj/bazel \
You can’t perform that action at this time.
0 commit comments