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

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
« no previous file with comments | « visual_studio/NativeClientVSAddIn/create_package.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « visual_studio/NativeClientVSAddIn/create_package.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698