-
Notifications
You must be signed in to change notification settings - Fork 21
/
packge.bat
34 lines (24 loc) · 900 Bytes
/
packge.bat
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
set PROJ_DIR=%~dp0src
set OUT=%~dp0nupkgs
dotnet pack %PROJ_DIR%\Thrifty.Core\Thrifty.Core.csproj --output %OUT% -c Release
dotnet pack %PROJ_DIR%\Thrifty.MicroServices\Thrifty.MicroServices.csproj --output %OUT% -c Release
dotnet pack %PROJ_DIR%\Thrifty.Nifty\Thrifty.Nifty.csproj --output %OUT% -c Release
dotnet pack %PROJ_DIR%\Thrifty.Nifty.Client\Thrifty.Nifty.Client.csproj --output %OUT% -c Release
dotnet pack %PROJ_DIR%\Thrifty.Services\Thrifty.Services.csproj --output %OUT% -c Release
@echo off
setlocal enabledelayedexpansion
echo 删除符号:
for /R %OUT% %%f in (*.symbols.nupkg) do (
del /f /q %%f
)
echo 要发布的包:
for /R %OUT% %%f in (*.nupkg) do (
echo publish %%f
)
set /p input=确认按 y, 取消按任意键。
if /i not "%input%"=="y" goto exit
for /R %dir% %%f in (*.nupkg) do (
echo 开始上传 %%f
dotnet nuget push %%f -s https://api.nuget.org/v3/index.json
)
pause