1
1
# Template helper to copy PowerShell scripts and all dependencies
2
2
parameters :
3
- helperLibsPath : ' $(Build.SourcesDirectory)\src\WinGet.RestSource.PowershellSupport\bin\$(BuildConfiguration)\netstandard2.0 '
4
- templatesPath : ' $(build .SourcesDirectory)\src\WinGet.RestSource.Infrastructure\bin\$(BuildConfiguration)'
3
+ helperLibsPath : ' $(Build.SourcesDirectory)\src\WinGet.RestSource.PowershellSupport\bin\$(BuildConfiguration)\netcoreapp3.1 '
4
+ templatesPath : ' $(Build .SourcesDirectory)\src\WinGet.RestSource.Infrastructure\bin\$(BuildConfiguration)'
5
5
6
6
steps :
7
7
- task : CopyFiles@2
8
- displayName : ' Copy Files: Powershell module '
8
+ displayName : ' Copy Files: Powershell Module '
9
9
inputs :
10
- SourceFolder : ' $(build .SourcesDirectory)\Tools\PowershellModule\src'
11
- TargetFolder : ' $(build.artifactstagingdirectory )\Winget.PowerShell.Source'
10
+ SourceFolder : ' $(Build .SourcesDirectory)\Tools\PowershellModule\src'
11
+ TargetFolder : ' $(Build.ArtifactStagingDirectory )\Winget.PowerShell.Source'
12
12
CleanTargetFolder : true
13
13
OverWrite : true
14
14
15
- - task : CopyFiles@2
16
- displayName : ' Copy Files: Helper Libs x86'
17
- inputs :
18
- Contents : |
19
- ${{ parameters.helperLibsPath }}\Microsoft.Extensions.Logging.Abstractions.dll
20
- ${{ parameters.helperLibsPath }}\Microsoft.WinGet.PowershellSupport.dll
21
- ${{ parameters.helperLibsPath }}\Microsoft.WinGet.RestSource.Utils.dll
22
- ${{ parameters.helperLibsPath }}\Newtonsoft.Json.dll
23
- ${{ parameters.helperLibsPath }}\System.ComponentModel.Annotations.dll
24
- ${{ parameters.helperLibsPath }}\YamlDotNet.dll
25
- ${{ parameters.helperLibsPath }}\WinGetUtilInterop.dll
26
- ${{ parameters.helperLibsPath }}\runtimes\win-x86\native\WinGetUtil.dll
27
- TargetFolder : ' $(build.artifactstagingdirectory)\Winget.PowerShell.Source\Library\HelperLib\x86'
28
- OverWrite : true
29
- flattenFolders : true
30
-
31
- - task : CopyFiles@2
32
- displayName : ' Copy Files: Helper libs x64'
15
+ # Publish Helper Libs - win-x86
16
+ - task : DotNetCoreCLI@2
17
+ displayName : ' Package Helper Libs: Portable'
33
18
inputs :
34
- Contents : |
35
- ${{ parameters.helperLibsPath }}\Microsoft.Extensions.Logging.Abstractions.dll
36
- ${{ parameters.helperLibsPath }}\Microsoft.WinGet.PowershellSupport.dll
37
- ${{ parameters.helperLibsPath }}\Microsoft.WinGet.RestSource.Utils.dll
38
- ${{ parameters.helperLibsPath }}\Newtonsoft.Json.dll
39
- ${{ parameters.helperLibsPath }}\System.ComponentModel.Annotations.dll
40
- ${{ parameters.helperLibsPath }}\YamlDotNet.dll
41
- ${{ parameters.helperLibsPath }}\WinGetUtilInterop.dll
42
- ${{ parameters.helperLibsPath }}\runtimes\win-x64\native\WinGetUtil.dll
43
- TargetFolder : ' $(build.artifactstagingdirectory)\Winget.PowerShell.Source\Library\HelperLib\x64'
44
- OverWrite : true
45
- flattenFolders : true
19
+ command : publish
20
+ publishWebProjects : false
21
+ projects : ' $(Build.SourcesDirectory)\src\WinGet.RestSource.PowershellSupport\WinGet.RestSource.PowershellSupport.csproj'
22
+ arguments : ' --configuration $(BuildConfiguration) --output $(Build.ArtifactStagingDirectory)\Winget.PowerShell.Source\Library --no-restore'
23
+ zipAfterPublish : false
46
24
47
25
- task : CopyFiles@2
48
26
displayName : ' Copy Files: Arm Templates'
@@ -58,19 +36,19 @@ steps:
58
36
${{ parameters.templatesPath }}\**\frontdoor.json
59
37
${{ parameters.templatesPath }}\**\keyvault.json
60
38
${{ parameters.templatesPath }}\**\storageaccount.json
61
- TargetFolder : ' $(build.artifactstagingdirectory )\Winget.PowerShell.Source\Library\ARMTemplate'
39
+ TargetFolder : ' $(Build.ArtifactStagingDirectory )\Winget.PowerShell.Source\Library\ARMTemplate'
62
40
OverWrite : true
63
41
flattenFolders : true
64
42
65
43
- task : CopyFiles@2
66
44
displayName : ' Copy Files: azure function'
67
45
inputs :
68
46
SourceFolder : ' $(Build.ArtifactStagingDirectory)\WinGet.RestSource.Functions'
69
- TargetFolder : ' $(build.artifactstagingdirectory )\Winget.PowerShell.Source\Library\RestAPI'
47
+ TargetFolder : ' $(Build.ArtifactStagingDirectory )\Winget.PowerShell.Source\Library\RestAPI'
70
48
OverWrite : true
71
49
72
50
- task : PublishBuildArtifacts@1
73
51
displayName : ' Publish Artifact: WinGet.RestSource-Winget.PowerShell.Source'
74
52
inputs :
75
- PathtoPublish : ' $(build.artifactstagingdirectory )\Winget.PowerShell.Source'
53
+ PathtoPublish : ' $(Build.ArtifactStagingDirectory )\Winget.PowerShell.Source'
76
54
ArtifactName : ' WinGet.RestSource-Winget.PowerShell.Source'
0 commit comments