Skip to content

Commit 1ae9743

Browse files
author
Robin Stolpe
committed
update
1 parent d1bf6de commit 1ae9743

3 files changed

Lines changed: 38 additions & 23 deletions

File tree

.src/MaintainModule.psd1.source

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<#
22
MIT License
33

4-
Copyright (c) {{year}} {{author}}
5-
<{{mail}}>
4+
Copyright (C) {{year}} {{author}}.
5+
{{mail}}
66
<{{website}}>
77

88
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -35,10 +35,10 @@
3535
@{
3636

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

4040
# Version number of this module.
41-
ModuleVersion = '{{version}}'
41+
ModuleVersion = '{{version}}'
4242

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

4949
# Author of this module
50-
Author = '{{author}}'
50+
Author = '{{author}}'
5151

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

5555
# Copyright statement for this module
56-
Copyright = '(c) {{year}} {{author}}. All rights reserved.'
56+
Copyright = '(c) {{year}} {{author}}. 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 = '{{description}}'
6060

6161
# Minimum version of the PowerShell engine required by this module
62-
PowerShellVersion = '5.1'
62+
PowerShellVersion = '{{powershellversion}}'
6363

6464
# Name of the PowerShell host required by this module
6565
# PowerShellHostName = ''
@@ -74,7 +74,7 @@
7474
# ClrVersion = ''
7575

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

7979
# Modules that must be imported into the global environment prior to importing this module
8080
# RequiredModules = @()
@@ -98,7 +98,7 @@
9898
FunctionsToExport = {{function}}
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 = '{{licenseuri}}'
128128

129129
# A URL to the main website for this project.
130-
ProjectUri = 'https://github.com/rstolpe/MaintainModule'
130+
ProjectUri = '{{projecturi}}'
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 = '{{releasenotes}}'
137137

138138
# Prerelease string of this module
139-
# Prerelease = '{{preReleaseTag}}'
139+
Prerelease = '{{prerelease}}'
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 = ''

.src/license/LICENSE.source

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) {{year}} {{author}}.
5-
<{{mail}}>
4+
Copyright (C) {{year}} {{author}}.
5+
{{mail}}
66
<{{website}}>
77

88
Permission is hereby granted, free of charge, to any person obtaining a copy

RSModuleBuilder.ps1

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,19 @@
44
[string]$Author = "Robin Stolpe"
55
[string]$Mail = "robin@stolpe.io"
66
[string]$Website = "https://stolpe.io"
7+
[string]$preRelease = "Alpha"
8+
[string]$Company = "Stolpe.io"
9+
[string]$apiKey = ""
710
#
11+
# Changes on every build
812
[string]$Version = "0.1.2"
13+
[string]$PowerShellVersion = "5.1"
14+
[string]$ProcessorArchitecture = "X64, X86, amd64, arm64"
15+
[string]$LicenseUrl = "https://github.com/rstolpe/MaintainModule/blob/main/LICENSE"
16+
[string]$ProjectUrl = "https://github.com/rstolpe/MaintainModule"
17+
[string]$ReleaseNotesUrl = "https://github.com/rstolpe/MaintainModule/releases"
18+
[string]$Description = "This module will help you to update your software on your Windows 10 and Windows 11 machines."
919
[bool]$Publish = $false
10-
[string]$apiKey = ""
11-
[string]$preRelease = "Alpha"
1220

1321
# Creating ArrayList for use later in the script
1422
$FunctionPSD = [System.Collections.Generic.List[string]]::new()
@@ -107,9 +115,16 @@ $PSDfileContent = $PSDfileContent -replace '{{manifestDate}}', $TodaysDate
107115
$PSDfileContent = $PSDfileContent -replace '{{moduleName}}', $ModuleName
108116
$PSDfileContent = $PSDfileContent -replace '{{year}}', $Year
109117
$PSDfileContent = $PSDfileContent -replace '{{version}}', $Version
110-
$PSDfileContent = $PSDfileContent -replace '{{preReleaseTag}}', $preReleaseTag
111-
$PSMfileContent = $PSMfileContent -replace '{{mail}}', $Mail
112-
$PSMfileContent = $PSMfileContent -replace '{{website}}', $Website
118+
$PSDfileContent = $PSDfileContent -replace '{{mail}}', $Mail
119+
$PSDfileContent = $PSDfileContent -replace '{{website}}', $Website
120+
$PSDfileContent = $PSDfileContent -replace '{{company}}', $Company
121+
$PSDfileContent = $PSDfileContent -replace '{{prerelease}}', $preRelease
122+
$PSDfileContent = $PSDfileContent -replace '{{releasenotes}}', $ReleaseNotesUrl
123+
$PSDfileContent = $PSDfileContent -replace '{{licenseuri}}', $LicenseUrl
124+
$PSDfileContent = $PSDfileContent -replace '{{projecturi}}', $ProjectUrl
125+
$PSDfileContent = $PSDfileContent -replace '{{description}}', $Description
126+
$PSDfileContent = $PSDfileContent -replace '{{powershellversion}}', $PowerShellVersion
127+
$PSDfileContent = $PSDfileContent -replace '{{processorarchitecture}}}', $ProcessorArchitecture
113128

114129
# If $FunctionPSD are empty, then adding @() instead according to best practices for performance
115130
if ($null -ne $FunctionPSD) {

0 commit comments

Comments
 (0)