forked from jburzynski/TypeGen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuget-update.ps1
39 lines (26 loc) · 1.25 KB
/
nuget-update.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#nuget
#tools
rm -Recurse -Force nuget\tools\runtimes
copy -Recurse src\TypeGen\TypeGen.Cli\bin\Release\netcoreapp2.2\publish\* nuget\tools
#lib
#netstandard1.3
copy src\TypeGen\TypeGen.Core\bin\Release\netstandard1.3\TypeGen.Core.dll nuget\lib\netstandard1.3
copy src\TypeGen\TypeGen.Core\bin\Release\netstandard1.3\TypeGen.Core.xml nuget\lib\netstandard1.3
#netstandard2.0
copy src\TypeGen\TypeGen.Core\bin\Release\netstandard2.0\TypeGen.Core.dll nuget\lib\netstandard2.0
copy src\TypeGen\TypeGen.Core\bin\Release\netstandard2.0\TypeGen.Core.xml nuget\lib\netstandard2.0
nuget pack nuget\TypeGen.nuspec
move TypeGen.2.4.3.nupkg nuget -force
if (Test-Path "local-nuget-path.txt") {
$localNuGetPath = Get-Content "local-nuget-path.txt"
copy nuget\TypeGen.2.4.3.nupkg $localNuGetPath
}
#nuget - dotnetcli
rm -Recurse -Force nuget-dotnetcli\tools\netcoreapp2.2\any\runtimes
copy -Recurse src\TypeGen\TypeGen.Cli\bin\Release\netcoreapp2.2\publish\* nuget-dotnetcli\tools\netcoreapp2.2\any
nuget pack nuget-dotnetcli\TypeGen.DotNetCli.nuspec
move TypeGen.DotNetCli.2.4.3.nupkg nuget-dotnetcli -force
if (Test-Path "local-nuget-path.txt") {
$localNuGetPath = Get-Content "local-nuget-path.txt"
copy nuget-dotnetcli\TypeGen.DotNetCli.2.4.3.nupkg $localNuGetPath
}