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..a39e3965643d4b99b288bcd36ea631afd5e390b9 |
--- /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()" |
+ |
+:: Pipe two "Yes" answers to the install script to confirm overwrite and ppapi installation. |
+(echo y&&echo y&&echo.) | call %OUT_DIR%%ZIP_BASE%\install.bat |
+ |
+endlocal |
+pause |