Skip to content

Commit 1328a72

Browse files
authored
Merge pull request #1 from netcloud/update/git-url-script-sign
Update/git url script sign
2 parents 3cea12e + 8b6ba52 commit 1328a72

File tree

8 files changed

+57
-18
lines changed

8 files changed

+57
-18
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
# Changelog
22

3-
> - v0.0.1, 26.11.2020 -- Initial release.
3+
> - v0.0.2, 06.01.2021
4+
> - Changed url's to new github repo.
5+
> - Added code signing step in build process.
6+
> - Signed module with a code signing certificate.
7+
8+
> - v0.0.1, 26.11.2020
9+
> - Initial release.

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ We use `<MAJOR>.<MINOR>.<PATCH>` as versioning policy.
2222
<Patch> = Backwards Compatible / Bug Fixes
2323
```
2424

25-
For the versions available, see the [tags on this repository](https://github.com/netcloudag/powershell-cli-menu-helpers/tags).
25+
For the versions available, see the [tags on this repository](https://github.com/netcloud/powershell-cli-menu-helpers/tags).
2626

2727
### Coding Convention
2828

README.md

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
# powershell cli menu helpers
22

3-
[[_TOC_]]
3+
- [powershell cli menu helpers](#powershell-cli-menu-helpers)
4+
- [Introduction](#introduction)
5+
- [Installation](#installation)
6+
- [From PowerShell Gallery](#from-powershell-gallery)
7+
- [From Source](#from-source)
8+
- [Usage](#usage)
9+
- [Menu rendering](#menu-rendering)
10+
- [List rendering](#list-rendering)
11+
- [Table rendering](#table-rendering)
12+
- [Example](#example)
13+
- [Contributing](#contributing)
14+
- [Creating a release](#creating-a-release)
15+
- [Requirements](#requirements)
16+
- [Steps](#steps)
17+
- [Authors](#authors)
18+
- [License](#license)
419

520
## Introduction
621

@@ -31,7 +46,7 @@ Install-Module -Name 'powershell-cli-menu-helpers'
3146
- Obtain the source
3247

3348
```
34-
git clone https://github.com/netcloudag/powershell-cli-menu-helpers.git
49+
git clone https://github.com/netcloud/powershell-cli-menu-helpers.git
3550
```
3651

3752
- Navigate to the source directory
@@ -146,7 +161,7 @@ cd .\example\
146161

147162
## Contributing
148163

149-
Contributions are welcome, please refere to [CONTRIBUTING.md](https://github.com/netcloudag/powershell-cli-menu-helpers/blob/master/CONTRIBUTING.md) for details.
164+
Contributions are welcome, please refere to [CONTRIBUTING.md](https://github.com/netcloud/powershell-cli-menu-helpers/blob/master/CONTRIBUTING.md) for details.
150165

151166
## Creating a release
152167

@@ -161,8 +176,8 @@ Install-Module -Name 'PSScriptAnalyzer'
161176

162177
- Add / modify the test cases inside the folder `.\tests`
163178
- Run the tests (`.\test.ps1`)
164-
- Update the [CHANGELOG.md](https://github.com/netcloudag/powershell-cli-menu-helpers/blob/master/CHANGELOG.md)
165-
- Update the `ModuleVersion` inside the [config.json](https://github.com/netcloudag/powershell-cli-menu-helpers/blob/master/config.json)
179+
- Update the [CHANGELOG.md](https://github.com/netcloud/powershell-cli-menu-helpers/blob/master/CHANGELOG.md)
180+
- Update the `ModuleVersion` inside the [config.json](https://github.com/netcloud/powershell-cli-menu-helpers/blob/master/config.json)
166181
- Add release tag on github
167182
- Run the script `.\build.ps1` to create a new build
168183
- Run the scirpt `.\publish.ps1` to publish the build to PowerShell Gallery
@@ -175,4 +190,4 @@ Install-Module -Name 'PSScriptAnalyzer'
175190
## License
176191

177192
This project is licensed under MIT with Copyright (c) 2020 Netcloud AG. \
178-
See the [LICENSE.md](https://github.com/netcloudag/powershell-cli-menu-helpers/blob/master/LICENSE.md) file for details.
193+
See the [LICENSE.md](https://github.com/netcloud/powershell-cli-menu-helpers/blob/master/LICENSE.md) file for details.

build.ps1

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
#Requires -Version 5.1
22
$ErrorActionPreference = 'Stop'
33

4+
# Get cert path
5+
[System.String]$CertPath = Read-Host -Prompt 'Please enter cert path (Cert:\CurrentUser\My\71C28FC065F(...)367825B1AF)'
6+
7+
if (-not (Test-Path -Path $CertPath)) {
8+
Write-Host -Object "Cert $CertPath not found!"
9+
return
10+
}
11+
12+
$Cert = Get-Item -Path $CertPath
13+
414
# Remove old build if available
515
if (Test-Path -Path '.\build') {
616
Remove-Item -Path '.\build' -Recurse -Force
@@ -40,4 +50,9 @@ Set-Content -Path ('.\build\' + $Config.ModuleName + '\' + $Config.ModuleName +
4050
# Create the powershell module
4151
foreach ($Funciton in (Get-ChildItem -Path '.\functions')) {
4252
Get-Content -Path $Funciton.FullName -Raw | Add-Content -Path ('.\build\' + $Config.ModuleName + '\' + $Config.ModuleName + '.psm1')
53+
}
54+
55+
# Sign the generated files
56+
foreach ($File in (Get-ChildItem -Path '.\build\*' -Recurse)) {
57+
Set-AuthenticodeSignature -FilePath $File.FullName -Certificate $Cert -TimestampServer 'http://timestamp.digicert.com'
4358
}

config.json

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
11
{
22
"ModuleName": "powershell-cli-menu-helpers",
3-
"ModuleVersion": "0.0.1",
3+
"ModuleVersion": "0.0.2",
44
"GUID": "2876be78-754c-4b00-b390-d871c61ce66b",
55
"Author": "Patrick Grazioli",
66
"CompanyName": "Netcloud AG",
77
"Copyright": "2020 Netcloud AG. All rights reserved.",
8-
"LicenseUri": "https://github.com/netcloudag/powershell-cli-menu-helpers/blob/master/LICENSE.md",
9-
"Description": "https://github.com/netcloudag/powershell-cli-menu-helpers/blob/master/README.md",
8+
"LicenseUri": "https://github.com/netcloud/powershell-cli-menu-helpers/blob/master/LICENSE.md",
9+
"Description": "https://github.com/netcloud/powershell-cli-menu-helpers/blob/master/README.md",
1010
"PowerShellVersion": "5.1",
11-
"ProjectUri": "https://github.com/netcloudag/powershell-cli-menu-helpers",
12-
"ReleaseNotes": "https://github.com/netcloudag/powershell-cli-menu-helpers/blob/master/CHANGELOG.md",
11+
"ProjectUri": "https://github.com/netcloud/powershell-cli-menu-helpers",
12+
"ReleaseNotes": "https://github.com/netcloud/powershell-cli-menu-helpers/blob/master/CHANGELOG.md",
1313
"Tags": [
1414
"cli-menu",
1515
"menu",
1616
"select-item",
1717
"list-item",
1818
"filter-item",
19-
"cli-menu-helpers"
19+
"cli-menu-helpers",
20+
"cli",
21+
"select",
22+
"filter"
2023
],
21-
"IconUri": "https://github.com/netcloudag/powershell-cli-menu-helpers/blob/master/assets/images/ncdev_logo.png"
24+
"IconUri": "https://github.com/netcloud/powershell-cli-menu-helpers/blob/master/assets/images/ncdev_logo.png"
2225
}

functions/Select-ItemFromList.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
}
6565
6666
.LINK
67-
https://github.com/netcloudag/powershell-cli-menu-helpers
67+
https://github.com/netcloud/powershell-cli-menu-helpers
6868
#>
6969
[OutputType([System.Management.Automation.PSObject[]])]
7070
Param(

functions/Select-ItemFromTable.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
}
6868
6969
.LINK
70-
https://github.com/netcloudag/powershell-cli-menu-helpers
70+
https://github.com/netcloud/powershell-cli-menu-helpers
7171
#>
7272
[OutputType([System.Management.Automation.PSObject[]])]
7373
Param(

functions/Select-MenuEntryFromList.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
}
6262
6363
.LINK
64-
https://github.com/netcloudag/powershell-cli-menu-helpers
64+
https://github.com/netcloud/powershell-cli-menu-helpers
6565
#>
6666
[OutputType([System.Management.Automation.PSObject[]])]
6767
Param(

0 commit comments

Comments
 (0)