-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.ps1
29 lines (25 loc) · 1.15 KB
/
build.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
param(
[Parameter(Mandatory = $true)]
[string]$Version
)
# Remove the 'v' from the version number if its present
$version = $version -replace "v", ""
$manifestParams = @{
"ModuleVersion" = $version
"Path" = "./ps-arch-wsl/ps-arch-wsl.psd1"
"Author" = "Scott McKendry"
"CompanyName" = "www.scottmckendry.tech"
"RootModule" = "ps-arch-wsl.psm1"
"CompatiblePSEditions" = @("Desktop", "Core")
"FunctionsToExport" = @("Install-ArchWSL", "Uninstall-ArchWSL")
"Description" = "Install Arch Linux on Windows the easy way."
"ProjectUri" = "https://github.com/scottmckendry/ps-arch-wsl"
"LicenseUri" = "https://github.com/scottmckendry/ps-arch-wsl/blob/main/LICENSE"
"PowerShellVersion" = "5.1"
"PassThru" = $true
}
# Copy the README.md file to the module directory
Copy-Item -Path "./README.md" -Destination "./ps-arch-wsl/README.md" -Force -ErrorAction SilentlyContinue
# Create the module manifest
Remove-Item -Path "./ps-arch-wsl/ps-arch-wsl.psd1" -Force -ErrorAction SilentlyContinue
New-ModuleManifest @manifestParams