-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathNuspec4ConvertForm.ps1
49 lines (43 loc) · 1.85 KB
/
Nuspec4ConvertForm.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
if(! (Test-Path variable:ConvertFormVcs))
{ throw "The project configuration is required, see the 'ConvertForm_ProjectProfile.ps1' script." }
Push-Location "$ConvertFormVcs\Tools"
try {
.\Build.ps1
Import-Module PSNuspec
}
Finally {
Pop-Location
}
$ModuleVersion=(Import-ManifestData "$ConvertFormDelivery\ConvertForm.psd1").ModuleVersion
$Result=nuspec 'ConvertForm' $ModuleVersion {
properties @{
Authors='Dardenne Laurent'
Owners='Dardenne Laurent'
Description=@'
Converting a Winform file (xxx.Designer.cs) to a PowerShell script .ps1.
'@
title='ConvertForm module'
summary='Converting a Winform file (xxx.Designer.cs) to a PowerShell script .ps1.'
copyright='Copyleft'
language='fr-FR'
licenseUrl='https://creativecommons.org/licenses/by-nc-sa/4.0/'
projectUrl='https://github.com/LaurentDardenne/ConvertForm'
#iconUrl='https://github.com/LaurentDardenne/Template/blob/master/icon/ConvertForm.png'
releaseNotes="$(Get-Content "$ConvertFormDelivery\CHANGELOG.md" -raw)"
tags='Form Winform Convertion'
}
files {
file -src "$ConvertFormDelivery\ConvertForm.psd1"
file -src "$ConvertFormDelivery\ConvertForm.psm1"
file -src "$ConvertFormDelivery\Transform.psm1"
file -src "$ConvertFormDelivery\Resgen.Exe"
file -src "$ConvertFormDelivery\Demo\" -target 'Demo\'
file -src "$ConvertFormDelivery\Tools\Add-Header.ps1" -target 'Tools\Add-Header.ps1'
file -src "$ConvertFormDelivery\fr-FR\" -target 'fr-FR\'
file -src "$ConvertFormDelivery\ConvertFormLocalizedData.psd1"
file -src "$ConvertFormDelivery\TransformLocalizedData.psd1"
file -src "$ConvertFormDelivery\CHANGELOG.md"
}
}
$Result|
Push-nupkg -Path $ConvertFormDelivery -Source 'https://www.myget.org/F/ottomatt/api/v2/package'