-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.ps1
22 lines (20 loc) · 1.06 KB
/
build.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
param(
[string]$version = (Get-Date).ToString("yyyy.MM.dd.HHmm")
)
$manifestParams = @{
"ModuleVersion" = $version
"Path" = "./ps-color-scripts/ps-color-scripts.psd1"
"Author" = "Scott McKendry"
"CompanyName" = "www.scottmckendry.tech"
"RootModule" = "ps-color-scripts.psm1"
"CompatiblePSEditions" = @("Desktop", "Core")
"FunctionsToExport" = @("Show-ColorScript")
"Description" = "An almost like for like port of Derek Taylor's Popular shell-color-scripts package for PowerShell."
"ProjectUri" = "https://github.com/scottmckendry/ps-color-scripts"
"LicenseUri" = "https://github.com/scottmckendry/ps-color-scripts/blob/main/LICENSE"
"PowerShellVersion" = "5.1"
"PassThru" = $true
}
Copy-Item -Path "./README.md" -Destination "./ps-color-scripts/README.md" -Force -ErrorAction SilentlyContinue
Remove-Item -Path "./ps-color-scripts/ps-color-scripts.psd1" -Force -ErrorAction SilentlyContinue
New-ModuleManifest @manifestParams