OLD | NEW |
1 :: This script will build, unpack, and install the add-in onto this machine. Th
e installation requires admin privledge. | 1 :: This script will build, unpack, and install the add-in onto this machine. Th
e installation requires admin privledge. |
2 @echo off | 2 @echo off |
3 setlocal | 3 setlocal |
4 set OUT_DIR=%~dp0..\..\out\vs_addin | 4 set OUT_DIR=%~dp0..\..\out\vs_addin |
5 set ZIP_BASE=vs_addin | 5 set ZIP_BASE=vs_addin |
6 | 6 |
7 if exist "%OUT_DIR%\%ZIP_BASE%" ( | 7 if exist "%OUT_DIR%\%ZIP_BASE%" ( |
8 del /q /s /f "%OUT_DIR%\%ZIP_BASE%\*.*" | 8 del /q /s /f "%OUT_DIR%\%ZIP_BASE%\*.*" |
9 rmdir /s /q "%OUT_DIR%\%ZIP_BASE%" | 9 rmdir /s /q "%OUT_DIR%\%ZIP_BASE%" |
10 ) | 10 ) |
11 | 11 |
12 call "%~dp0build.bat" | |
13 | |
14 python.exe -c "import tarfile; zztop=tarfile.open(r'%OUT_DIR%\%ZIP_BASE%.tgz');
zztop.extractall(r'%OUT_DIR%'); zztop.close()" | 12 python.exe -c "import tarfile; zztop=tarfile.open(r'%OUT_DIR%\%ZIP_BASE%.tgz');
zztop.extractall(r'%OUT_DIR%'); zztop.close()" |
15 | 13 |
16 :: Pass flags to bypass the install questions. Also pipe a key stroke 'return' t
o pass the 'Press any key to continue' in install.bat | 14 :: Pass flags to bypass the install questions. Also pipe a key stroke 'return' t
o pass the 'Press any key to continue' in install.bat |
17 echo. | call "%OUT_DIR%\%ZIP_BASE%\install.bat" --force --ppapi | 15 set NO_PAUSE=1 |
| 16 call "%OUT_DIR%\%ZIP_BASE%\install.bat" --force --ppapi |
18 | 17 |
19 endlocal | 18 endlocal |
20 pause | |
OLD | NEW |