Skip to content

Commit 2af954b

Browse files
authored
Add missing required module fields for publishing and fix signing (#266)
1 parent 8446e28 commit 2af954b

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

Tools/PowershellModule/src/Microsoft.WinGet.RestSource.psd1

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,14 @@
1717
# ID used to uniquely identify this module
1818
GUID = 'b70c845d-ddb1-4454-bfc2-a874783c2d04'
1919

20+
# Author of this module
21+
Author = 'Microsoft Corporation'
22+
2023
# Company or vendor of this module
21-
CompanyName = 'Microsoft'
24+
CompanyName = 'Microsoft Corporation'
2225

2326
# Copyright statement for this module
24-
Copyright = '(c) Microsoft. All rights reserved.'
27+
Copyright = '(c) Microsoft Corporation. All rights reserved.'
2528

2629
# Description of the functionality provided by this module
2730
Description = 'This module provides support for working with Windows Package Manager REST based sources.'
@@ -49,7 +52,11 @@
4952
PrivateData = @{
5053
PSData = @{
5154
# Tags applied to this module. These help with module discovery in online galleries.
52-
Tags = @("winget")
55+
Tags = @(
56+
'PSEdition_Core',
57+
'WindowsPackageManager',
58+
'WinGet'
59+
)
5360

5461
# A URL to the main website for this project.
5562
ProjectUri = 'https://github.com/microsoft/winget-cli-restsource'

pipelines/publish-powershell-module.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ extends:
5555
patterns: '**'
5656

5757
- pwsh: |
58-
$psd1File = "$(downloadRoot)\Microsoft.WinGet.Client.psd1"
58+
$psd1File = "$(downloadRoot)\Microsoft.WinGet.RestSource.psd1"
5959
6060
# This needs to be modified when the build sets the correct version number.
6161
$manifestContent = (Get-Content -Path $psd1File -Raw)
@@ -91,6 +91,7 @@ extends:
9191
**/Library/*.ps1
9292
**/Library/WinGet.RestSource.PowershellSupport/Microsoft.WinGet.PowershellSupport.dll
9393
**/Library/WinGet.RestSource.PowershellSupport/Microsoft.WinGet.RestSource.Utils.dll
94+
UseMinimatch: true
9495
signConfigType: inlineSignParams
9596
inlineOperation: |
9697
[
@@ -128,6 +129,7 @@ extends:
128129
FolderPath: '$(downloadRoot)'
129130
Pattern: |
130131
**/Library/WinGet.RestSource.PowershellSupport/YamlDotNet.dll
132+
UseMinimatch: true
131133
signConfigType: inlineSignParams
132134
inlineOperation: |
133135
[

src/WinGet.RestSource.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WinGet.RestSource.UnitTest"
2020
EndProject
2121
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Pipelines", "Pipelines", "{D46363C7-2962-490C-8D3D-3FC625E7A2C2}"
2222
ProjectSection(SolutionItems) = preProject
23+
..\pipelines\publish-powershell-module.yml = ..\pipelines\publish-powershell-module.yml
2324
..\pipelines\winget-cli-restsource-ci-pr.yml = ..\pipelines\winget-cli-restsource-ci-pr.yml
2425
..\pipelines\winget-cli-restsource-ci.yml = ..\pipelines\winget-cli-restsource-ci.yml
2526
EndProjectSection

0 commit comments

Comments
 (0)