| 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\NativeClientVSAddIn\ | 4 set OUT_DIR=%~dp0..\..\out\NativeClientVSAddIn\ |
| 5 set ZIP_BASE=NativeClientVSAddIn | 5 set ZIP_BASE=NativeClientVSAddIn |
| 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 | 12 call "%~dp0build.bat" |
| 13 | 13 |
| 14 python.exe -c "import zipfile; zztop=zipfile.ZipFile(r'%OUT_DIR%%ZIP_BASE%.zip')
; zztop.extractall(r'%OUT_DIR%%ZIP_BASE%'); zztop.close()" | 14 python.exe -c "import zipfile; zztop=zipfile.ZipFile(r'%OUT_DIR%%ZIP_BASE%.zip')
; zztop.extractall(r'%OUT_DIR%%ZIP_BASE%'); zztop.close()" |
| 15 | 15 |
| 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 | 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 |
| 17 echo. | call %OUT_DIR%%ZIP_BASE%\install.bat --force --ppapi | 17 echo. | call "%OUT_DIR%%ZIP_BASE%\install.bat" --force --ppapi |
| 18 | 18 |
| 19 endlocal | 19 endlocal |
| 20 pause | 20 pause |
| OLD | NEW |