forked from jreisam/Unity-OpenPose-Edutable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
getPlugins.bat
44 lines (32 loc) · 1.12 KB
/
getPlugins.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
35
36
37
38
39
40
41
:: Avoid printing all the comments in the Windows cmd
@echo off
SET UNZIP_EXE=3rdparty\unzip\unzip.exe
SET WGET_EXE=3rdparty\wget\wget.exe
:: Address & Paths
SET PACKAGE_LINK=https://github.com/CMU-Perceptual-Computing-Lab/openpose/releases/download/v1.5.0/openpose-1.5.0-binaries-win64-gpu-unity.zip
SET PACKAGE_NAME=openpose-1.5.0-binaries-win64-gpu-unity
SET FOLDER_NAME=openpose-1.5.0-binaries-win64-gpu-python-flir-3d_unity
SET ZIP_EXT=.zip
SET EXCLUDE_FILE=xcopy_exclude.txt
SET BINARY_FOLDER=openpose-binary
SET LIB_PATH=%BINARY_FOLDER%\bin
SET PLUGINS_PATH=OpenPosePlugin\Assets\OpenPose\Plugins\
echo ----- Deleting old plugins -----
rd /s/q %PLUGINS_PATH%
echo:
echo ----- Deleting old binary -----
rd /s/q %BINARY_FOLDER%
echo:
echo ----- Downloading Plugins -----
%WGET_EXE% -c %PACKAGE_LINK%
echo:
echo ----- Unzipping Plugins -----
%UNZIP_EXE% %PACKAGE_NAME%%ZIP_EXT%
ren %FOLDER_NAME% %BINARY_FOLDER%
echo:
echo ----- Deleting Temporary Zip File %PACKAGE_NAME%%ZIP_EXT% -----
del /q "%PACKAGE_NAME%%ZIP_EXT%"
echo:
echo ----- Copying Plugins -----
xcopy /s /q /i /exclude:%EXCLUDE_FILE% %LIB_PATH% %PLUGINS_PATH%
echo: