v6.0.0-beta.5 release
This commit is contained in:
commit
d7428a2f90
12
.spelling
12
.spelling
|
@ -897,6 +897,18 @@ behavioral
|
|||
MiaRomero
|
||||
TheFlyingCorpse
|
||||
Youtube
|
||||
beta.5
|
||||
non-R2
|
||||
mwrock
|
||||
deserialization
|
||||
non-CIM
|
||||
DarwinJS
|
||||
bergmeister
|
||||
cleanup
|
||||
KirkMunro
|
||||
dchristian3188
|
||||
jeffbi
|
||||
PSScriptAnalyzer
|
||||
- test/tools/CodeCoverageAutomation/README.md
|
||||
CodeCoverage.zip
|
||||
Coveralls.exe
|
||||
|
|
58
CHANGELOG.md
58
CHANGELOG.md
|
@ -1,5 +1,63 @@
|
|||
# Changelog
|
||||
|
||||
## v6.0.0-beta.5 - 2017-08-02
|
||||
|
||||
### Breaking changes
|
||||
|
||||
* Remove the `*-Counter` cmdlets in `Microsoft.PowerShell.Diagnostics` due to the use of unsupported APIs until a better solution is found. (#4303)
|
||||
* Remove the `Microsoft.PowerShell.LocalAccounts` due to the use of unsupported APIs until a better solution is found. (#4302)
|
||||
|
||||
### Engine updates and fixes
|
||||
|
||||
* Fix the issue where PowerShell Core wasn't working on Windows 7 or Windows Server 2008 R2/2012 (non-R2). (#4463)
|
||||
* `ValidateSetAttribute` enhancement: support set values to be dynamically generated from a custom `ValidateSetValueGenerator`. (#3784) (Thanks to @iSazonov!)
|
||||
* Disable breaking into debugger on Ctrl+Break when running non-interactively. (#4283) (Thanks to @mwrock!)
|
||||
* Give error instead of crashing if WSMan client library is not available. (#4387)
|
||||
* Allow passing `$true`/`$false` as a parameter to scripts using `powershell.exe -File`. (#4178)
|
||||
* Enable `DataRow`/`DataRowView` adapters in PowerShell Core to fix an issue with `DataTable` usage. (#4258)
|
||||
* Fix an issue where PowerShell class static methods were being shared across `Runspace`s/`SessionState`s. (#4209)
|
||||
* Fix array expression to not return null or throw error. (#4296)
|
||||
* Fixes a CIM deserialization bug where corrupted CIM classes were instantiating non-CIM types. (#4234)
|
||||
* Improve error message when `HelpMessage` property of `ParameterAttribute` is set to empty string. (#4334)
|
||||
* Make `ShellExecuteEx` run in a STA thread. (#4362)
|
||||
|
||||
### General cmdlet updates and fixes
|
||||
|
||||
* Add `-SkipHeaderValidation` switch to `Invoke-WebRequest` and `Invoke-RestMethod` to support adding headers without validating the header value. (#4085)
|
||||
* Add support for `Invoke-Item -Path <folder>`. (#4262)
|
||||
* Fix `ConvertTo-Html` output when using a single column header. (#4276)
|
||||
* Fix output of `Length` for `FileInfo` when using `Format-List`. (#4437)
|
||||
* Fix an issue in implicit remoting where restricted sessions couldn't use `Get-FormatData –PowerShellVersion`. (#4222)
|
||||
* Fix an issue where `Register-PSSessionConfiguration` fails if `SessionConfig` folder doesn't exist. (#4271)
|
||||
|
||||
### Installer updates
|
||||
|
||||
* Create script to install latest PowerShell from Microsoft package repositories (or Homebrew) on non-Windows platforms. (#3608) (Thanks to @DarwinJS!)
|
||||
* Enable MSI upgrades rather than a side-by-side install. (#4259)
|
||||
* Add a checkbox to open PowerShell after the Windows MSI installer has finished. (#4203) (Thanks to @bergmeister!)
|
||||
* Add Amazon Linux compatibility to `install-powershell.sh`. (#4360) (Thanks to @DarwinJS!)
|
||||
* Add ability to package PowerShell Core as a NuGet package. (#4363)
|
||||
|
||||
### Build/test and code cleanup
|
||||
|
||||
* Add build check for MFC for Visual C++ during Windows builds.
|
||||
This fixes a long-standing (and very frustrating!) issue with missing build dependencies! (#4185) (Thanks to @KirkMunro!)
|
||||
* Move building Windows PSRP binary out of `Start-PSBuild`.
|
||||
Now `Start-PSBuild` doesn't build PSRP binary on windows. Instead, we consume the PSRP binary from a NuGet package. (#4335)
|
||||
* Add tests for built-in type accelerators. (#4230) (Thanks to @dchristian3188!)
|
||||
* Increase code coverage of `Get-ChildItem` on file system. (#4342) (Thanks to @jeffbi!)
|
||||
* Increase test coverage for `Rename-Item` and `Move-Item`. (#4329) (Thanks to @jeffbi!)
|
||||
* Add test coverage for Registry provider. (#4354) (Thanks to @jeffbi!)
|
||||
* Fix warnings and errors thrown by PSScriptAnalyzer. (#4261) (Thanks to @bergmeister!)
|
||||
* Fix regressions that cause implicit remoting tests to fail. (#4326)
|
||||
* Disable legacy UTC and SQM Windows telemetry by enclosing the code in '#if LEGACYTELEMETRY'. (#4190)
|
||||
|
||||
### Cleanup `#if CORECLR` code
|
||||
|
||||
PowerShell 6.0 will be exclusively built on top of CoreCLR,
|
||||
so we are removing a large amount of code that's built only for FullCLR.
|
||||
To read more about this, check out [this blog post](https://blogs.msdn.microsoft.com/powershell/2017/07/14/powershell-6-0-roadmap-coreclr-backwards-compatibility-and-more/).
|
||||
|
||||
## v6.0.0-beta.4 - 2017-07-12
|
||||
|
||||
## Windows PowerShell backwards compatibility
|
||||
|
|
20
README.md
20
README.md
|
@ -43,16 +43,16 @@ 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.4/PowerShell-6.0.0-beta.4-win10-win2016-x64.msi
|
||||
[rl-windows81]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.4/PowerShell-6.0.0-beta.4-win81-win2012r2-x64.msi
|
||||
[rl-windows7-64]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.18/PowerShell-6.0.0-alpha.18-win7-win2008r2-x64.msi
|
||||
[rl-windows7-86]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.18/PowerShell-6.0.0-alpha.18-win7-x86.msi
|
||||
[rl-ubuntu16]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.4/powershell_6.0.0-beta.4-1ubuntu1.16.04.1_amd64.deb
|
||||
[rl-ubuntu14]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.4/powershell_6.0.0-beta.4-1ubuntu1.14.04.1_amd64.deb
|
||||
[rl-centos]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.4/powershell-6.0.0_beta.4-1.el7.x86_64.rpm
|
||||
[rl-ai]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.4/PowerShell-6.0.0-beta.4-x86_64.AppImage
|
||||
[rl-macos]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.4/powershell-6.0.0-beta.4-osx.10.12-x64.pkg
|
||||
[rl-opensuse421]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.4/powershell-6.0.0_beta.4-1.suse.42.1.x86_64.rpm
|
||||
[rl-windows10]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.5/PowerShell-6.0.0-beta.5-win10-win2016-x64.msi
|
||||
[rl-windows81]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.5/PowerShell-6.0.0-beta.5-win81-win2012r2-x64.msi
|
||||
[rl-windows7-64]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.5/PowerShell-6.0.0-beta.5-win7-win2008r2-x64.msi
|
||||
[rl-windows7-86]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.5/PowerShell-6.0.0-beta.5-win7-x86.msi
|
||||
[rl-ubuntu16]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.5/powershell_6.0.0-beta.5-1ubuntu1.16.04.1_amd64.deb
|
||||
[rl-ubuntu14]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.5/powershell_6.0.0-beta.5-1ubuntu1.14.04.1_amd64.deb
|
||||
[rl-centos]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.5/powershell-6.0.0_beta.5-1.el7.x86_64.rpm
|
||||
[rl-ai]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.5/PowerShell-6.0.0-beta.5-x86_64.AppImage
|
||||
[rl-macos]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.5/powershell-6.0.0-beta.5-osx.10.12-x64.pkg
|
||||
[rl-opensuse421]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.5/powershell-6.0.0_beta.5-1.suse.42.1.x86_64.rpm
|
||||
|
||||
[installation]: docs/installation
|
||||
[in-windows]: docs/installation/windows.md#msi
|
||||
|
|
|
@ -1265,7 +1265,8 @@ function Start-PSBootstrap {
|
|||
if ($Package) {
|
||||
try {
|
||||
# We cannot guess if the user wants to run gem install as root
|
||||
Start-NativeExecution { gem install fpm ronn }
|
||||
Start-NativeExecution { gem install fpm -v 1.8.1 }
|
||||
Start-NativeExecution { gem install ronn }
|
||||
} catch {
|
||||
Write-Warning "Installation of fpm and ronn gems failed! Must resolve manually."
|
||||
}
|
||||
|
|
|
@ -6,9 +6,9 @@ LABEL description="This Dockerfile will install the latest release of PS."
|
|||
# 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.4
|
||||
ARG POWERSHELL_RELEASE=v6.0.0-beta.4
|
||||
ARG POWERSHELL_PACKAGE=powershell-6.0.0_beta.4-1.el7.x86_64.rpm
|
||||
ARG POWERSHELL_VERSION=6.0.0-beta.5
|
||||
ARG POWERSHELL_RELEASE=v6.0.0-beta.5
|
||||
ARG POWERSHELL_PACKAGE=powershell-6.0.0_beta.5-1.el7.x86_64.rpm
|
||||
|
||||
# The CentOS 7 release relies on an older version of libicu, so we'll be downloading it
|
||||
# from the University of Kent (GB) mirror service.
|
||||
|
|
|
@ -10,7 +10,7 @@ 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.4
|
||||
ARG PS_VERSION=6.0.0-beta.5
|
||||
ARG PS_DOWNLOAD_SHA=DAB8CC377D1BADD91688AEC9277D7696CC8DB2C25CECBCC934BD91AA7C724901
|
||||
|
||||
ENV PS_DOWNLOAD_URL https://github.com/PowerShell/PowerShell/releases/download/v$PS_VERSION/PowerShell-$PS_VERSION-win10-win2016-x64.zip
|
||||
|
|
|
@ -5,7 +5,7 @@ LABEL maintainer="PowerShell Team <powershellteam@hotmail.com>"
|
|||
LABEL readme.md="https://github.com/PowerShell/PowerShell/blob/master/docker/README.md"
|
||||
LABEL description="This Dockerfile will install the latest release of PS."
|
||||
|
||||
ARG POWERSHELL_ZIP=https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.4/PowerShell-6.0.0-beta.4-win10-win2016-x64.zip
|
||||
ARG POWERSHELL_ZIP=https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.5/PowerShell-6.0.0-beta.5-win10-win2016-x64.zip
|
||||
|
||||
RUN setx /M PATH "%ProgramFiles%\PowerShell\latest;%PATH%"
|
||||
# Setup PowerShell - Log-to > C:\Docker.log
|
||||
|
|
|
@ -5,8 +5,8 @@ LABEL maintainer="PowerShell Team <powershellteam@hotmail.com>"
|
|||
LABEL readme.md="https://github.com/PowerShell/PowerShell/blob/master/docker/README.md"
|
||||
LABEL description="This Dockerfile will install the latest release of PS."
|
||||
|
||||
ARG POWERSHELL_VERSION=6.0.0_beta.4
|
||||
ARG POWERSHELL_RELEASE=v6.0.0-beta.4
|
||||
ARG POWERSHELL_VERSION=6.0.0_beta.5
|
||||
ARG POWERSHELL_RELEASE=v6.0.0-beta.5
|
||||
ARG FORK=PowerShell
|
||||
ARG POWERSHELL_PACKAGE=powershell-$POWERSHELL_VERSION-1.suse.42.1.x86_64.rpm
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ LABEL maintainer="PowerShell Team <powershellteam@hotmail.com>"
|
|||
LABEL readme.md="https://github.com/PowerShell/PowerShell/blob/master/docker/README.md"
|
||||
LABEL description="This Dockerfile will install the latest release of PS."
|
||||
|
||||
ARG POWERSHELL_MSI=https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.4/PowerShell-6.0.0-beta.4-win10-win2016-x64.msi
|
||||
ARG POWERSHELL_MSI=https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.5/PowerShell-6.0.0-beta.5-win10-win2016-x64.msi
|
||||
|
||||
RUN setx /M PATH "%ProgramFiles%\PowerShell\latest;%PATH%"
|
||||
# Setup PowerShell - Log-to > C:\Docker.log
|
||||
|
|
|
@ -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.4-1ubuntu1.14.04.1_amd64.deb`
|
||||
`powershell_6.0.0-beta.5-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.4-1ubuntu1.14.04.1_amd64.deb
|
||||
sudo dpkg -i powershell_6.0.0-beta.5-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.4-1ubuntu1.16.04.1_amd64.deb`
|
||||
`powershell_6.0.0-beta.5-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.4-1ubuntu1.16.04.1_amd64.deb
|
||||
sudo dpkg -i powershell_6.0.0-beta.5-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.4-1ubuntu1.14.04.1_amd64.deb`
|
||||
`powershell_6.0.0-beta.5-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.4-1ubuntu1.14.04.1_amd64.deb
|
||||
sudo dpkg -i powershell_6.0.0-beta.5-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.4-1.el7.x86_64.rpm`
|
||||
`powershell-6.0.0_beta.5-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.4-1.el7.x86_64.rpm
|
||||
sudo yum install ./powershell-6.0.0_beta.5-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.4/powershell-6.0.0_beta.4-1.el7.x86_64.rpm
|
||||
sudo yum install https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.5/powershell-6.0.0_beta.5-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.4-1.el7.x86_64.rpm`
|
||||
`powershell-6.0.0_beta.5-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.4-1.el7.x86_64.rpm
|
||||
sudo yum install ./powershell-6.0.0_beta.5-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.4/powershell-6.0.0_beta.4-1.el7.x86_64.rpm
|
||||
sudo yum install https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.5/powershell-6.0.0_beta.5-1.el7.x86_64.rpm
|
||||
```
|
||||
|
||||
### Uninstallation - Red Hat Enterprise Linux (RHEL) 7
|
||||
|
@ -279,21 +279,21 @@ Installation instruction for OpenSUSE 42.1.
|
|||
### Installation via Direct Download - OpenSUSE 42.1
|
||||
|
||||
Using [OpenSUSE 42.1][], download the RPM package
|
||||
`powershell-6.0.0_beta.4-1.suse.42.1.x86_64.rpm`
|
||||
`powershell-6.0.0_beta.5-1.suse.42.1.x86_64.rpm`
|
||||
from the [releases][] page onto the OpenSUSE machine.
|
||||
|
||||
Then execute the following in the terminal:
|
||||
|
||||
```sh
|
||||
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
|
||||
sudo zypper install ./powershell-6.0.0_beta.4-1.suse.42.1.x86_64.rpm
|
||||
sudo zypper install ./powershell-6.0.0_beta.5-1.suse.42.1.x86_64.rpm
|
||||
```
|
||||
|
||||
You can also install the RPM without the intermediate step of downloading it:
|
||||
|
||||
```sh
|
||||
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
|
||||
sudo zypper install https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.4/powershell-6.0.0_beta.4-1.suse.42.1.x86_64.rpm
|
||||
sudo zypper install https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.5/powershell-6.0.0_beta.5-1.suse.42.1.x86_64.rpm
|
||||
```
|
||||
|
||||
### Uninstallation - OpenSUSE 42.1
|
||||
|
@ -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.4-x86_64.AppImage`
|
||||
download the AppImage `PowerShell-6.0.0-beta.5-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.4-x86_64.AppImage
|
||||
./PowerShell-6.0.0-beta.4-x86_64.AppImage
|
||||
chmod a+x PowerShell-6.0.0-beta.5-x86_64.AppImage
|
||||
./PowerShell-6.0.0-beta.5-x86_64.AppImage
|
||||
```
|
||||
|
||||
The [AppImage][] lets you run PowerShell without installing it.
|
||||
|
@ -340,14 +340,14 @@ and is a single binary.
|
|||
## macOS 10.12
|
||||
|
||||
Using macOS 10.12, download the PKG package
|
||||
`powershell-6.0.0-beta.4-osx.10.12-x64.pkg`
|
||||
`powershell-6.0.0-beta.5-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.4-osx.10.12-x64.pkg -target /
|
||||
sudo installer -pkg powershell-6.0.0-beta.5-osx.10.12-x64.pkg -target /
|
||||
```
|
||||
|
||||
### Uninstallation - macOS 10.12
|
||||
|
@ -421,7 +421,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.4-1ubuntu1.16.04.1_amd64.deb
|
||||
dpkg -i powershell_6.0.0-beta.5-1ubuntu1.16.04.1_amd64.deb
|
||||
|
||||
# Start PowerShell
|
||||
powershell
|
||||
|
@ -431,24 +431,24 @@ powershell
|
|||
|
||||
```sh
|
||||
# Grab the latest App Image
|
||||
wget https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.4/PowerShell-6.0.0-beta.4-x86_64.AppImage
|
||||
wget https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.5/PowerShell-6.0.0-beta.5-x86_64.AppImage
|
||||
|
||||
# Make executable
|
||||
chmod a+x PowerShell-6.0.0-beta.4-x86_64.AppImage
|
||||
chmod a+x PowerShell-6.0.0-beta.5-x86_64.AppImage
|
||||
|
||||
# Start PowerShell
|
||||
./PowerShell-6.0.0-beta.4-x86_64.AppImage
|
||||
./PowerShell-6.0.0-beta.5-x86_64.AppImage
|
||||
```
|
||||
|
||||
### Uninstallation - Kali
|
||||
|
||||
```sh
|
||||
dpkg -r powershell_6.0.0-beta.4-1ubuntu1.16.04.1_amd64
|
||||
dpkg -r powershell_6.0.0-beta.5-1ubuntu1.16.04.1_amd64
|
||||
```
|
||||
|
||||
## Paths
|
||||
|
||||
* `$PSHOME` is `/opt/microsoft/powershell/6.0.0-beta.4/`
|
||||
* `$PSHOME` is `/opt/microsoft/powershell/6.0.0-beta.5/`
|
||||
* 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`
|
||||
|
@ -463,7 +463,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.4/`,
|
||||
Thus, `$PSHOME` is `/usr/local/microsoft/powershell/6.0.0-beta.5/`,
|
||||
and the symlink is placed at `/usr/local/bin/powershell`.
|
||||
|
||||
[releases]: https://github.com/PowerShell/PowerShell/releases/latest
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
<PackageReference Include="System.Text.Encodings.Web" Version="4.4.0-preview3-25423-02" />
|
||||
<PackageReference Include="System.Threading.AccessControl" Version="4.4.0-preview3-25423-02" />
|
||||
<PackageReference Include="System.Private.ServiceModel" Version="4.4.0-preview3-25423-01" />
|
||||
<PackageReference Include="Microsoft.NETCore.Windows.ApiSets" Version="1.0.1" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -9,7 +9,7 @@ trap '
|
|||
|
||||
get_url() {
|
||||
fork=$2
|
||||
release=v6.0.0-beta.4
|
||||
release=v6.0.0-beta.5
|
||||
echo "https://github.com/$fork/PowerShell/releases/download/$release/$1"
|
||||
}
|
||||
|
||||
|
@ -26,7 +26,7 @@ case "$OSTYPE" in
|
|||
sudo yum install -y curl
|
||||
fi
|
||||
|
||||
package=powershell-6.0.0_beta.4-1.el7.x86_64.rpm
|
||||
package=powershell-6.0.0_beta.5-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.4-1ubuntu1.14.04.1_amd64.deb
|
||||
package=powershell_6.0.0-beta.5-1ubuntu1.14.04.1_amd64.deb
|
||||
;;
|
||||
16.04)
|
||||
package=powershell_6.0.0-beta.4-1ubuntu1.16.04.1_amd64.deb
|
||||
package=powershell_6.0.0-beta.5-1ubuntu1.16.04.1_amd64.deb
|
||||
;;
|
||||
*)
|
||||
echo "Ubuntu $VERSION_ID is not supported!" >&2
|
||||
|
@ -55,7 +55,7 @@ case "$OSTYPE" in
|
|||
|
||||
case "$VERSION_ID" in
|
||||
42.1)
|
||||
package=powershell-6.0.0_beta.4-1.suse.42.1.x86_64.rpm
|
||||
package=powershell-6.0.0_beta.5-1.suse.42.1.x86_64.rpm
|
||||
;;
|
||||
*)
|
||||
echo "OpenSUSE $VERSION_ID is not supported!" >&2
|
||||
|
@ -69,7 +69,7 @@ case "$OSTYPE" in
|
|||
;;
|
||||
darwin*)
|
||||
# We don't check for curl as macOS should have a system version
|
||||
package=powershell-6.0.0-beta.4-osx.10.12-x64.pkg
|
||||
package=powershell-6.0.0-beta.5-osx.10.12-x64.pkg
|
||||
;;
|
||||
*)
|
||||
echo "$OSTYPE is not supported!" >&2
|
||||
|
|
|
@ -555,7 +555,9 @@ function New-ZipPackage
|
|||
# Source Path to the Product Files - required to package the contents into an Zip
|
||||
[Parameter(Mandatory = $true)]
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[string] $PackageSourcePath
|
||||
[string] $PackageSourcePath,
|
||||
|
||||
[switch] $Force
|
||||
)
|
||||
|
||||
$ProductSemanticVersion = Get-PackageSemanticVersion -Version $PackageVersion
|
||||
|
|
Loading…
Reference in a new issue