Skip to content

Commit 4b8d80d

Browse files
author
Robin Stolpe
committed
update
1 parent 1ae9743 commit 4b8d80d

4 files changed

Lines changed: 36 additions & 23 deletions

File tree

MaintainModule/MaintainModule.psd1

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<#
22
MIT License
33
4-
Copyright (c) 2023 Robin Stolpe
5-
<{{mail}}>
6-
<{{website}}>
4+
Copyright (C) 2023 Robin Stolpe.
5+
6+
<https://stolpe.io>
77
88
Permission is hereby granted, free of charge, to any person obtaining a copy
99
of this software and associated documentation files (the "Software"), to deal
@@ -35,10 +35,10 @@
3535
@{
3636

3737
# Script module or binary module file associated with this manifest.
38-
RootModule = '.\MaintainModule.psm1'
38+
RootModule = '.\MaintainModule.psm1'
3939

4040
# Version number of this module.
41-
ModuleVersion = '0.1.2'
41+
ModuleVersion = '0.1.2'
4242

4343
# Supported PSEditions
4444
# CompatiblePSEditions = @()
@@ -47,16 +47,16 @@
4747
GUID = '4fec1769-909e-44cf-b715-bbc6b10564b3'
4848

4949
# Author of this module
50-
Author = 'Robin Stolpe'
50+
Author = 'Robin Stolpe'
5151

5252
# Company or vendor of this module
53-
CompanyName = 'Stolpe.io'
53+
CompanyName = 'Stolpe.io'
5454

5555
# Copyright statement for this module
56-
Copyright = '(c) 2023 Robin Stolpe. All rights reserved.'
56+
Copyright = '(c) 2023 Robin Stolpe. All rights reserved.'
5757

5858
# Description of the functionality provided by this module
59-
Description = 'This module let you maintain your installed modules in a easy way'
59+
Description = 'This module will help you to update your software on your Windows 10 and Windows 11 machines.'
6060

6161
# Minimum version of the PowerShell engine required by this module
6262
PowerShellVersion = '5.1'
@@ -74,7 +74,7 @@
7474
# ClrVersion = ''
7575

7676
# Processor architecture (None, X86, Amd64) required by this module
77-
# ProcessorArchitecture = ''
77+
ProcessorArchitecture = ''
7878

7979
# Modules that must be imported into the global environment prior to importing this module
8080
# RequiredModules = @()
@@ -95,10 +95,10 @@
9595
# NestedModules = @()
9696

9797
# 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.
98-
FunctionsToExport = "Uninstall-RSModule", "Update-RSModule"
98+
FunctionsToExport = "Uninstall-RSModule", "Update-RSModule"
9999

100100
# 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.
101-
CmdletsToExport = @()
101+
CmdletsToExport = @()
102102

103103
# Variables to export from this module
104104
VariablesToExport = '*'
@@ -124,19 +124,19 @@
124124
Tags = @("PowerShell", "macOS", "Windows", "Linux", "support-tool", "sysadmin-tool", "it-tool", "maintain-module", "module-maintenance", "multi-platform", "multiOS")
125125

126126
# A URL to the license for this module.
127-
LicenseUri = 'https://github.com/rstolpe/MaintainModule/blob/main/LICENSE'
127+
LicenseUri = 'https://github.com/rstolpe/MaintainModule/blob/main/LICENSE'
128128

129129
# A URL to the main website for this project.
130-
ProjectUri = 'https://github.com/rstolpe/MaintainModule'
130+
ProjectUri = 'https://github.com/rstolpe/MaintainModule'
131131

132132
# A URL to an icon representing this module.
133133
# IconUri = ''
134134

135135
# ReleaseNotes of this module
136-
ReleaseNotes = 'https://github.com/rstolpe/MaintainModule/releases'
136+
ReleaseNotes = 'https://github.com/rstolpe/MaintainModule/releases'
137137

138138
# Prerelease string of this module
139-
# Prerelease = ''
139+
Prerelease = 'Alpha'
140140

141141
# Flag to indicate whether the module requires explicit user acceptance for install/update/save
142142
RequireLicenseAcceptance = $false
@@ -149,7 +149,7 @@
149149
} # End of PrivateData hashtable
150150

151151
# HelpInfo URI of this module
152-
# HelpInfoURI = ''
152+
# HelpInfoURI = ''
153153

154154
# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
155155
# DefaultCommandPrefix = ''

MaintainModule/MaintainModule.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<#
22
MIT License
33
4-
Copyright (C) 2023 Robin Stolpe.
5-
4+
Copyright (C) 2023 Robin Stolpe.
5+
66
<https://stolpe.io>
77
88
Permission is hereby granted, free of charge, to any person obtaining a copy

RSModuleBuilder.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# Changes on every build
1212
[string]$Version = "0.1.2"
1313
[string]$PowerShellVersion = "5.1"
14-
[string]$ProcessorArchitecture = "X64, X86, amd64, arm64"
14+
[string]$ProcessorArchitecture = ""
1515
[string]$LicenseUrl = "https://github.com/rstolpe/MaintainModule/blob/main/LICENSE"
1616
[string]$ProjectUrl = "https://github.com/rstolpe/MaintainModule"
1717
[string]$ReleaseNotesUrl = "https://github.com/rstolpe/MaintainModule/releases"
@@ -65,7 +65,7 @@ foreach ($function in $MigrateFunction.FullName) {
6565

6666
# Converting the function name to fit the .psd1 file for exporting
6767
$function = $function -split "/" -replace ".ps1" | Select-Object -Last 1
68-
$function = """$($function)"","
68+
$function = """$($function)"", "
6969
[void]($function.trim())
7070

7171
# Collect the name of all .ps1 files so it can be added as functions in the psd1 file.
@@ -78,7 +78,7 @@ if ($null -ne $MigrateFunction) {
7878
# Bug! If the module only contain one function the , after the name are not removed, need to remove that
7979
$FunctionPSD = $FunctionPSD | ForEach-Object {
8080
if ( $FunctionPSD.IndexOf($_) -eq ($FunctionPSD.count - 1) ) {
81-
$_.replace(",", "")
81+
$_.replace(", ", "")
8282
}
8383
else {
8484
$_
Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,14 @@
1-
0 rule violations found.
1+
2+
Line : 4
3+
Column : 37
4+
Message : Line has trailing whitespace
5+
Extent : System.Management.Automation.Language.ScriptExtent
6+
RuleName : PSAvoidTrailingWhitespace
7+
Severity : Information
8+
ScriptName : MaintainModule.psd1
9+
ScriptPath : /Users/rstolpe/Dev/GitHub/MaintainModule/MaintainModule/MaintainModule.psd1
10+
RuleSuppressionID :
11+
SuggestedCorrections : {Microsoft.Windows.PowerShell.ScriptAnalyzer.Generic.CorrectionExtent}
12+
IsSuppressed : False
13+
14+

0 commit comments

Comments
 (0)