From 5183da675d34c9dce55065ddbe24ebb212c3999b Mon Sep 17 00:00:00 2001 From: Dongbo Wang Date: Fri, 16 Mar 2018 21:32:19 -0700 Subject: [PATCH] Update version number in macos.md and windows.md --- docs/installation/macos.md | 14 +++++++------- docs/installation/windows.md | 14 +++++++------- tools/packaging/packaging.psm1 | 1 - 3 files changed, 14 insertions(+), 15 deletions(-) diff --git a/docs/installation/macos.md b/docs/installation/macos.md index 8f321384b17..4163699b46e 100644 --- a/docs/installation/macos.md +++ b/docs/installation/macos.md @@ -41,14 +41,14 @@ brew cask upgrade powershell ### Installation via Direct Download Using macOS 10.12+, download the PKG package -`powershell-6.0.1-osx.10.12-x64.pkg` +`powershell-6.0.2-osx.10.12-x64.pkg` from the [releases][] page onto the macOS machine. Either double-click the file and follow the prompts, or install it from the terminal: ```sh -sudo installer -pkg powershell-6.0.1-osx.10.12-x64.pkg -target / +sudo installer -pkg powershell-6.0.2-osx.10.12-x64.pkg -target / ``` [releases]: https://github.com/PowerShell/PowerShell/releases @@ -57,19 +57,19 @@ sudo installer -pkg powershell-6.0.1-osx.10.12-x64.pkg -target / ```sh # Download the powershell '.tar.gz' archive -curl -L -o /tmp/powershell.tar.gz https://github.com/PowerShell/PowerShell/releases/download/v6.0.1/powershell-6.0.1-osx-x64.tar.gz +curl -L -o /tmp/powershell.tar.gz https://github.com/PowerShell/PowerShell/releases/download/v6.0.2/powershell-6.0.2-osx-x64.tar.gz # Create the target folder where powershell will be placed -sudo mkdir -p /usr/local/microsoft/powershell/6.0.1 +sudo mkdir -p /usr/local/microsoft/powershell/6.0.2 # Expand powershell to the target folder -sudo tar zxf /tmp/powershell.tar.gz -C /usr/local/microsoft/powershell/6.0.1 +sudo tar zxf /tmp/powershell.tar.gz -C /usr/local/microsoft/powershell/6.0.2 # Set execute permissions -sudo chmod +x /usr/local/microsoft/powershell/6.0.1/pwsh +sudo chmod +x /usr/local/microsoft/powershell/6.0.2/pwsh # Create the symbolic link that points to pwsh -sudo ln -s /usr/local/microsoft/powershell/6.0.1/pwsh /usr/local/bin/pwsh +sudo ln -s /usr/local/microsoft/powershell/6.0.2/pwsh /usr/local/bin/pwsh ``` ### Uninstallation diff --git a/docs/installation/windows.md b/docs/installation/windows.md index aac9890b882..660f8a1c9e1 100644 --- a/docs/installation/windows.md +++ b/docs/installation/windows.md @@ -45,7 +45,7 @@ $s = New-PSSession -ComputerName -Credential Administrator ```powershell # change the destination to however you had partitioned it with sufficient space for the zip and the unzipped contents # the path should be local to the device -Copy-Item .\PowerShell-6.0.1-win-arm32.zip -Destination u:\users\administrator\Downloads -ToSession $s +Copy-Item .\PowerShell-6.0.2-win-arm32.zip -Destination u:\users\administrator\Downloads -ToSession $s ``` * Connect to the device and expand the archive @@ -53,13 +53,13 @@ Copy-Item .\PowerShell-6.0.1-win-arm32.zip -Destination u:\users\administrator\D ```powershell Enter-PSSession $s cd u:\users\administrator\downloads -Expand-Archive .\PowerShell-6.0.1-win-arm32.zip +Expand-Archive .\PowerShell-6.0.2-win-arm32.zip ``` * Setup remoting to PowerShell Core 6 ```powershell -cd .\PowerShell-6.0.1-win-arm32 +cd .\PowerShell-6.0.2-win-arm32 # Be sure to use the -PowerShellHome parameter otherwise it'll try to create a new endpoint with Windows PowerShell 5.1 .\Install-PowerShellRemoting.ps1 -PowerShellHome . # You'll get an error message and will be disconnected from the device because it has to restart WinRM @@ -69,7 +69,7 @@ cd .\PowerShell-6.0.1-win-arm32 ```powershell # Be sure to use the -Configuration parameter. If you omit it, you will connect to Windows PowerShell 5.1 -Enter-PSSession -ComputerName -Credential Administrator -Configuration powershell.6.0.1 +Enter-PSSession -ComputerName -Credential Administrator -Configuration powershell.6.0.2 ``` ## Deploying on Nano Server @@ -161,7 +161,7 @@ Install-PowerShellRemoting.ps1 For Example: ``` powershell -& 'C:\Program Files\PowerShell\6.0.1\Install-PowerShellRemoting.ps1' -PowerShellHome 'C:\Program Files\PowerShell\6.0.1\' +& 'C:\Program Files\PowerShell\6.0.2\Install-PowerShellRemoting.ps1' -PowerShellHome 'C:\Program Files\PowerShell\6.0.2\' ``` **NOTE:** The remoting registration script will restart WinRM, so all existing PSRP sessions will terminate immediately after the script is run. If run during a remote session, this will terminate the connection. @@ -171,8 +171,8 @@ For Example: Create a PowerShell session to the new PowerShell endpoint by specifying `-ConfigurationName "some endpoint name"`. To connect to the PowerShell instance from the example above, use either: ``` powershell -New-PSSession ... -ConfigurationName "powershell.6.0.1" -Enter-PSSession ... -ConfigurationName "powershell.6.0.1" +New-PSSession ... -ConfigurationName "powershell.6.0.2" +Enter-PSSession ... -ConfigurationName "powershell.6.0.2" ``` Note that `New-PSSession` and `Enter-PSSession` invocations that do not specify `-ConfigurationName` will target the default PowerShell endpoint, `microsoft.powershell`. diff --git a/tools/packaging/packaging.psm1 b/tools/packaging/packaging.psm1 index 07fee333bb7..4650db622aa 100644 --- a/tools/packaging/packaging.psm1 +++ b/tools/packaging/packaging.psm1 @@ -1071,7 +1071,6 @@ function New-ManGzip $RoffFile = $RonnFile -replace "\.ronn$" # Run ronn on assets file - # Run does not play well with files named powershell6.0.1, so we generate and then rename Start-NativeExecution { ronn --roff $RonnFile } # gzip in assets directory