mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Include license during build
Rather than including it only at packaging, we should include this license as part of `dotnet build` and `dotnet publish`.
This commit is contained in:
@@ -840,9 +840,6 @@ It consists of a cross-platform command-line shell and associated scripting lang
|
||||
$Source = Split-Path -Parent (Get-PSOutput -Options (New-PSOptions -Publish))
|
||||
Write-Verbose "Packaging $Source"
|
||||
|
||||
Write-Verbose "Copy license and third party notice to $Source"
|
||||
Copy-Item "$PSScriptRoot\LICENSE.txt" "$Source" -Force -ErrorAction SilentlyContinue
|
||||
|
||||
if ($IsWindows) {
|
||||
# Product Guid needs to be unique for every PowerShell version to allow SxS install
|
||||
$productGuid = [guid]::NewGuid()
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
"include": [
|
||||
"*.so",
|
||||
"*.dylib",
|
||||
"../../LICENSE.txt",
|
||||
"../../powershell.version"
|
||||
]
|
||||
},
|
||||
@@ -46,6 +47,7 @@
|
||||
"include": [
|
||||
"*.so",
|
||||
"*.dylib",
|
||||
"../../LICENSE.txt",
|
||||
"../../powershell.version"
|
||||
]
|
||||
},
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
}
|
||||
},
|
||||
"include": [
|
||||
"../../LICENSE.txt",
|
||||
"../../powershell.version"
|
||||
]
|
||||
},
|
||||
@@ -47,6 +48,7 @@
|
||||
"pwrshplugin.dll",
|
||||
"pwrshplugin.pdb",
|
||||
"Install-PowerShellRemoting.ps1",
|
||||
"../../LICENSE.txt",
|
||||
"../../powershell.version"
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user