-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdearimgui-nuget-deploy-local.cmd
More file actions
32 lines (26 loc) · 1003 Bytes
/
dearimgui-nuget-deploy-local.cmd
File metadata and controls
32 lines (26 loc) · 1003 Bytes
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
@echo off
set DEARIMGUI_NUGET_BUILD=build\packages\AnyCPU\Release
if not exist %DEARIMGUI_NUGET_BUILD% (
echo The directory "%DEARIMGUI_NUGET_BUILD%" could not be found, aborting...
echo Have you built the project for Release configuration?
goto :end
)
set DEARIMGUI_NUGET_CACHE=%USERPROFILE%\.nuget\packages
echo Pruning packages from local package cache "%DEARIMGUI_NUGET_CACHE%"...
call :delete_directory "%DEARIMGUI_NUGET_CACHE%\dearimgui"
call :delete_directory "%DEARIMGUI_NUGET_CACHE%\dearimgui.opentk"
call :delete_directory "%DEARIMGUI_NUGET_CACHE%\dearimplot"
set DEARIMGUI_NUGET_LOCAL=C:\NuGet
echo Copying packages to local nuget directory "%DEARIMGUI_NUGET_LOCAL%"...
if not exist %DEARIMGUI_NUGET_LOCAL% md %DEARIMGUI_NUGET_LOCAL%
pushd %DEARIMGUI_NUGET_BUILD%
copy /y *.nupkg %DEARIMGUI_NUGET_LOCAL%
popd
goto :end
:delete_directory
if exist %1 rd /s /q %1 & echo Removed %1
goto :eof
:end
set DEARIMGUI_NUGET_BUILD=
set DEARIMGUI_NUGET_CACHE=
set DEARIMGUI_NUGET_LOCAL=