@{ Description = @' PowerShell is an automation and configuration management platform. It consists of a cross-platform command-line shell and associated scripting language. '@ RedHatAfterInstallScript = @' #!/bin/sh if [ ! -f /etc/shells ] ; then echo "{0}" > /etc/shells else grep -q "^{0}$" /etc/shells || echo "{0}" >> /etc/shells fi if [ -f /lib64/libssl.so.1.1 ] ; then ln -f -s /lib64/libssl.so.1.1 {1}/libssl.so.1.0.0 ln -f -s /lib64/libcrypto.so.1.1.1 {1}/libcrypto.so.1.0.0 else ln -f -s /lib64/libssl.so.10 {1}/libssl.so.1.0.0 ln -f -s /lib64/libcrypto.so.10 {1}/libcrypto.so.1.0.0 fi '@ RedHatAfterRemoveScript = @' if [ "$1" = 0 ] ; then if [ -f /etc/shells ] ; then TmpFile=`/bin/mktemp /tmp/.powershellmXXXXXX` grep -v '^{0}$' /etc/shells > $TmpFile cp -f $TmpFile /etc/shells rm -f $TmpFile rm -f {1}/libssl.so.1.0.0 rm -f {1}/libcrypto.so.1.0.0 fi fi '@ UbuntuAfterInstallScript = @' #!/bin/sh set -e case "$1" in (configure) add-shell "{0}" ;; (abort-upgrade|abort-remove|abort-deconfigure) exit 0 ;; (*) echo "postinst called with unknown argument '$1'" >&2 exit 0 ;; esac if [ -f /usr/lib/x86_64-linux-gnu/libssl.so.1.1 ] ; then ln -f -s /usr/lib/x86_64-linux-gnu/libssl.so.1.1 {1}/libssl.so.1.0.0 ln -f -s /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 {1}/libcrypto.so.1.0.0 elif [ -f /usr/lib/x86_64-linux-gnu/libssl.so.1.0.2 ] ; then ln -f -s /usr/lib/x86_64-linux-gnu/libssl.so.1.0.2 {1}/libssl.so.1.0.0 ln -f -s /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.2 {1}/libcrypto.so.1.0.0 else ln -f -s /lib64/libssl.so.10 {1}/libssl.so.1.0.0 ln -f -s /lib64/libcrypto.so.10 {1}/libcrypto.so.1.0.0 fi '@ UbuntuAfterRemoveScript = @' #!/bin/sh set -e case "$1" in (remove) remove-shell "{0}" rm -f {1}/libssl.so.1.0.0 rm -f {1}/libcrypto.so.1.0.0 ;; esac '@ MacOSAfterInstallScript = @' #!/bin/bash if [ ! -f /etc/shells ] ; then echo "{0}" > /etc/shells else grep -q "^{0}$" /etc/shells || echo "{0}" >> /etc/shells fi '@ MacOSLauncherScript = @' #!/usr/bin/env bash open {0} '@ MacOSLauncherPlistTemplate = @' CFBundleExecutable PowerShell.sh CFBundleGetInfoString {1} CFBundleIconFile {2} CFBundleIdentifier {0} CFBundleInfoDictionaryVersion 6.0 CFBundleName PowerShell CFBundlePackageType APPL CFBundleShortVersionString {1} CFBundleSupportedPlatforms MacOSX CFBundleVersion {1} '@ # see https://developer.apple.com/library/content/documentation/DeveloperTools/Reference/DistributionDefinitionRef/Chapters/Distribution_XML_Ref.html OsxDistributionTemplate = @' {0} {2} '@ NuspecTemplate = @' {0} {1} Microsoft Microsoft,PowerShell false Runtime for hosting PowerShell https://github.com/PowerShell/PowerShell {2} MIT PowerShell en-US © Microsoft Corporation. All rights reserved. '@ GlobalToolNuSpec = @' {0} {1} Microsoft Microsoft,PowerShell https://github.com/PowerShell/PowerShell {2} false PowerShell global tool MIT PowerShell en-US © Microsoft Corporation. All rights reserved. '@ WindowsX64GlobalToolNuspec = @' PowerShelll.Windows.x64 {0} Microsoft Microsoft,PowerShell https://github.com/PowerShell/PowerShell Powershell_64.png false PowerShell global tool MIT PowerShell en-US © Microsoft Corporation. All rights reserved. '@ GlobalToolSettingsFile = @' '@ }