Browse files

Maybe things work now

  • Loading branch information...
1 parent dccb394 commit 0ccc321dac18a5626c184122959c48d69586d09b @brymck committed Jun 23, 2011
Showing with 16 additions and 6 deletions.
  1. +16 −6 install/windows.bat
22 install/windows.bat
@@ -1,26 +1,36 @@
@echo off
-echo Packing extension into .crx ...
-cd vim_ratings
-"%AppData%\..\Local\Google\Chrome\Application\chrome.exe" --pack-extension="%cd%\src" --pack-extension-key="%cd%\vimratings.pem" --no-message-box
+echo Packing into Chrome extension ...
set counter=0
+if exist vim_ratings.pem (
+ "%AppData%\..\Local\Google\Chrome\Application\chrome.exe" --pack-extension="%cd%\src" --pack-extension-key="%cd%\vim_ratings.pem" --no-message-box
+ goto test
+"%AppData%\..\Local\Google\Chrome\Application\chrome.exe" --pack-extension="%cd%\src" --no-message-box
-if exist "src.crx" goto finish
+if exist src.crx goto finish
set /a counter+=1
if %counter%==10 goto error
goto wait
-ping -n 1 -w 1000 > nul
+ping -n 1 -w 1000 > nul
goto test
echo Error installing!
goto exit
-copy /y src.crx vimratings.crx
+echo Renaming Chrome extension and private key...
+copy /y src.crx vim_ratings.crx > nul
del src.crx
+if exist src.pem (
+ copy /y src.pem vim_ratings.pem > nul
+ del src.pem
+echo Opening in Chrome...
"%AppData%\..\Local\Google\Chrome\Application\chrome.exe" "%cd%\vimratings.crx"
echo Done!

0 comments on commit 0ccc321

Please sign in to comment.