Skip to content

Commit ee5dc7a

Browse files
adityapatwardhanTravisEz13
authored andcommitted
Update copyright symbol for NuGet packages (#9936)
# Conflicts: # tools/packaging/packaging.strings.psd1
1 parent ff4c56b commit ee5dc7a

File tree

1 file changed

+45
-7
lines changed

1 file changed

+45
-7
lines changed

tools/packaging/packaging.strings.psd1

Lines changed: 45 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ case "$1" in
3939
;;
4040
esac
4141
'@
42+
4243
UbuntuAfterRemoveScript = @'
4344
#!/bin/sh
4445
set -e
@@ -48,11 +49,13 @@ case "$1" in
4849
;;
4950
esac
5051
'@
52+
5153
MacOSLauncherScript = @'
5254
#!/usr/bin/env bash
5355
open {0}
5456
'@
55-
MacOSLauncherPlistTemplate = @'
57+
58+
MacOSLauncherPlistTemplate = @'
5659
<?xml version="1.0" encoding="UTF-8"?>
5760
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
5861
<plist version="1.0">
@@ -82,8 +85,9 @@ MacOSLauncherPlistTemplate = @'
8285
</dict>
8386
</plist>
8487
'@
85-
# see https://developer.apple.com/library/content/documentation/DeveloperTools/Reference/DistributionDefinitionRef/Chapters/Distribution_XML_Ref.html
86-
OsxDistributionTemplate = @'
88+
89+
# see https://developer.apple.com/library/content/documentation/DeveloperTools/Reference/DistributionDefinitionRef/Chapters/Distribution_XML_Ref.html
90+
OsxDistributionTemplate = @'
8791
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
8892
<installer-gui-script minSpecVersion="1">
8993
<title>{0}</title>
@@ -107,7 +111,8 @@ OsxDistributionTemplate = @'
107111
<pkg-ref id="{4}" version="{1}" onConclusion="none">{2}</pkg-ref>
108112
</installer-gui-script>
109113
'@
110-
NuspecTemplate = @'
114+
115+
NuspecTemplate = @'
111116
<?xml version="1.0" encoding="utf-8"?>
112117
<package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd">
113118
<metadata>
@@ -116,13 +121,13 @@ NuspecTemplate = @'
116121
<authors>Microsoft</authors>
117122
<owners>Microsoft,PowerShell</owners>
118123
<requireLicenseAcceptance>true</requireLicenseAcceptance>
119-
<description>PowerShell runtime for hosting PowerShell Core</description>
124+
<description>Runtime for hosting PowerShell</description>
120125
<projectUrl>https://github.com/PowerShell/PowerShell</projectUrl>
121126
<iconUrl>https://github.com/PowerShell/PowerShell/blob/master/assets/Powershell_black_64.png?raw=true</iconUrl>
122127
<licenseUrl>https://github.com/PowerShell/PowerShell/blob/master/LICENSE.txt</licenseUrl>
123128
<tags>PowerShell</tags>
124129
<language>en-US</language>
125-
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
130+
<copyright>&#169; Microsoft Corporation. All rights reserved.</copyright>
126131
<contentFiles>
127132
<files include="**/*" buildAction="None" copyToOutput="true" flatten="false" />
128133
</contentFiles>
@@ -133,7 +138,7 @@ NuspecTemplate = @'
133138
</package>
134139
'@
135140

136-
NuGetConfigFile = @'
141+
NuGetConfigFile = @'
137142
<configuration>
138143
<packageSources>
139144
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
@@ -142,4 +147,37 @@ NuGetConfigFile = @'
142147
</packageSources>
143148
</configuration>
144149
'@
150+
151+
GlobalToolNuSpec = @'
152+
<?xml version="1.0" encoding="utf-8"?>
153+
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
154+
<metadata>
155+
<id>{0}</id>
156+
<version>{1}</version>
157+
<authors>Microsoft</authors>
158+
<owners>Microsoft,PowerShell</owners>
159+
<projectUrl>https://github.com/PowerShell/PowerShell</projectUrl>
160+
<iconUrl>https://github.com/PowerShell/PowerShell/blob/master/assets/Powershell_black_64.png?raw=true</iconUrl>
161+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
162+
<description>PowerShell global tool</description>
163+
<license type="expression">MIT</license>
164+
<tags>PowerShell</tags>
165+
<language>en-US</language>
166+
<copyright>&#169; Microsoft Corporation. All rights reserved.</copyright>
167+
<packageTypes>
168+
<packageType name="DotnetTool" />
169+
</packageTypes>
170+
</metadata>
171+
</package>
172+
'@
173+
174+
GlobalToolSettingsFile = @'
175+
<?xml version="1.0" encoding="utf-8"?>
176+
<DotNetCliTool Version="1">
177+
<Commands>
178+
<Command Name="pwsh" EntryPoint="{0}" Runner="dotnet" />
179+
</Commands>
180+
</DotNetCliTool>
181+
'@
182+
145183
}

0 commit comments

Comments
 (0)