From 49d297c4109783eecdc5e715baa81b8fefb4930f Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Thu, 11 Aug 2016 11:34:58 -0700 Subject: [PATCH] Fix permissions of package files The DLLs should not be marked executable on Unix. Also remove deb-build-depends as the `dotnet` package is not yet universally available. --- build.psm1 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/build.psm1 b/build.psm1 index a31a812a1..041b4672a 100644 --- a/build.psm1 +++ b/build.psm1 @@ -994,7 +994,12 @@ It consists of a cross-platform command-line shell and associated scripting lang $ManFile = Join-Path "/usr/local/share/man/man1" (Split-Path -Leaf $GzipFile) # Change permissions for packaging - Start-NativeExecution { chmod -R go=u $Staging $GzipFile } + Start-NativeExecution { + find $Staging -type d | xargs chmod 755 + find $Staging -type f | xargs chmod 644 + chmod 644 $GzipFile + chmod 755 "$Staging/$Name" # only the executable should be executable + } $libunwind = switch ($Type) { "deb" { "libunwind8" } @@ -1020,9 +1025,6 @@ It consists of a cross-platform command-line shell and associated scripting lang "--rpm-os", "linux", "--depends", $libunwind, "--depends", $libicu, - "--deb-build-depends", "dotnet", - "--deb-build-depends", "cmake", - "--deb-build-depends", "g++", "-t", $Type, "-s", "dir", "$Staging/=$Destination/",