diff --git a/README.md b/README.md index 6688d2d7141..5bd7634a161 100644 --- a/README.md +++ b/README.md @@ -60,23 +60,23 @@ You can also download the PowerShell binary archives for Windows, macOS and Linu | Windows (arm) **Experimental** | [32-bit][rl-winarm]/[64-bit][rl-winarm64] | [Instructions][in-windows-zip] | | Raspbian (Stretch) **Experimental** | [.tgz][rl-raspbian] | [Instructions][in-raspbian] | -[rl-windows-64]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.1/PowerShell-6.0.1-win-x64.msi -[rl-windows-86]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.1/PowerShell-6.0.1-win-x86.msi -[rl-ubuntu17]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.1/powershell_6.0.1-1.ubuntu.17.04_amd64.deb -[rl-ubuntu16]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.1/powershell_6.0.1-1.ubuntu.16.04_amd64.deb -[rl-ubuntu14]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.1/powershell_6.0.1-1.ubuntu.14.04_amd64.deb -[rl-debian8]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.1/powershell_6.0.1-1.debian.8_amd64.deb -[rl-debian9]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.1/powershell_6.0.1-1.debian.9_amd64.deb -[rl-centos]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.1/powershell-6.0.1-1.rhel.7.x86_64.rpm -[rl-ai]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.1/PowerShell-6.0.1-x86_64.AppImage -[rl-macos]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.1/powershell-6.0.1-osx.10.12-x64.pkg -[rl-winarm]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.1/PowerShell-6.0.1-win-arm32.zip -[rl-winarm64]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.1/PowerShell-6.0.1-win-arm64.zip -[rl-winx86-zip]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.1/PowerShell-6.0.1-win-x86.zip -[rl-winx64-zip]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.1/PowerShell-6.0.1-win-x64.zip -[rl-macos-tar]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.1/powershell-6.0.1-osx-x64.tar.gz -[rl-linux-tar]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.1/powershell-6.0.1-linux-x64.tar.gz -[rl-raspbian]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.1/powershell-6.0.1-linux-arm32.tar.gz +[rl-windows-64]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.2/PowerShell-6.0.2-win-x64.msi +[rl-windows-86]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.2/PowerShell-6.0.2-win-x86.msi +[rl-ubuntu17]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.2/powershell_6.0.2-1.ubuntu.17.04_amd64.deb +[rl-ubuntu16]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.2/powershell_6.0.2-1.ubuntu.16.04_amd64.deb +[rl-ubuntu14]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.2/powershell_6.0.2-1.ubuntu.14.04_amd64.deb +[rl-debian8]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.2/powershell_6.0.2-1.debian.8_amd64.deb +[rl-debian9]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.2/powershell_6.0.2-1.debian.9_amd64.deb +[rl-centos]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.2/powershell-6.0.2-1.rhel.7.x86_64.rpm +[rl-ai]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.2/PowerShell-6.0.2-x86_64.AppImage +[rl-macos]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.2/powershell-6.0.2-osx.10.12-x64.pkg +[rl-winarm]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.2/PowerShell-6.0.2-win-arm32.zip +[rl-winarm64]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.2/PowerShell-6.0.2-win-arm64.zip +[rl-winx86-zip]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.2/PowerShell-6.0.2-win-x86.zip +[rl-winx64-zip]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.2/PowerShell-6.0.2-win-x64.zip +[rl-macos-tar]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.2/powershell-6.0.2-osx-x64.tar.gz +[rl-linux-tar]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.2/powershell-6.0.2-linux-x64.tar.gz +[rl-raspbian]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.2/powershell-6.0.2-linux-arm32.tar.gz [installation]: https://github.com/PowerShell/PowerShell/tree/master/docs/installation [in-windows]: https://github.com/PowerShell/PowerShell/tree/master/docs/installation/windows.md#msi diff --git a/docker/community/amazonlinux/Dockerfile b/docker/community/amazonlinux/Dockerfile index 7aa35a6a1df..4045d8352db 100644 --- a/docker/community/amazonlinux/Dockerfile +++ b/docker/community/amazonlinux/Dockerfile @@ -2,8 +2,8 @@ FROM amazonlinux:latest -ARG POWERSHELL_VERSION=6.0.1 -ARG POWERSHELL_PACKAGE=powershell-6.0.1-linux-x64.tar.gz +ARG POWERSHELL_VERSION=6.0.2 +ARG POWERSHELL_PACKAGE=powershell-6.0.2-linux-x64.tar.gz ARG IMAGE_NAME=microsoft/powershell:amazonlinux LABEL maintainer="PowerShell Team " \ diff --git a/docker/release/centos7/Dockerfile b/docker/release/centos7/Dockerfile index 621d200a8ab..0a6d43de1a9 100644 --- a/docker/release/centos7/Dockerfile +++ b/docker/release/centos7/Dockerfile @@ -2,7 +2,7 @@ FROM centos:7 -ARG POWERSHELL_VERSION=6.0.1 +ARG POWERSHELL_VERSION=6.0.2 ARG IMAGE_NAME=microsoft/powershell:centos7 LABEL maintainer="PowerShell Team " \ diff --git a/docker/release/fedora26/Dockerfile b/docker/release/fedora26/Dockerfile index b955b06d175..6adbcaba0d0 100644 --- a/docker/release/fedora26/Dockerfile +++ b/docker/release/fedora26/Dockerfile @@ -2,7 +2,7 @@ FROM fedora:26 -ARG POWERSHELL_VERSION=6.0.1 +ARG POWERSHELL_VERSION=6.0.2 ARG IMAGE_NAME=microsoft/powershell:fedora26 LABEL maintainer="PowerShell Team " \ diff --git a/docker/release/fedora27/Dockerfile b/docker/release/fedora27/Dockerfile index 55afd8cc587..276d1716cbb 100644 --- a/docker/release/fedora27/Dockerfile +++ b/docker/release/fedora27/Dockerfile @@ -2,7 +2,7 @@ FROM fedora:27 -ARG POWERSHELL_VERSION=6.0.1 +ARG POWERSHELL_VERSION=6.0.2 ARG IMAGE_NAME=microsoft/powershell:fedora27 LABEL maintainer="PowerShell Team " \ diff --git a/docker/release/nanoserver/Dockerfile b/docker/release/nanoserver/Dockerfile index a712eab4e0d..bb4477da1f9 100755 --- a/docker/release/nanoserver/Dockerfile +++ b/docker/release/nanoserver/Dockerfile @@ -10,7 +10,7 @@ ARG NanoServerRepo=microsoft/nanoserver FROM ${WindowsServerCoreRepo}:$WindowsServerCoreVersion AS installer-env # Arguments for installing powershell, must be defined in the container they are used -ARG PS_VERSION=6.0.1 +ARG PS_VERSION=6.0.2 ENV PS_DOWNLOAD_URL https://github.com/PowerShell/PowerShell/releases/download/v$PS_VERSION/PowerShell-$PS_VERSION-win-x64.zip @@ -25,7 +25,7 @@ RUN Expand-Archive powershell.zip -DestinationPath \PowerShell FROM ${NanoServerRepo}:$NanoServerVersion ARG VCS_REF="none" -ARG PS_VERSION=6.0.1 +ARG PS_VERSION=6.0.2 ARG IMAGE_NAME=microsoft/powershell LABEL maintainer="PowerShell Team " ` diff --git a/docker/release/opensuse42.2/Dockerfile b/docker/release/opensuse42.2/Dockerfile index d8349c1b548..30cea5e7844 100644 --- a/docker/release/opensuse42.2/Dockerfile +++ b/docker/release/opensuse42.2/Dockerfile @@ -2,8 +2,8 @@ FROM opensuse:42.2 -ARG POWERSHELL_VERSION=6.0.1 -ARG POWERSHELL_PACKAGE=powershell-6.0.1-linux-x64.tar.gz +ARG POWERSHELL_VERSION=6.0.2 +ARG POWERSHELL_PACKAGE=powershell-6.0.2-linux-x64.tar.gz ARG IMAGE_NAME=microsoft/powershell:opensuse42.2 LABEL maintainer="PowerShell Team " \ diff --git a/docker/release/ubuntu14.04/Dockerfile b/docker/release/ubuntu14.04/Dockerfile index 6d9e08b9df3..0fc946026c0 100644 --- a/docker/release/ubuntu14.04/Dockerfile +++ b/docker/release/ubuntu14.04/Dockerfile @@ -2,7 +2,7 @@ FROM ubuntu:trusty -ARG POWERSHELL_VERSION=6.0.1 +ARG POWERSHELL_VERSION=6.0.2 ARG IMAGE_NAME=microsoft/powershell:ubuntu14.04 LABEL maintainer="PowerShell Team " \ diff --git a/docker/release/ubuntu16.04/Dockerfile b/docker/release/ubuntu16.04/Dockerfile index 412ba1729da..2fd44e6f1b1 100644 --- a/docker/release/ubuntu16.04/Dockerfile +++ b/docker/release/ubuntu16.04/Dockerfile @@ -2,7 +2,7 @@ FROM ubuntu:xenial -ARG POWERSHELL_VERSION=6.0.1 +ARG POWERSHELL_VERSION=6.0.2 ARG IMAGE_NAME=microsoft/powershell:ubuntu16.04 LABEL maintainer="PowerShell Team " \ diff --git a/docker/release/windowsservercore/Dockerfile b/docker/release/windowsservercore/Dockerfile index 6631385ea39..2f587c9c006 100644 --- a/docker/release/windowsservercore/Dockerfile +++ b/docker/release/windowsservercore/Dockerfile @@ -1,8 +1,8 @@ # escape=` FROM microsoft/windowsservercore:latest -ARG POWERSHELL_MSI=https://github.com/PowerShell/PowerShell/releases/download/v6.0.1/PowerShell-6.0.1-win-x64.msi -ARG POWERSHELL_VERSION=6.0.1 +ARG POWERSHELL_MSI=https://github.com/PowerShell/PowerShell/releases/download/v6.0.2/PowerShell-6.0.2-win-x64.msi +ARG POWERSHELL_VERSION=6.0.2 ARG IMAGE_NAME=microsoft/powershell:windowsservercore LABEL maintainer="PowerShell Team " ` diff --git a/docker/tests/Templates/centos7/Dockerfile b/docker/tests/Templates/centos7/Dockerfile index 2ad1f561255..afb73c746e7 100644 --- a/docker/tests/Templates/centos7/Dockerfile +++ b/docker/tests/Templates/centos7/Dockerfile @@ -1,7 +1,7 @@ FROM centos:7 -ARG PSVERSIONSTUB=6.0.1 -ARG PSVERSIONSTUBRPM=6.0.1 +ARG PSVERSIONSTUB=6.0.2 +ARG PSVERSIONSTUBRPM=6.0.2 ARG PACKAGELOCATIONSTUB ARG TESTLISTSTUB=/PowerShell/test/powershell/Modules/PackageManagement/PackageManagement.Tests.ps1,/PowerShell/test/powershell/engine/Module ARG GITLOCATION=https://github.com/PowerShell/PowerShell.git diff --git a/docker/tests/Templates/debian.8/Dockerfile b/docker/tests/Templates/debian.8/Dockerfile index 912036791e8..8ae8f645f72 100644 --- a/docker/tests/Templates/debian.8/Dockerfile +++ b/docker/tests/Templates/debian.8/Dockerfile @@ -1,7 +1,7 @@ FROM debian:jessie -ARG PSVERSIONSTUB=6.0.1 -ARG PSVERSIONSTUBRPM=6.0.1 +ARG PSVERSIONSTUB=6.0.2 +ARG PSVERSIONSTUBRPM=6.0.2 ARG PACKAGELOCATIONSTUB ARG TESTLISTSTUB=/PowerShell/test/powershell/Modules/PackageManagement/PackageManagement.Tests.ps1,/PowerShell/test/powershell/engine/Module ARG GITLOCATION=https://github.com/PowerShell/PowerShell.git diff --git a/docker/tests/Templates/debian.9/Dockerfile b/docker/tests/Templates/debian.9/Dockerfile index 20ccc66e81f..500f4665a02 100644 --- a/docker/tests/Templates/debian.9/Dockerfile +++ b/docker/tests/Templates/debian.9/Dockerfile @@ -1,7 +1,7 @@ FROM debian:stretch -ARG PSVERSIONSTUB=6.0.1 -ARG PSVERSIONSTUBRPM=6.0.1 +ARG PSVERSIONSTUB=6.0.2 +ARG PSVERSIONSTUBRPM=6.0.2 ARG PACKAGELOCATIONSTUB ARG TESTLISTSTUB=/PowerShell/test/powershell/Modules/PackageManagement/PackageManagement.Tests.ps1,/PowerShell/test/powershell/engine/Module ARG GITLOCATION=https://github.com/PowerShell/PowerShell.git diff --git a/docker/tests/Templates/fedora26/Dockerfile b/docker/tests/Templates/fedora26/Dockerfile index f4084ae8ffe..906101d7f48 100644 --- a/docker/tests/Templates/fedora26/Dockerfile +++ b/docker/tests/Templates/fedora26/Dockerfile @@ -1,7 +1,7 @@ FROM fedora:26 -ARG PSVERSIONSTUB=6.0.1 -ARG PSVERSIONSTUBRPM=6.0.1 +ARG PSVERSIONSTUB=6.0.2 +ARG PSVERSIONSTUBRPM=6.0.2 ARG PACKAGELOCATIONSTUB ARG TESTLISTSTUB=/PowerShell/test/powershell/Modules/PackageManagement/PackageManagement.Tests.ps1,/PowerShell/test/powershell/engine/Module ARG GITLOCATION=https://github.com/PowerShell/PowerShell.git diff --git a/docker/tests/Templates/fedora27/Dockerfile b/docker/tests/Templates/fedora27/Dockerfile index 4e6b8b9c862..2e27dee63ad 100644 --- a/docker/tests/Templates/fedora27/Dockerfile +++ b/docker/tests/Templates/fedora27/Dockerfile @@ -1,7 +1,7 @@ FROM fedora:27 -ARG PSVERSIONSTUB=6.0.1 -ARG PSVERSIONSTUBRPM=6.0.1 +ARG PSVERSIONSTUB=6.0.2 +ARG PSVERSIONSTUBRPM=6.0.2 ARG PACKAGELOCATIONSTUB ARG TESTLISTSTUB=/PowerShell/test/powershell/Modules/PackageManagement/PackageManagement.Tests.ps1,/PowerShell/test/powershell/engine/Module ARG GITLOCATION=https://github.com/PowerShell/PowerShell.git diff --git a/docker/tests/Templates/kalilinux/Dockerfile b/docker/tests/Templates/kalilinux/Dockerfile index 9cf203b5b42..58e447102e1 100644 --- a/docker/tests/Templates/kalilinux/Dockerfile +++ b/docker/tests/Templates/kalilinux/Dockerfile @@ -1,7 +1,7 @@ FROM kalilinux/kali-linux-docker:latest -ARG PSVERSIONSTUB=6.0.1 -ARG PSVERSIONSTUBRPM=6.0.1 +ARG PSVERSIONSTUB=6.0.2 +ARG PSVERSIONSTUBRPM=6.0.2 ARG PACKAGELOCATIONSTUB ARG TESTLISTSTUB=/PowerShell/test/powershell/Modules/PackageManagement/PackageManagement.Tests.ps1,/PowerShell/test/powershell/engine/Module ARG GITLOCATION=https://github.com/PowerShell/PowerShell.git diff --git a/docker/tests/Templates/opensuse42.2/Dockerfile b/docker/tests/Templates/opensuse42.2/Dockerfile index 421d2c36a2e..33f38b310fb 100644 --- a/docker/tests/Templates/opensuse42.2/Dockerfile +++ b/docker/tests/Templates/opensuse42.2/Dockerfile @@ -1,7 +1,7 @@ FROM opensuse:42.2 -ARG PSVERSIONSTUB=6.0.1 -ARG PSVERSIONSTUBRPM=6.0.1 +ARG PSVERSIONSTUB=6.0.2 +ARG PSVERSIONSTUBRPM=6.0.2 ARG PACKAGELOCATIONSTUB ARG TESTLISTSTUB=/PowerShell/test/powershell/Modules/PackageManagement/PackageManagement.Tests.ps1,/PowerShell/test/powershell/engine/Module ARG GITLOCATION=https://github.com/PowerShell/PowerShell.git diff --git a/docker/tests/Templates/ubuntu14.04/Dockerfile b/docker/tests/Templates/ubuntu14.04/Dockerfile index 1297a215c5f..5a5c54f6219 100644 --- a/docker/tests/Templates/ubuntu14.04/Dockerfile +++ b/docker/tests/Templates/ubuntu14.04/Dockerfile @@ -1,7 +1,7 @@ FROM ubuntu:trusty -ARG PSVERSIONSTUB=6.0.1 -ARG PSVERSIONSTUBRPM=6.0.1 +ARG PSVERSIONSTUB=6.0.2 +ARG PSVERSIONSTUBRPM=6.0.2 ARG PACKAGELOCATIONSTUB ARG TESTLISTSTUB=/PowerShell/test/powershell/Modules/PackageManagement/PackageManagement.Tests.ps1,/PowerShell/test/powershell/engine/Module ARG GITLOCATION=https://github.com/PowerShell/PowerShell.git diff --git a/docker/tests/Templates/ubuntu16.04/Dockerfile b/docker/tests/Templates/ubuntu16.04/Dockerfile index 6983cfa2bc0..a20171a33f2 100644 --- a/docker/tests/Templates/ubuntu16.04/Dockerfile +++ b/docker/tests/Templates/ubuntu16.04/Dockerfile @@ -1,7 +1,7 @@ FROM ubuntu:xenial -ARG PSVERSIONSTUB=6.0.1 -ARG PSVERSIONSTUBRPM=6.0.1 +ARG PSVERSIONSTUB=6.0.2 +ARG PSVERSIONSTUBRPM=6.0.2 ARG PACKAGELOCATIONSTUB ARG TESTLISTSTUB=/PowerShell/test/powershell/Modules/PackageManagement/PackageManagement.Tests.ps1,/PowerShell/test/powershell/engine/Module ARG GITLOCATION=https://github.com/PowerShell/PowerShell.git diff --git a/docker/tests/Templates/ubuntu17.04/Dockerfile b/docker/tests/Templates/ubuntu17.04/Dockerfile index 3182a12e7b6..14162f90ebc 100644 --- a/docker/tests/Templates/ubuntu17.04/Dockerfile +++ b/docker/tests/Templates/ubuntu17.04/Dockerfile @@ -1,7 +1,7 @@ FROM ubuntu:zesty -ARG PSVERSIONSTUB=6.0.1 -ARG PSVERSIONSTUBRPM=6.0.1 +ARG PSVERSIONSTUB=6.0.2 +ARG PSVERSIONSTUBRPM=6.0.2 ARG PACKAGELOCATIONSTUB ARG TESTLISTSTUB=/PowerShell/test/powershell/Modules/PackageManagement/PackageManagement.Tests.ps1,/PowerShell/test/powershell/engine/Module ARG GITLOCATION=https://github.com/PowerShell/PowerShell.git diff --git a/docker/tests/container.tests.ps1 b/docker/tests/container.tests.ps1 index 48165baf535..f484fdab1c5 100644 --- a/docker/tests/container.tests.ps1 +++ b/docker/tests/container.tests.ps1 @@ -76,7 +76,7 @@ Describe "Linux Containers run PowerShell" -Tags 'Behavior', 'Linux' { $path ) - Get-ContainerPowerShellVersion -TestContext $testContext -Name $Name -RepoName (Get-RepoName) | should be '6.0.1' + Get-ContainerPowerShellVersion -TestContext $testContext -Name $Name -RepoName (Get-RepoName) | should be '6.0.2' } } @@ -100,6 +100,6 @@ Describe "Windows Containers run PowerShell" -Tags 'Behavior', 'Windows' { $path ) - Get-ContainerPowerShellVersion -TestContext $testContext -Name $Name -RepoName (Get-RepoName) | should be '6.0.1' + Get-ContainerPowerShellVersion -TestContext $testContext -Name $Name -RepoName (Get-RepoName) | should be '6.0.2' } } diff --git a/docker/tests/containerTestCommon.psm1 b/docker/tests/containerTestCommon.psm1 index 683069644a2..bad8c4bfe4a 100644 --- a/docker/tests/containerTestCommon.psm1 +++ b/docker/tests/containerTestCommon.psm1 @@ -224,7 +224,7 @@ function Test-PSPackage [Parameter(Mandatory=$true)] $PSPackageLocation, # e.g. Azure storage [string] - $PSVersion = "6.0.1", + $PSVersion = "6.0.2", [string] $TestList = "/PowerShell/test/powershell/Modules/PackageManagement/PackageManagement.Tests.ps1,/PowerShell/test/powershell/engine/Module", [string] diff --git a/tools/metadata.json b/tools/metadata.json index ede35c815eb..80d160018e5 100644 --- a/tools/metadata.json +++ b/tools/metadata.json @@ -1,4 +1,4 @@ { - "ReleaseTag": "v6.0.1", - "NextReleaseTag": "v6.1.0-preview.1" + "ReleaseTag": "v6.0.2", + "NextReleaseTag": "v6.1.0-preview.1" } diff --git a/tools/releaseTools.psm1 b/tools/releaseTools.psm1 index 3518d515cc1..c4c83e7a5a3 100644 --- a/tools/releaseTools.psm1 +++ b/tools/releaseTools.psm1 @@ -248,4 +248,54 @@ function Get-NewOfficalPackage } } -Export-ModuleMember -Function Get-ChangeLog, Get-NewOfficalPackage +############################## +#.SYNOPSIS +# Update the version number in code +# +#.PARAMETER NewReleaseTag +# The new Release Tag +# +#.PARAMETER NextReleaseTag +# The next Release Tag +# +#.PARAMETER Path +# The path to the root of where you want to update +# +############################## +function Update-PsVersionInCode +{ + param( + [Parameter(Mandatory)] + [ValidatePattern("^v\d+\.\d+\.\d+(-\w+(\.\d+)?)?$")] + [String] + $NewReleaseTag, + + [Parameter(Mandatory)] + [ValidatePattern("^v\d+\.\d+\.\d+(-\w+(\.\d+)?)?$")] + [String] + $NextReleaseTag, + + [String] + $Path = (Join-path -Path $PSScriptRoot -ChildPath '..') + ) + + $metaDataPath = (Join-Path -Path $PSScriptRoot -ChildPath 'metadata.json') + $metaData = Get-Content -Path $metaDataPath | convertfrom-json + $currentTag = $metaData.ReleaseTag + + $currentVersion = $currentTag -replace '^v' + $newVersion = $NewReleaseTag -replace '^v' + $metaData.NextReleaseTag = $NextReleaseTag + Set-Content -path $metaDataPath -Encoding ascii -Force -Value ($metaData | convertto-json) + + Get-ChildItem -Path $Path -Recurse -File | + Where-Object {$_.Extension -notin '.icns','.svg' -and $_.NAME -ne 'CHANGELOG.md' -and $_.DirectoryName -notmatch '[\\/]docs|demos[\\/]'} | + Where-Object {$_ | Select-String -SimpleMatch $currentVersion -List} | + Foreach-Object { + $content = Get-Content -Path $_.FullName -Raw -ReadCount 0 + $newContent = $content.Replace($currentVersion,$newVersion) + Set-Content -path $_.FullName -Encoding ascii -Force -Value $newContent -NoNewline + } +} + +Export-ModuleMember -Function Get-ChangeLog, Get-NewOfficalPackage, Update-PsVersionInCode