Team Ai
Datasetpublic

MegaBites-AI/Windows-powershell

sourceHugging Facemitupdated 6mo agoView on Hugging Face
0likes372downloads
packaging.strings.psd1231 linesDownload Raw Back to packaging
1@{2    Description = @'3PowerShell is an automation and configuration management platform.4It consists of a cross-platform command-line shell and associated scripting language.5'@6 7    RedHatAfterInstallScript = @'8#!/bin/sh9if [ ! -f /etc/shells ] ; then10    echo "{0}" > /etc/shells11else12    grep -q "^{0}$" /etc/shells || echo "{0}" >> /etc/shells13fi14if [ -f /lib64/libssl.so.1.1 ] ; then15    ln -f -s /lib64/libssl.so.1.1 {1}/libssl.so.1.0.016    ln -f -s /lib64/libcrypto.so.1.1.1 {1}/libcrypto.so.1.0.017else18    ln -f -s /lib64/libssl.so.10 {1}/libssl.so.1.0.019    ln -f -s /lib64/libcrypto.so.10 {1}/libcrypto.so.1.0.020fi21 22'@23 24    RedHatAfterRemoveScript = @'25if [ "$1" = 0 ] ; then26    if [ -f /etc/shells ] ; then27        TmpFile=`/bin/mktemp /tmp/.powershellmXXXXXX`28        grep -v '^{0}$' /etc/shells > $TmpFile29        cp -f $TmpFile /etc/shells30        rm -f $TmpFile31        rm -f {1}/libssl.so.1.0.032        rm -f {1}/libcrypto.so.1.0.033    fi34fi35'@36    UbuntuAfterInstallScript = @'37#!/bin/sh38set -e39case "$1" in40    (configure)41        add-shell "{0}"42    ;;43    (abort-upgrade|abort-remove|abort-deconfigure)44        exit 045    ;;46    (*)47        echo "postinst called with unknown argument '$1'" >&248        exit 049    ;;50esac51 52if [ -f /usr/lib/x86_64-linux-gnu/libssl.so.1.1 ] ; then53    ln -f -s /usr/lib/x86_64-linux-gnu/libssl.so.1.1 {1}/libssl.so.1.0.054    ln -f -s /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 {1}/libcrypto.so.1.0.055elif [ -f /usr/lib/x86_64-linux-gnu/libssl.so.1.0.2 ] ; then56    ln -f -s /usr/lib/x86_64-linux-gnu/libssl.so.1.0.2 {1}/libssl.so.1.0.057    ln -f -s /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.2 {1}/libcrypto.so.1.0.058else59    ln -f -s /lib64/libssl.so.10 {1}/libssl.so.1.0.060    ln -f -s /lib64/libcrypto.so.10 {1}/libcrypto.so.1.0.061fi62 63'@64 65    UbuntuAfterRemoveScript = @'66#!/bin/sh67set -e68case "$1" in69        (remove)70        remove-shell "{0}"71        rm -f {1}/libssl.so.1.0.072        rm -f {1}/libcrypto.so.1.0.073        ;;74esac75'@76 77    MacOSAfterInstallScript = @'78#!/bin/bash79 80if [ ! -f /etc/shells ] ; then81    echo "{0}" > /etc/shells82else83    grep -q "^{0}$" /etc/shells || echo "{0}" >> /etc/shells84fi85'@86 87    MacOSLauncherScript = @'88#!/usr/bin/env bash89open {0}90'@91 92    MacOSLauncherPlistTemplate = @'93<?xml version="1.0" encoding="UTF-8"?>94<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">95<plist version="1.0">96<dict>97    <key>CFBundleExecutable</key>98    <string>PowerShell.sh</string>99    <key>CFBundleGetInfoString</key>100    <string>{1}</string>101    <key>CFBundleIconFile</key>102    <string>{2}</string>103    <key>CFBundleIdentifier</key>104    <string>{0}</string>105    <key>CFBundleInfoDictionaryVersion</key>106    <string>6.0</string>107    <key>CFBundleName</key>108    <string>PowerShell</string>109    <key>CFBundlePackageType</key>110    <string>APPL</string>111    <key>CFBundleShortVersionString</key>112    <string>{1}</string>113    <key>CFBundleSupportedPlatforms</key>114    <array>115        <string>MacOSX</string>116    </array>117    <key>CFBundleVersion</key>118    <string>{1}</string>119</dict>120</plist>121'@122 123    # see https://developer.apple.com/library/content/documentation/DeveloperTools/Reference/DistributionDefinitionRef/Chapters/Distribution_XML_Ref.html124    OsxDistributionTemplate = @'125<?xml version="1.0" encoding="utf-8" standalone="yes"?>126<installer-gui-script minSpecVersion="1">127    <title>{0}</title>128    <options hostArchitectures="{5}"/>129    <options customize="never" rootVolumeOnly="true"/>130    <background file="macDialog.png" scaling="tofit" alignment="bottomleft"/>131    <allowed-os-versions>132        <os-version min="{3}" />133    </allowed-os-versions>134    <options customize="never" require-scripts="false"/>135    <product id="{4}" version="{1}" />136    <choices-outline>137        <line choice="default">138            <line choice="powershell"/>139        </line>140    </choices-outline>141    <choice id="default"/>142    <choice id="powershell" visible="false">143        <pkg-ref id="{4}"/>144    </choice>145    <pkg-ref id="{4}" version="{1}" onConclusion="none">{2}</pkg-ref>146</installer-gui-script>147'@148 149    NuspecTemplate = @'150<?xml version="1.0" encoding="utf-8"?>151<package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd">152    <metadata>153        <id>{0}</id>154        <version>{1}</version>155        <authors>Microsoft</authors>156        <owners>Microsoft,PowerShell</owners>157        <requireLicenseAcceptance>false</requireLicenseAcceptance>158        <description>Runtime for hosting PowerShell</description>159        <projectUrl>https://github.com/PowerShell/PowerShell</projectUrl>160        <icon>{2}</icon>161        <license type="expression">MIT</license>162        <tags>PowerShell</tags>163        <language>en-US</language>164        <copyright>&#169; Microsoft Corporation. All rights reserved.</copyright>165        <contentFiles>166            <files include="**/*" buildAction="None" copyToOutput="true" flatten="false" />167        </contentFiles>168        <dependencies>169            <group targetFramework="net11.0"></group>170        </dependencies>171    </metadata>172</package>173'@174 175    GlobalToolNuSpec = @'176<?xml version="1.0" encoding="utf-8"?>177<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">178    <metadata>179        <id>{0}</id>180        <version>{1}</version>181        <authors>Microsoft</authors>182        <owners>Microsoft,PowerShell</owners>183        <projectUrl>https://github.com/PowerShell/PowerShell</projectUrl>184        <icon>{2}</icon>185        <requireLicenseAcceptance>false</requireLicenseAcceptance>186        <description>PowerShell global tool</description>187        <license type="expression">MIT</license>188        <tags>PowerShell</tags>189        <language>en-US</language>190        <copyright>&#169; Microsoft Corporation. All rights reserved.</copyright>191        <packageTypes>192            <packageType name="DotnetTool" />193        </packageTypes>194    </metadata>195</package>196'@197 198    WindowsX64GlobalToolNuspec = @'199<?xml version="1.0" encoding="utf-8"?>200<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">201    <metadata>202        <id>PowerShelll.Windows.x64</id>203        <version>{0}</version>204        <authors>Microsoft</authors>205        <owners>Microsoft,PowerShell</owners>206        <projectUrl>https://github.com/PowerShell/PowerShell</projectUrl>207        <icon>Powershell_64.png</icon>208        <requireLicenseAcceptance>false</requireLicenseAcceptance>209        <description>PowerShell global tool</description>210        <license type="expression">MIT</license>211        <tags>PowerShell</tags>212        <language>en-US</language>213        <copyright>&#169; Microsoft Corporation. All rights reserved.</copyright>214        <packageTypes>215            <packageType name="DotnetTool" />216        </packageTypes>217    </metadata>218</package>219'@220 221    GlobalToolSettingsFile = @'222<?xml version="1.0" encoding="utf-8"?>223<DotNetCliTool Version="1">224    <Commands>225        <Command Name="pwsh" EntryPoint="{0}" Runner="dotnet" />226    </Commands>227</DotNetCliTool>228'@229 230}231