File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,12 @@ $filesForMacPackage = @(
66
66
' runcommandonset'
67
67
)
68
68
69
+ # the list of files other than the binaries which need to be executable
70
+ $filesToBeExecutable = @ (
71
+ ' apt.dsc.resource.sh' ,
72
+ ' brew.dsc.resource.sh'
73
+ )
74
+
69
75
function Find-LinkExe {
70
76
try {
71
77
# this helper may not be needed anymore, but keeping in case the install doesn't work for everyone
@@ -164,6 +170,7 @@ if (!$SkipBuild) {
164
170
$windows_projects = @ (" pal" , " registry" , " reboot_pending" , " wmi-adapter" )
165
171
166
172
$macOS_projects = @ (" resources/brew" )
173
+ $linux_projects = @ (" resources/apt" )
167
174
168
175
# projects are in dependency order
169
176
$projects = @ (
@@ -194,6 +201,10 @@ if (!$SkipBuild) {
194
201
$projects += $macOS_projects
195
202
}
196
203
204
+ if ($IsLinux ) {
205
+ $projects += $linux_projects
206
+ }
207
+
197
208
$failed = $false
198
209
foreach ($project in $projects ) {
199
210
# # Build format_json
@@ -257,6 +268,16 @@ if (!$SkipBuild) {
257
268
258
269
Copy-Item " *.dsc.resource.json" $target - Force - ErrorAction Ignore
259
270
271
+ # be sure that the files that should be executable are executable
272
+ if ($IsLinux -or $IsMacOS ) {
273
+ foreach ($exeFile in $filesToBeExecutable ) {
274
+ $exePath = " $target /$exeFile "
275
+ if (test-path $exePath ) {
276
+ chmod + x $exePath
277
+ }
278
+ }
279
+ }
280
+
260
281
} finally {
261
282
Pop-Location
262
283
}
You can’t perform that action at this time.
0 commit comments