diff --git a/.spelling b/.spelling index 0b7489bf02..c4f02d09fa 100644 --- a/.spelling +++ b/.spelling @@ -166,6 +166,33 @@ patwardhan adityapatwardhan ilya sazonov +beta.7 +PSObject +PSCredential +DottedScopes +Singleline +ergo3114 +AlternateStream +sarithsutha +cs +resx +korygill +MSBuild +amd64 +win7 +arm32 +thenewstellw +OpenSUSE +TraceSource +WebCmdlets +httpbin.org +PSSessionConfiguration +ProxyCommand +CsPhysicallyInstalledMemory +writingpestertests.md +ShouldBeErrorId +chucklu +md - demos/Azure/README.md AzureRM.NetCore.Preview AzureRM.Profile.NetCore.Preview diff --git a/CHANGELOG.md b/CHANGELOG.md index b25fb690fa..10661fbde1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,80 @@ # Changelog +## v6.0.0-beta.7 - 2017-09-13 + +### Breaking change + +* Fix `Get-Content -Delimiter` to not include the delimiter in the array elements returned (#3706) (Thanks @mklement0) +* Rename `$IsOSX` to `$IsMacOS` (#4757) + +### Engine updates and fixes + +* Use stricter rules when unwrapping a PSObject that wraps a COM object (#4614) +* Remove appended Windows PowerShell `PSModulePath` on Windows. (#4656) +* Ensure `GetNetworkCredential()` returns null if PSCredential has null or empty user name (#4697) +* Push locals of automatic variables to 'DottedScopes' when dotting script cmdlets (#4709) +* Fix `using module` when module has non-terminating errors handled with `SilentlyContinue` (#4711) (Thanks @iSazonov) +* Enable use of 'Singleline,Multiline' option in split operator (#4721) (Thanks @iSazonov) +* Fix error message in `ValidateSetAttribute.ValidateElement()` (#4722) (Thanks @iSazonov) + +### General cmdlet updates and fixes + +* Add Meta, Charset, and Transitional parameters to `ConvertTo-HTML` (#4184) (Thanks @ergo3114) +* Prevent `Test-ModuleManifest` from loading unnecessary modules (#4541) +* Remove AlternateStream code and `-Stream` from provider cmdlets on non-Windows (#4567) +* Add explicit ContentType detection to `Invoke-RestMethod` (#4692) +* Fix an error on `Enter-PSSession` exit (#4693) +* Add `-WhatIf` switch to `Start-Process` cmdlet (#4735) (Thanks @sarithsutha) +* Remove double spaces in .cs, .ps1, and .resx files (#4741 & #4743) (Thanks @korygill) +* Replace 'Windows PowerShell' with 'PowerShell' in resx files (#4758) (Thanks @iSazonov) + +### Build and Packaging Improvements + +* Refactor MSBuild project files to get PowerShell version from git tag (#4182) (Thanks @iSazonov) +* Create a single package for each Windows supported architecture (x86 and amd64) (#4540) +* Set the default windows RID to win7- (#4701) +* Enable cross-compiling for Raspberry-PI arm32 (#4742) +* Fix macOS brew reinstall command (#4627) (Thanks @TheNewStellW) +* Improvements to the Travis-CI script (#4689, #4731, #4807) +* Update OpenSUSE docker image to 42.2 (#4737) +* Confirm `Start-PSPackage` produces a package (#4795) + +### Code Cleanup + +* Remove Workflow code (#4777) +* Clean up CORECLR preprocessor directives in TraceSource (#4684) + +### Test + +* Add test WebListener module and tests for Web Cmdlet Certificate Authentication (#4622) (Thanks @markekraus) +* Move WebCmdlets HTTPS tests to WebListener (#4733) (Thanks @markekraus) +* Replace httpbin.org/get tests With WebListener (#4738) (Thanks @markekraus) +* Use `-PassThru` on Pester tests to reliably catch failures (#4644) +* Display the same number of tests regardless of platform (#4728) +* Improve comparison of code coverage values for a file (#4764) +* Silence PSSessionConfiguration test warning messages in the log (#4794) +* Add tests for + * `Get-Service` (#4773) + * `Set-Service` and `New-Service` (#4785) + * `Trace-Command` (#4288) + * `StaticParameter` (#4779) + * `Test-Wsman` (#4771) + * `New-Object -ComObject` (#4776) + * ProxyCommand APIs (#4791) +* Disable tests + * 'VC++ Redistributable'(#4673 & #4729) + * "Test 01. Standard Property test - all properties ()" due to missing CsPhysicallyInstalledMemory (#4763) + * `New-Service` failing test (#4806) + +### Documentation + +* Update WritingPesterTests.md to recommend ShouldBeErrorId (#4637) +* Clarify the Pull Request process, roles, and responsibilities (#4710) +* Add absolute URLs in the issue template and pull request template (#4718) (Thanks @chucklu) +* Add new approved Build and Deploy verbs (#4725) +* Update using-vscode.md to use the new exe path (#4736) +* Update coding guidelines to make it more concrete and useful in a review process (#4754) + ## v6.0.0-beta.6 - 2017-08-24 ### Breaking change diff --git a/README.md b/README.md index 53e74cfb4c..c8fcadcfb7 100644 --- a/README.md +++ b/README.md @@ -27,10 +27,8 @@ You can download and install a PowerShell package for any of the following platf | Platform | Downloads | How to Install | | ---------------------------------- | ---------------------- | ----------------------------- | -| Windows 10 / Server 2016 (x64) | [.msi][rl-windows10] | [Instructions][in-windows] | -| Windows 8.1 / Server 2012 R2 (x64) | [.msi][rl-windows81] | [Instructions][in-windows] | -| Windows 7 / Server 2008 R2 (x64) | [.msi][rl-windows7-64] | [Instructions][in-windows] | -| Windows 7 (x86) | [.msi][rl-windows7-86] | [Instructions][in-windows] | +| Windows (x64) | [.msi][rl-windows-64] | [Instructions][in-windows] | +| Windows (x86) | [.msi][rl-windows-86] | [Instructions][in-windows] | | Ubuntu 16.04 | [.deb][rl-ubuntu16] | [Instructions][in-ubuntu16] | | Ubuntu 14.04 | [.deb][rl-ubuntu14] | [Instructions][in-ubuntu14] | | Debian 8 | [.deb][rl-ubuntu14] | [Instructions][in-deb8] | @@ -43,15 +41,13 @@ You can download and install a PowerShell package for any of the following platf | Docker | | [Instructions][in-docker] | | Kali Linux | [.deb][rl-ubuntu16] | [Instructions][in-kali] -[rl-windows10]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.6/PowerShell-6.0.0-beta.6-win10-win2016-x64.msi -[rl-windows81]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.6/PowerShell-6.0.0-beta.6-win81-win2012r2-x64.msi -[rl-windows7-64]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.6/PowerShell-6.0.0-beta.6-win7-win2008r2-x64.msi -[rl-windows7-86]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.6/PowerShell-6.0.0-beta.6-win7-x86.msi -[rl-ubuntu16]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.6/powershell_6.0.0-beta.6-1ubuntu1.16.04.1_amd64.deb -[rl-ubuntu14]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.6/powershell_6.0.0-beta.6-1ubuntu1.14.04.1_amd64.deb -[rl-centos]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.6/powershell-6.0.0_beta.6-1.el7.x86_64.rpm -[rl-ai]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.6/PowerShell-6.0.0-beta.6-x86_64.AppImage -[rl-macos]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.6/powershell-6.0.0-beta.6-osx.10.12-x64.pkg +[rl-windows-64]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.7/PowerShell-6.0.0-beta.7-win-x64.msi +[rl-windows-86]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.7/PowerShell-6.0.0-beta.7-win-x86.msi +[rl-ubuntu16]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.7/powershell_6.0.0-beta.7-1ubuntu1.16.04.1_amd64.deb +[rl-ubuntu14]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.7/powershell_6.0.0-beta.7-1ubuntu1.14.04.1_amd64.deb +[rl-centos]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.7/powershell-6.0.0_beta.7-1.el7.x86_64.rpm +[rl-ai]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.7/PowerShell-6.0.0-beta.7-x86_64.AppImage +[rl-macos]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.7/powershell-6.0.0-beta.7-osx.10.12-x64.pkg [rl-opensuse421]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.6/powershell-6.0.0_beta.6-1.suse.42.1.x86_64.rpm [installation]: docs/installation diff --git a/docker/release/amazonlinux/Dockerfile b/docker/release/amazonlinux/Dockerfile index 328f4365e2..1815850aa3 100644 --- a/docker/release/amazonlinux/Dockerfile +++ b/docker/release/amazonlinux/Dockerfile @@ -2,7 +2,7 @@ FROM amazonlinux:latest -ARG POWERSHELL_VERSION=6.0.0-beta.6 +ARG POWERSHELL_VERSION=6.0.0-beta.7 ARG IMAGE_NAME=microsoft/powershell:amazonlinux LABEL maintainer="PowerShell Team " \ diff --git a/docker/release/centos7/Dockerfile b/docker/release/centos7/Dockerfile index ce64aa91d2..ed17441465 100644 --- a/docker/release/centos7/Dockerfile +++ b/docker/release/centos7/Dockerfile @@ -2,7 +2,7 @@ FROM centos:7 -ARG POWERSHELL_VERSION=6.0.0-beta.6 +ARG POWERSHELL_VERSION=6.0.0-beta.7 ARG IMAGE_NAME=microsoft/powershell:centos7 LABEL maintainer="PowerShell Team " \ diff --git a/docker/release/fedora24/Dockerfile b/docker/release/fedora24/Dockerfile index 0d76ac36f7..cc04103f55 100644 --- a/docker/release/fedora24/Dockerfile +++ b/docker/release/fedora24/Dockerfile @@ -3,9 +3,9 @@ FROM fedora:24 # TODO: Until a release of PowerShell for Fedora 24 is available, # this Dockerfile installs the CentOS 7 version for compatibility. -ARG POWERSHELL_VERSION=6.0.0-beta.6 -ARG POWERSHELL_RELEASE=v6.0.0-beta.6 -ARG POWERSHELL_PACKAGE=powershell-6.0.0_beta.6-1.el7.x86_64.rpm +ARG POWERSHELL_VERSION=6.0.0-beta.7 +ARG POWERSHELL_RELEASE=v6.0.0-beta.7 +ARG POWERSHELL_PACKAGE=powershell-6.0.0_beta.7-1.el7.x86_64.rpm ARG IMAGE_NAME=microsoft/powershell:fedora24 LABEL maintainer="PowerShell Team " \ diff --git a/docker/release/nanoserver-insider/Dockerfile b/docker/release/nanoserver-insider/Dockerfile index 5c23026893..e0ef088f68 100755 --- a/docker/release/nanoserver-insider/Dockerfile +++ b/docker/release/nanoserver-insider/Dockerfile @@ -10,9 +10,9 @@ ARG NanoServerRepo=microsoft/nanoserver-insider FROM ${WindowsServerCoreRepo}:$WindowsServerCoreVersion AS installer-env # Arguments for installing powershell, must be defined in the container they are used -ARG PS_VERSION=6.0.0-beta.6 +ARG PS_VERSION=6.0.0-beta.7 -ENV PS_DOWNLOAD_URL https://github.com/PowerShell/PowerShell/releases/download/v$PS_VERSION/PowerShell-$PS_VERSION-win10-win2016-x64.zip +ENV PS_DOWNLOAD_URL https://github.com/PowerShell/PowerShell/releases/download/v$PS_VERSION/PowerShell-$PS_VERSION-win-x64.zip SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] RUN Invoke-WebRequest $Env:PS_DOWNLOAD_URL -OutFile powershell.zip @@ -23,7 +23,7 @@ RUN Expand-Archive powershell.zip -DestinationPath \PowerShell FROM ${NanoServerRepo}:$NanoServerVersion ARG VCS_REF="none" -ARG PS_VERSION=6.0.0-beta.6 +ARG PS_VERSION=6.0.0-beta.7 ARG IMAGE_NAME=microsoft/nanoserver-insider-powershell LABEL maintainer="PowerShell Team " ` diff --git a/docker/release/nanoserver/Dockerfile b/docker/release/nanoserver/Dockerfile index 8d5376fe5e..ba9dc55176 100644 --- a/docker/release/nanoserver/Dockerfile +++ b/docker/release/nanoserver/Dockerfile @@ -1,8 +1,8 @@ # escape=` FROM microsoft/nanoserver:latest -ARG POWERSHELL_ZIP=https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.6/PowerShell-6.0.0-beta.6-win10-win2016-x64.zip -ARG POWERSHELL_VERSION=6.0.0-beta.6 +ARG POWERSHELL_ZIP=https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.7/PowerShell-6.0.0-beta.7-win-x64.zip +ARG POWERSHELL_VERSION=6.0.0-beta.7 ARG IMAGE_NAME=microsoft/powershell:nanoserver LABEL maintainer="PowerShell Team " ` @@ -25,7 +25,7 @@ LABEL maintainer="PowerShell Team " ` RUN setx /M PATH "%ProgramFiles%\PowerShell\latest;%PATH%" # Setup PowerShell - Log-to > C:\Docker.log SHELL ["C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe", "-command"] -ADD $POWERSHELL_ZIP /powershell-win10-x64.zip +ADD $POWERSHELL_ZIP /powershell-win-x64.zip # Install PowerShell package and clean up RUN $ErrorActionPreference='Stop'; ` @@ -36,7 +36,7 @@ RUN $ErrorActionPreference='Stop'; ` $VerInfo = Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' ; ` ('FullBuildString: '+$VerInfo.BuildLabEx) | Write-Output ; ` ('OperatingSystem: '+$VerInfo.ProductName+' '+$VerInfo.EditionId+' '+$VerInfo.InstallationType) | Write-Output ; ` - [System.IO.FileInfo]$ZipFile = Get-Item -Path ./powershell-win10-x64.zip ; ` + [System.IO.FileInfo]$ZipFile = Get-Item -Path ./powershell-win-x64.zip ; ` New-Item -Path $Env:ProgramFiles/PowerShell -ItemType Directory -Force | out-null ; ` [System.IO.DirectoryInfo]$PsFolder=New-Item -Path $Env:ProgramFiles\PowerShell -ItemType Directory -Force ; ` Add-Type -AssemblyName System.IO.Compression.ZipFile ; ` diff --git a/docker/release/ubuntu14.04/Dockerfile b/docker/release/ubuntu14.04/Dockerfile index b55280d830..d39500c50d 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.0-beta.6 +ARG POWERSHELL_VERSION=6.0.0-beta.7 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 6158456fc0..a6dbf4ef52 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.0-beta.6 +ARG POWERSHELL_VERSION=6.0.0-beta.7 ARG IMAGE_NAME=microsoft/powershell:ubuntu16.04 LABEL maintainer="PowerShell Team " \ diff --git a/docker/release/windowsservercore/Dockerfile b/docker/release/windowsservercore/Dockerfile index 79588e3234..24d25825b9 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.0-beta.6/PowerShell-6.0.0-beta.6-win10-win2016-x64.msi -ARG POWERSHELL_VERSION=6.0.0-beta.6 +ARG POWERSHELL_MSI=https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.7/PowerShell-6.0.0-beta.7-win-x64.msi +ARG POWERSHELL_VERSION=6.0.0-beta.7 ARG IMAGE_NAME=microsoft/powershell:windowsservercore LABEL maintainer="PowerShell Team " ` @@ -25,7 +25,7 @@ LABEL maintainer="PowerShell Team " ` RUN setx /M PATH "%ProgramFiles%\PowerShell\latest;%PATH%" # Setup PowerShell - Log-to > C:\Docker.log SHELL ["C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe", "-command"] -ADD $POWERSHELL_MSI /PowerShell-win10-x64.msi +ADD $POWERSHELL_MSI /PowerShell-win-x64.msi # Install PowerShell package and clean up RUN $ErrorActionPreference='Stop'; ` @@ -36,15 +36,15 @@ RUN $ErrorActionPreference='Stop'; ` $VerInfo = Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' ; ` ('FullBuildString: '+$VerInfo.BuildLabEx) | Write-Output ; ` ('OperatingSystem: '+$VerInfo.ProductName+' '+$VerInfo.EditionId+' '+$VerInfo.InstallationType) | Write-Output ; ` - [System.IO.FileInfo]$MsiFile = Get-Item -Path ./PowerShell-win10-x64.msi ; ` - Start-Process -FilePath msiexec.exe -ArgumentList '-qn','-i c:\PowerShell-win10-x64.msi', ` - '-log c:\PowerShell-win10-x64.msi.log','-norestart' -wait ; ` - $log=get-content -Path C:\PowerShell-win10-x64.msi.log -Last 10 ; ` + [System.IO.FileInfo]$MsiFile = Get-Item -Path ./PowerShell-win-x64.msi ; ` + Start-Process -FilePath msiexec.exe -ArgumentList '-qn','-i c:\PowerShell-win-x64.msi', ` + '-log c:\PowerShell-win-x64.msi.log','-norestart' -wait ; ` + $log=get-content -Path C:\PowerShell-win-x64.msi.log -Last 10 ; ` if ($log -match 'Installation success or error status: 0') { ` Remove-Item -Path $MsiFile ; ` $psexe=Get-Item -Path $Env:ProgramFiles\PowerShell\*\powershell.exe ; ` New-Item -Type SymbolicLink -Path $Env:ProgramFiles\PowerShell\ -Name latest -Value $psexe.DirectoryName ` - } else { throw 'Installation failed! See c:\PowerShell-win10-x64.msi.log' } ; + } else { throw 'Installation failed! See c:\PowerShell-win-x64.msi.log' } ; # Verify New Powershell.exe runs SHELL ["C:\\Program Files\\PowerShell\\latest\\PowerShell.exe", "-command"] diff --git a/docs/installation/linux.md b/docs/installation/linux.md index fe6590074d..646ecf70f7 100644 --- a/docs/installation/linux.md +++ b/docs/installation/linux.md @@ -55,13 +55,13 @@ from then on, you just need to use `sudo apt-get upgrade powershell` to update i ### Installation via Direct Download Using [Ubuntu 14.04][], download the Debian package -`powershell_6.0.0-beta.6-1ubuntu1.14.04.1_amd64.deb` +`powershell_6.0.0-beta.7-1ubuntu1.14.04.1_amd64.deb` from the [releases][] page onto the Ubuntu machine. Then execute the following in the terminal: ```sh -sudo dpkg -i powershell_6.0.0-beta.6-1ubuntu1.14.04.1_amd64.deb +sudo dpkg -i powershell_6.0.0-beta.7-1ubuntu1.14.04.1_amd64.deb sudo apt-get install -f ``` @@ -107,13 +107,13 @@ from then on, you just need to use `sudo apt-get upgrade powershell` to update i ### Installation via Direct Download - Ubuntu 16.04 Using [Ubuntu 16.04][], download the Debian package -`powershell_6.0.0-beta.6-1ubuntu1.16.04.1_amd64.deb` +`powershell_6.0.0-beta.7-1ubuntu1.16.04.1_amd64.deb` from the [releases][] page onto the Ubuntu machine. Then execute the following in the terminal: ```sh -sudo dpkg -i powershell_6.0.0-beta.6-1ubuntu1.16.04.1_amd64.deb +sudo dpkg -i powershell_6.0.0-beta.7-1ubuntu1.16.04.1_amd64.deb sudo apt-get install -f ``` @@ -160,13 +160,13 @@ from then on, you just need to use `sudo apt-get upgrade powershell` to update i ### Installation via Direct Download - Debian 8 Download the Debian package -`powershell_6.0.0-beta.6-1ubuntu1.14.04.1_amd64.deb` +`powershell_6.0.0-beta.7-1ubuntu1.14.04.1_amd64.deb` from the [releases][] page onto the Debian machine. Then execute the following in the terminal: ```sh -sudo dpkg -i powershell_6.0.0-beta.6-1ubuntu1.14.04.1_amd64.deb +sudo dpkg -i powershell_6.0.0-beta.7-1ubuntu1.14.04.1_amd64.deb sudo apt-get install -f ``` @@ -205,19 +205,19 @@ you just need to use `sudo yum update powershell` to update PowerShell. ### Installation via Direct Download - CentOS 7 Using [CentOS 7][], download the RPM package -`powershell-6.0.0_beta.6-1.el7.x86_64.rpm` +`powershell-6.0.0_beta.7-1.el7.x86_64.rpm` from the [releases][] page onto the CentOS machine. Then execute the following in the terminal: ```sh -sudo yum install ./powershell-6.0.0_beta.6-1.el7.x86_64.rpm +sudo yum install ./powershell-6.0.0_beta.7-1.el7.x86_64.rpm ``` You can also install the RPM without the intermediate step of downloading it: ```sh -sudo yum install https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.6/powershell-6.0.0_beta.6-1.el7.x86_64.rpm +sudo yum install https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.7/powershell-6.0.0_beta.7-1.el7.x86_64.rpm ``` ### Uninstallation - CentOS 7 @@ -251,19 +251,19 @@ you just need to use `sudo yum update powershell` to update PowerShell. ### Installation via Direct Download - Red Hat Enterprise Linux (RHEL) 7 Download the RPM package -`powershell-6.0.0_beta.6-1.el7.x86_64.rpm` +`powershell-6.0.0_beta.7-1.el7.x86_64.rpm` from the [releases][] page onto the Red Hat Enterprise Linux machine. Then execute the following in the terminal: ```sh -sudo yum install ./powershell-6.0.0_beta.6-1.el7.x86_64.rpm +sudo yum install ./powershell-6.0.0_beta.7-1.el7.x86_64.rpm ``` You can also install the RPM without the intermediate step of downloading it: ```sh -sudo yum install https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.6/powershell-6.0.0_beta.6-1.el7.x86_64.rpm +sudo yum install https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.7/powershell-6.0.0_beta.7-1.el7.x86_64.rpm ``` ### Uninstallation - Red Hat Enterprise Linux (RHEL) 7 @@ -319,14 +319,14 @@ For more information on installing packages from the AUR, see the [Arch Linux wi ## Linux AppImage Using a recent Linux distribution, -download the AppImage `PowerShell-6.0.0-beta.6-x86_64.AppImage` +download the AppImage `PowerShell-6.0.0-beta.7-x86_64.AppImage` from the [releases][] page onto the Linux machine. Then execute the following in the terminal: ```bash -chmod a+x PowerShell-6.0.0-beta.6-x86_64.AppImage -./PowerShell-6.0.0-beta.6-x86_64.AppImage +chmod a+x PowerShell-6.0.0-beta.7-x86_64.AppImage +./PowerShell-6.0.0-beta.7-x86_64.AppImage ``` The [AppImage][] lets you run PowerShell without installing it. @@ -374,14 +374,14 @@ brew cask reinstall powershell ### Installation via Direct Download - macOS 10.12 Using macOS 10.12, download the PKG package -`powershell-6.0.0-beta.6-osx.10.12-x64.pkg` +`powershell-6.0.0-beta.7-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.0-beta.6-osx.10.12-x64.pkg -target / +sudo installer -pkg powershell-6.0.0-beta.7-osx.10.12-x64.pkg -target / ``` ### Uninstallation - macOS 10.12 @@ -461,7 +461,7 @@ wget http://security.debian.org/debian-security/pool/updates/main/o/openssl/libs dpkg -i libssl1.0.0_1.0.1t-1+deb8u6_amd64.deb # Install PowerShell -dpkg -i powershell_6.0.0-beta.6-1ubuntu1.16.04.1_amd64.deb +dpkg -i powershell_6.0.0-beta.7-1ubuntu1.16.04.1_amd64.deb # Start PowerShell powershell @@ -471,24 +471,24 @@ powershell ```sh # Grab the latest App Image -wget https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.6/PowerShell-6.0.0-beta.6-x86_64.AppImage +wget https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.7/PowerShell-6.0.0-beta.7-x86_64.AppImage # Make executable -chmod a+x PowerShell-6.0.0-beta.6-x86_64.AppImage +chmod a+x PowerShell-6.0.0-beta.7-x86_64.AppImage # Start PowerShell -./PowerShell-6.0.0-beta.6-x86_64.AppImage +./PowerShell-6.0.0-beta.7-x86_64.AppImage ``` ### Uninstallation - Kali ```sh -dpkg -r powershell_6.0.0-beta.6-1ubuntu1.16.04.1_amd64 +dpkg -r powershell_6.0.0-beta.7-1ubuntu1.16.04.1_amd64 ``` ## Paths -* `$PSHOME` is `/opt/microsoft/powershell/6.0.0-beta.6/` +* `$PSHOME` is `/opt/microsoft/powershell/6.0.0-beta.7/` * User profiles will be read from `~/.config/powershell/profile.ps1` * Default profiles will be read from `$PSHOME/profile.ps1` * User modules will be read from `~/.local/share/powershell/Modules` @@ -503,7 +503,7 @@ On Linux and macOS, the [XDG Base Directory Specification][xdg-bds] is respected Note that because macOS is a derivation of BSD, instead of `/opt`, the prefix used is `/usr/local`. -Thus, `$PSHOME` is `/usr/local/microsoft/powershell/6.0.0-beta.6/`, +Thus, `$PSHOME` is `/usr/local/microsoft/powershell/6.0.0-beta.7/`, and the symlink is placed at `/usr/local/bin/powershell`. [releases]: https://github.com/PowerShell/PowerShell/releases/latest diff --git a/docs/installation/windows.md b/docs/installation/windows.md index 50c5484d9c..fdb3b9d753 100644 --- a/docs/installation/windows.md +++ b/docs/installation/windows.md @@ -49,7 +49,7 @@ $session = New-PSSession -ComputerName -Credential \powershell--win10-win2016-x64.zip c:\ -ToSession $session +Copy-Item \powershell--win-x64.zip c:\ -ToSession $session ``` * Enter the session @@ -62,7 +62,7 @@ Enter-PSSession $session ```powershell # Insert the appropriate version. -Expand-Archive -Path C:\powershell--win10-win2016-x64.zip -DestinationPath "C:\PowerShellCore_" +Expand-Archive -Path C:\powershell--win-x64.zip -DestinationPath "C:\PowerShellCore_" ``` * Follow the instructions to create a remoting endpoint using the [another instance technique](#executed-by-another-instance-of-powershell-on-behalf-of-the-instance-that-it-will-register). diff --git a/tools/download.sh b/tools/download.sh index 2c00d6da86..dfd68fbbdc 100755 --- a/tools/download.sh +++ b/tools/download.sh @@ -9,11 +9,11 @@ trap ' get_url() { fork=$2 - release=v6.0.0-beta.6 - echo "https://github.com/$fork/PowerShell/releases/download/$release/$1" + echo "https://github.com/$fork/PowerShell/releases/download/$3/$1" } fork="PowerShell" +release=v6.0.0-beta.7 # Get OS specific asset ID and package name case "$OSTYPE" in linux*) @@ -26,7 +26,7 @@ case "$OSTYPE" in sudo yum install -y curl fi - package=powershell-6.0.0_beta.6-1.el7.x86_64.rpm + package=powershell-6.0.0_beta.7-1.el7.x86_64.rpm ;; ubuntu) if ! hash curl 2>/dev/null; then @@ -36,10 +36,10 @@ case "$OSTYPE" in case "$VERSION_ID" in 14.04) - package=powershell_6.0.0-beta.6-1ubuntu1.14.04.1_amd64.deb + package=powershell_6.0.0-beta.7-1ubuntu1.14.04.1_amd64.deb ;; 16.04) - package=powershell_6.0.0-beta.6-1ubuntu1.16.04.1_amd64.deb + package=powershell_6.0.0-beta.7-1ubuntu1.16.04.1_amd64.deb ;; *) echo "Ubuntu $VERSION_ID is not supported!" >&2 @@ -56,6 +56,7 @@ case "$OSTYPE" in case "$VERSION_ID" in 42.1) package=powershell-6.0.0_beta.6-1.suse.42.1.x86_64.rpm + release=v6.0.0-beta.6 ;; *) echo "OpenSUSE $VERSION_ID is not supported!" >&2 @@ -69,7 +70,7 @@ case "$OSTYPE" in ;; darwin*) # We don't check for curl as macOS should have a system version - package=powershell-6.0.0-beta.6-osx.10.12-x64.pkg + package=powershell-6.0.0-beta.7-osx.10.12-x64.pkg ;; *) echo "$OSTYPE is not supported!" >&2 @@ -77,7 +78,7 @@ case "$OSTYPE" in ;; esac -curl -L -o "$package" $(get_url "$package" "$fork") +curl -L -o "$package" $(get_url "$package" "$fork" "$release") if [[ ! -r "$package" ]]; then echo "ERROR: $package failed to download! Aborting..." >&2