Skip to content

Commit f95ad21

Browse files
committed
Updated Build.ps1
1 parent 6dccde7 commit f95ad21

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

PSModule/ModernWorkplaceClientCenter/ModernWorkplaceClientCenter.psd1

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,9 @@ PowerShellVersion = '5.0'
6969
# NestedModules = @()
7070

7171
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
72-
FunctionsToExport = 'Get-DsRegStatus', 'Get-MDMDeviceOwnership',
73-
'Get-MDMEnrollmentStatus', 'Get-MDMMsiApp', 'Get-MDMPSScriptStatus',
74-
'Get-SiteToZoneAssignment', 'Invoke-AnalyzeHybridJoinStatus',
75-
'Invoke-AnalyzeMDMEnrollmentStatus', 'Reset-MDMEnrollmentStatus'
72+
FunctionsToExport = 'Get-MWCCDsRegStatus', 'Invoke-MWCCAnalyzeHybridJoinStatus',
73+
'Get-MWCCSiteToZoneAssignment', 'Get-MWCCMdmMsiApp',
74+
'Get-MWCCIntuneDeviceOwnership'
7675

7776
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
7877
CmdletsToExport = @()
@@ -107,7 +106,7 @@ PrivateData = @{
107106
ProjectUri = 'https://github.com/ThomasKur/ModernWorkplaceClientCenter'
108107

109108
# A URL to an icon representing this module.
110-
# IconUri = ''
109+
IconUri = 'https://raw.githubusercontent.com/ThomasKur/ModernWorkplaceClientCenter/master/Logo/MWCC-Logo-512.png'
111110

112111
# ReleaseNotes of this module
113112
# ReleaseNotes = ''
@@ -123,7 +122,7 @@ PrivateData = @{
123122
# HelpInfoURI = ''
124123

125124
# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
126-
DefaultCommandPrefix = ''
125+
# DefaultCommandPrefix = ''
127126

128127
}
129128

PSModule/build.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,12 @@ if($ScriptAnalyzerResult){
2020
$ExportableFunctions = (Get-ChildItem -Path "$ModulePath\Functions" -Filter '*.ps1').BaseName
2121
$ReleaseNotes = ((Get-Content ".\ReleaseNotes.md" -Raw) -split "##")
2222
$ReleaseNote = ($ReleaseNotes[1] + "`n`n To see the complete history, checkout the Release Notes on Github")
23-
Update-ModuleManifest -Path "$ModulePath\ModernWorkplaceClientCenter.psd1" -FunctionsToExport $ExportableFunctions -ReleaseNotes $ReleaseNote
23+
Update-ModuleManifest -Path "$ModulePath\ModernWorkplaceClientCenter.psd1" -FunctionsToExport $ExportableFunctions
24+
Update-ModuleManifest -Path "$ModulePath\ModernWorkplaceClientCenter.psd1" -ReleaseNotes $ReleaseNote
25+
Update-ModuleManifest -Path "$ModulePath\ModernWorkplaceClientCenter.psd1" -IconUri "https://raw.githubusercontent.com/ThomasKur/ModernWorkplaceClientCenter/master/Logo/MWCC-Logo-512.png"
2426

2527
#Update Version
28+
$ModuelManifestTest = Test-ModuleManifest -Path "$ModulePath\ModernWorkplaceClientCenter.psd1" -ErrorAction Stop
2629
$CurrentVersion = $ModuelManifestTest.Version
2730
$SuggestedNewVersion = [Version]::new($CurrentVersion.Major,$CurrentVersion.Minor,$CurrentVersion.Build + 1)
2831
$title = "Increment Version"
@@ -41,7 +44,6 @@ switch ($result) {
4144
}
4245
}
4346
Test-ModuleManifest -Path "$ModulePath\ModernWorkplaceClientCenter.psd1" -ErrorAction Stop
44-
4547
#endregion
4648

4749
#region Sign Scripts

0 commit comments

Comments
 (0)