Index: visual_studio/NativeClientVSAddIn/developer_deploy.bat |
diff --git a/visual_studio/NativeClientVSAddIn/developer_deploy.bat b/visual_studio/NativeClientVSAddIn/developer_deploy.bat |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4490eaaf3ea878c12f349bde8e115333fc632de5 |
--- /dev/null |
+++ b/visual_studio/NativeClientVSAddIn/developer_deploy.bat |
@@ -0,0 +1,20 @@ |
+:: This script will build, unpack, and install the add-in onto this machine. The installation requires admin privledge. |
+@echo off |
+setlocal |
+set OUT_DIR=%~dp0..\..\out\NativeClientVSAddIn\ |
+set ZIP_BASE=NativeClientVSAddIn |
+ |
+if exist "%OUT_DIR%%ZIP_BASE%" ( |
+ del /q /s /f "%OUT_DIR%%ZIP_BASE%\*.*" |
+ rmdir /s /q "%OUT_DIR%%ZIP_BASE%" |
+) |
+ |
+call %~dp0build.bat |
+ |
+python.exe -c "import zipfile; zztop=zipfile.ZipFile(r'%OUT_DIR%%ZIP_BASE%.zip'); zztop.extractall(r'%OUT_DIR%%ZIP_BASE%'); zztop.close()" |
+ |
+:: Pass flags to bypass the install questions. Also pipe a key stroke 'return' to pass the 'Press any key to continue' in install.bat |
+echo. | call %OUT_DIR%%ZIP_BASE%\install.bat --force --ppapi |
+ |
+endlocal |
+pause |