-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathbuild.ps1
30 lines (22 loc) · 941 Bytes
/
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
30
param($Configuration = 'Debug')
$Path = Join-Path $PSScriptRoot "CodeConversion"
Remove-Item -Path $Path -Recurse -Force -ErrorAction SilentlyContinue
Push-Location $PSScriptRoot
New-Item -Path $Path -ItemType Directory
@("win7-x64", 'linux-x64') | ForEach-Object {
dotnet publish -c $Configuration -o (Join-Path $Path $_) -r $_
}
Copy-Item "CodeConversion.psm1" $Path
$Parameters = @{
Path = "$Path\CodeConversion.psd1"
Author = 'Adam Driscoll'
CompanyName = 'Ironman Software'
ModuleVersion = '2.0.2'
Description = 'Convert between PowerShell and C#'
RootModule = "CodeConversion.psm1"
FunctionsToExport = @("Invoke-CodeConversion")
ProjectUri = 'https://github.com/ironmansoftware/code-conversion'
LicenseUri = 'https://github.com/ironmansoftware/code-conversion/blob/main/LICENSE'
}
New-ModuleManifest @Parameters
Pop-Location