Skip to content

Commit

Permalink
v1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhitsolutions committed Aug 26, 2019
1 parent cdf37e4 commit 84c3dea
Show file tree
Hide file tree
Showing 12 changed files with 35 additions and 24 deletions.
7 changes: 7 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log for PSReleaseTools

## v1.4.0

+ Changed online help links to `bit.ly` links
+ Added `msix` as an asset format
+ Updated `Get-PSReleaseAsset` to be stricter on format matching
+ Fixed bug with `Install-PSPreview` erroring on path (Issue #15)

## v1.3.2

+ Fixed another new bug with installation commands
Expand Down
2 changes: 1 addition & 1 deletion Docs/Get-PSReleaseAsset.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
external help file: PSReleaseTools-help.xml
Module Name: PSReleaseTools
online version: https://github.com/jdhitsolutions/PSReleaseTools/blob/master/Docs/Get-PSReleaseAsset.md
online version: http://bit.ly/325hHm8
schema: 2.0.0
---

Expand Down
6 changes: 3 additions & 3 deletions Docs/Get-PSReleaseCurrent.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
external help file: PSReleaseTools-help.xml
Module Name: PSReleaseTools
online version: https://github.com/jdhitsolutions/PSReleaseTools/blob/master/Docs/Get-PSReleaseCurrent.md
online version: http://bit.ly/323JVh9
schema: 2.0.0
---

# Get-PSReleaseCurrent

## SYNOPSIS

Get the current PowerShell v6 release
Get the current PowerShell v6 (Core) release

## SYNTAX

Expand Down Expand Up @@ -84,4 +84,4 @@ Learn more about PowerShell: http://jdhitsolutions.com/blog/essential-powershell
## RELATED LINKS
[Get-PSReleaseSummary]()
[Get-PSReleaseSummary]()
2 changes: 1 addition & 1 deletion Docs/Get-PSReleaseSummary.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
external help file: PSReleaseTools-help.xml
Module Name: PSReleaseTools
online version: https://github.com/jdhitsolutions/PSReleaseTools/blob/master/Docs/Get-PSReleaseSummary.md
online version: http://bit.ly/32aTXxf
schema: 2.0.0
---

Expand Down
2 changes: 1 addition & 1 deletion Docs/Install-PSCore.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
external help file: PSReleaseTools-help.xml
Module Name: PSReleaseTools
online version: https://github.com/jdhitsolutions/PSReleaseTools/blob/master/Docs/Install-PSCore.md
online version: http://bit.ly/325i1Bm
schema: 2.0.0
---

Expand Down
2 changes: 1 addition & 1 deletion Docs/Install-PSPreview.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
external help file: PSReleaseTools-help.xml
Module Name: PSReleaseTools
online version: https://github.com/jdhitsolutions/PSReleaseTools/blob/master/Docs/Install-PSPreview.md
online version: http://bit.ly/328btlM
schema: 2.0.0
---

Expand Down
4 changes: 2 additions & 2 deletions Docs/PSReleaseTools.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
Module Name: PSReleaseTools
Module Guid: f7afa9bf-3f74-45e8-b855-0810431aafb4 f7afa9bf-3f74-45e8-b855-0810431aafb4
Download Help Link: {{Please enter FwLink manually}}
Download Help Link:
Help Version: 1.0.0.0
Locale: en-US
---
Expand Down Expand Up @@ -36,4 +36,4 @@ On Windows, install the latest 64bit STABLE release of PowerShell Core

### [Install-PSPreview](Install-PSPreview.md)

On Windows, install the latest 64bit PREVIEW release of PowerShell Core
On Windows, install the latest 64bit PREVIEW release of PowerShell Core or PowerShell 7
2 changes: 1 addition & 1 deletion Docs/Save-PSReleaseAsset.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
external help file: PSReleaseTools-help.xml
Module Name: PSReleaseTools
online version: https://github.com/jdhitsolutions/PSReleaseTools/blob/master/Docs/Save-PSReleaseAsset.md
online version: http://bit.ly/325USis
schema: 2.0.0
---

Expand Down
Binary file modified PSReleaseTools.psd1
Binary file not shown.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ The current version of this module uses regular expression named captures to pul

## Preview Builds

Starting in v0.8.0, command modules have a `-Preview` parameter which will get the latest preview build. Otherwise, the commands will use the latest stable release.
Starting in v0.8.0, command functions have a `-Preview` parameter which will get the latest preview build. Otherwise, the commands will use the latest stable release.

## Installing a Build

Expand Down Expand Up @@ -95,4 +95,4 @@ Install-Module PSReleaseTools -scope currentuser

I have a few other ideas for commands I might add to this module. If you have suggestions or encounter problems, please post an issue in the GitHub repository.

Last Updated 2019-07-18 18:07:49Z UTC
Last Updated 2019-08-26 18:58:24Z UTC
14 changes: 7 additions & 7 deletions en-US/PSReleaseTools-help.xml
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ What if: Performing the operation "Downloading https://github.com/PowerShell/Pow
<command:relatedLinks>
<maml:navigationLink>
<maml:linkText>Online Version:</maml:linkText>
<maml:uri>https://github.com/jdhitsolutions/PSReleaseTools/blob/master/Docs/Get-PSReleaseAsset.md</maml:uri>
<maml:uri>http://bit.ly/325hHm8</maml:uri>
</maml:navigationLink>
<maml:navigationLink>
<maml:linkText>Save-PSReleaseAsset</maml:linkText>
Expand All @@ -224,7 +224,7 @@ What if: Performing the operation "Downloading https://github.com/PowerShell/Pow
<command:verb>Get</command:verb>
<command:noun>PSReleaseCurrent</command:noun>
<maml:description>
<maml:para>Get the current PowerShell v6 release</maml:para>
<maml:para>Get the current PowerShell v6 (Core) release</maml:para>
</maml:description>
</command:details>
<maml:description>
Expand Down Expand Up @@ -313,7 +313,7 @@ v7.0.0-preview.1 Release of PowerShell v7.0.0-preview.1 5/30/2019 9:28:31 PM 6.2
<command:relatedLinks>
<maml:navigationLink>
<maml:linkText>Online Version:</maml:linkText>
<maml:uri>https://github.com/jdhitsolutions/PSReleaseTools/blob/master/Docs/Get-PSReleaseCurrent.md</maml:uri>
<maml:uri>http://bit.ly/323JVh9</maml:uri>
</maml:navigationLink>
<maml:navigationLink>
<maml:linkText>Get-PSReleaseSummary</maml:linkText>
Expand Down Expand Up @@ -539,7 +539,7 @@ powershell_6.2.1-1.ubuntu.18.04_amd64.deb 5/21/2019 5:08:39 PM 55</dev:c
<command:relatedLinks>
<maml:navigationLink>
<maml:linkText>Online Version:</maml:linkText>
<maml:uri>https://github.com/jdhitsolutions/PSReleaseTools/blob/master/Docs/Get-PSReleaseSummary.md</maml:uri>
<maml:uri>http://bit.ly/32aTXxf</maml:uri>
</maml:navigationLink>
<maml:navigationLink>
<maml:linkText>Get-PSReleaseCurrent</maml:linkText>
Expand Down Expand Up @@ -709,7 +709,7 @@ powershell_6.2.1-1.ubuntu.18.04_amd64.deb 5/21/2019 5:08:39 PM 55</dev:c
<command:relatedLinks>
<maml:navigationLink>
<maml:linkText>Online Version:</maml:linkText>
<maml:uri>https://github.com/jdhitsolutions/PSReleaseTools/blob/master/Docs/Install-PSCore.md</maml:uri>
<maml:uri>http://bit.ly/325i1Bm</maml:uri>
</maml:navigationLink>
<maml:navigationLink>
<maml:linkText>Save-PSReleaseAsset</maml:linkText>
Expand Down Expand Up @@ -879,7 +879,7 @@ powershell_6.2.1-1.ubuntu.18.04_amd64.deb 5/21/2019 5:08:39 PM 55</dev:c
<command:relatedLinks>
<maml:navigationLink>
<maml:linkText>Online Version:</maml:linkText>
<maml:uri>https://github.com/jdhitsolutions/PSReleaseTools/blob/master/Docs/Install-PSPreview.md</maml:uri>
<maml:uri>http://bit.ly/328btlM</maml:uri>
</maml:navigationLink>
<maml:navigationLink>
<maml:linkText>Save-PSReleaseAsset</maml:linkText>
Expand Down Expand Up @@ -1316,7 +1316,7 @@ Mode LastWriteTime Length Name
<command:relatedLinks>
<maml:navigationLink>
<maml:linkText>Online Version:</maml:linkText>
<maml:uri>https://github.com/jdhitsolutions/PSReleaseTools/blob/master/Docs/Save-PSReleaseAsset.md</maml:uri>
<maml:uri>http://bit.ly/325USis</maml:uri>
</maml:navigationLink>
<maml:navigationLink>
<maml:linkText>Invoke-WebRequest</maml:linkText>
Expand Down
14 changes: 9 additions & 5 deletions functions/public.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ Function Get-PSReleaseAsset {
[Parameter(HelpMessage = "Limit results to a given platform. The default is all platforms.")]
[ValidateSet("Rhel", "Raspbian", "Ubuntu", "Debian", "Windows", "AppImage", "Arm", "MacOS", "Alpine", "FXDependent")]
[string[]]$Family,
[ValidateSet('deb', 'gz', 'msi', 'pkg', 'rpm', 'zip')]
[ValidateSet('deb', 'gz', 'msi', 'pkg', 'rpm', 'zip','msix')]
[Parameter(HelpMessage = "Limit results to a given format. The default is all formats.")]
[string[]]$Format,
[alias("x64")]
Expand Down Expand Up @@ -308,7 +308,7 @@ Function Get-PSReleaseAsset {

if ($Format) {
Write-Verbose "[$((Get-Date).TimeofDay) PROCESS] Filtering for format"
$assets = $assets.where( {$_.format -match $($format -join "|")})
$assets = $assets.where({$_.format -match $("^$format$" -join "|")})
}
#write the results to the pipeline
$assets
Expand Down Expand Up @@ -353,22 +353,24 @@ Function Install-PSPreview {
Process {
#only run on Windows
if (($psedition -eq 'Desktop') -OR ($PSVersionTable.platform -eq 'Win32NT')) {
Write-Verbose "[$((Get-Date).TimeofDay) PROCESS] Saving download to $Path "
Write-Verbose "[$((Get-Date).TimeofDay) PROCESS] Saving download to $Path"
$install = Get-PSReleaseAsset -Preview -Family Windows -Only64Bit -Format msi | Save-PSReleaseAsset -Path $Path -Passthru
if ($PSBoundParameters.ContainsKey("WhatIf")) {
#create a dummy file name is using -Whatif
$filename = Join-path -path $Path -ChildPath "whatif-preview.msi"
$filename = Join-Path -path $Path -ChildPath "whatif-preview.msi"
}
else {
$filename = $install.fullname
}

Write-Verbose "[$((Get-Date).TimeOfDay) PROCESS] Using $filename"

#call the internal helper function
InstallMSI -path $filename -mode $mode

} #if Windows
else {
Write-Warning "This will only work on Windows platforms."
Write-Warning "This command will only work on Windows platforms."
}
} #process

Expand Down Expand Up @@ -404,6 +406,8 @@ Function Install-PSCore {
$filename = $install.fullname
}

Write-Verbose "[$((Get-Date).TimeOfDay) PROCESS] Using $filename"

#call the internal helper function
InstallMSI -path $filename -mode $mode

Expand Down

0 comments on commit 84c3dea

Please sign in to comment.