@@ -39,6 +39,7 @@ case "$1" in
39
39
;;
40
40
esac
41
41
'@
42
+
42
43
UbuntuAfterRemoveScript = @'
43
44
#!/bin/sh
44
45
set -e
@@ -48,11 +49,13 @@ case "$1" in
48
49
;;
49
50
esac
50
51
'@
52
+
51
53
MacOSLauncherScript = @'
52
54
#!/usr/bin/env bash
53
55
open {0}
54
56
'@
55
- MacOSLauncherPlistTemplate = @'
57
+
58
+ MacOSLauncherPlistTemplate = @'
56
59
<?xml version="1.0" encoding="UTF-8"?>
57
60
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
58
61
<plist version="1.0">
@@ -82,8 +85,9 @@ MacOSLauncherPlistTemplate = @'
82
85
</dict>
83
86
</plist>
84
87
'@
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 = @'
87
91
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
88
92
<installer-gui-script minSpecVersion="1">
89
93
<title>{0}</title>
@@ -107,7 +111,8 @@ OsxDistributionTemplate = @'
107
111
<pkg-ref id="{4}" version="{1}" onConclusion="none">{2}</pkg-ref>
108
112
</installer-gui-script>
109
113
'@
110
- NuspecTemplate = @'
114
+
115
+ NuspecTemplate = @'
111
116
<?xml version="1.0" encoding="utf-8"?>
112
117
<package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd">
113
118
<metadata>
@@ -116,13 +121,13 @@ NuspecTemplate = @'
116
121
<authors>Microsoft</authors>
117
122
<owners>Microsoft,PowerShell</owners>
118
123
<requireLicenseAcceptance>true</requireLicenseAcceptance>
119
- <description>PowerShell runtime for hosting PowerShell Core </description>
124
+ <description>Runtime for hosting PowerShell</description>
120
125
<projectUrl>https://github.com/PowerShell/PowerShell</projectUrl>
121
126
<iconUrl>https://github.com/PowerShell/PowerShell/blob/master/assets/Powershell_black_64.png?raw=true</iconUrl>
122
127
<licenseUrl>https://github.com/PowerShell/PowerShell/blob/master/LICENSE.txt</licenseUrl>
123
128
<tags>PowerShell</tags>
124
129
<language>en-US</language>
125
- <copyright>© Microsoft Corporation. All rights reserved.</copyright>
130
+ <copyright>© Microsoft Corporation. All rights reserved.</copyright>
126
131
<contentFiles>
127
132
<files include="**/*" buildAction="None" copyToOutput="true" flatten="false" />
128
133
</contentFiles>
@@ -133,7 +138,7 @@ NuspecTemplate = @'
133
138
</package>
134
139
'@
135
140
136
- NuGetConfigFile = @'
141
+ NuGetConfigFile = @'
137
142
<configuration>
138
143
<packageSources>
139
144
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
@@ -142,4 +147,37 @@ NuGetConfigFile = @'
142
147
</packageSources>
143
148
</configuration>
144
149
'@
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>© 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
+
145
183
}
0 commit comments