Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Unified Diff: visual_studio/NativeClientVSAddIn/developer_deploy.bat

Issue 10831030: NaCl settings and completed install scripts. (Closed) Base URL: https://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698