mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
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:
1 parent
c0aac111d3
commit
49d297c410
1 file changed
+6
-4
+6
-4
@@ -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/",
|
||||
|
||||
Reference in new issue
Block a user