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.
This commit is contained in:
Andrew Schwartzmeyer committed 2016-08-11 13:38:54 -07:00
1 parent c0aac111d3
commit 49d297c410
1 file changed
+6 -4
+6 -4
View File
@@ -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/",