[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r8743: Bundle torbutton with mingw installer. Figure out how to get (tor/trunk/contrib)



Author: phobos
Date: 2006-10-17 23:31:13 -0400 (Tue, 17 Oct 2006)
New Revision: 8743

Modified:
   tor/trunk/contrib/package_nsis-mingw.sh
   tor/trunk/contrib/tor-mingw.nsi.in
Log:
Bundle torbutton with mingw installer.  Figure out how to get it
installed into Firefox without user intervention is step 2.


Modified: tor/trunk/contrib/package_nsis-mingw.sh
===================================================================
--- tor/trunk/contrib/package_nsis-mingw.sh	2006-10-17 15:26:58 UTC (rev 8742)
+++ tor/trunk/contrib/package_nsis-mingw.sh	2006-10-18 03:31:13 UTC (rev 8743)
@@ -23,6 +23,7 @@
 cp /usr/local/ssl/lib/libcrypto.a win_tmp/bin/
 cp /usr/local/ssl/lib/libssl.a win_tmp/bin/
 cp contrib/tor.ico win_tmp/bin/
+cp contrib/torbutton-1.0.4-fx+tb.xpi win_tmp/bin/
 
 # There is no man2html in mingw.  
 # Maybe we should add this into make dist instead.

Modified: tor/trunk/contrib/tor-mingw.nsi.in
===================================================================
--- tor/trunk/contrib/tor-mingw.nsi.in	2006-10-17 15:26:58 UTC (rev 8742)
+++ tor/trunk/contrib/tor-mingw.nsi.in	2006-10-18 03:31:13 UTC (rev 8743)
@@ -34,7 +34,7 @@
 VIAddVersionKey "FileVersion" "${VERSION}"
 
 ;Use upx on the installer header to shrink the size.
-!packhdr header.dat "upx --best header.dat"
+;!packhdr header.dat "upx --best header.dat"
 
 !define MUI_WELCOMEPAGE_TITLE "Welcome to the Tor ${VERSION} Setup Wizard"
 !define MUI_WELCOMEPAGE_TEXT "This wizard will guide you through the installation of Tor ${VERSION}.\r\n\r\nIf you have previously installed Tor and it is currently running, please exit Tor first before continuing this installation.\r\n\r\n$_CLICK"
@@ -125,6 +125,19 @@
    File "..\LICENSE"
 SectionEnd
 
+Section "TorButton for FireFox" Torbutton
+   SetOutPath $INSTDIR
+   File "${BIN}\torbutton-1.0.4-fx+tb.xpi"
+
+   ReadRegStr $1 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\firefox.exe" "Path"
+   MessageBox MB_OK "Firefox is installed at $1"
+     StrCmp $1 "" +1 0
+        MessageBox MB_OK "I'm going to run $1firefox.exe --install-global-extension $INSTDIR\torbutton"
+	Exec '"$1firefox.exe" -install-global-extension $INSTDIR\torbutton-1.0.4-fx+tb.xpi'
+	Goto +2
+	MessageBox MB_OK|MB_ICONSTOP "FireFox wasn't found on your system.  Not installing Torbutton."
+SectionEnd
+
 SubSection /e "Shortcuts" Shortcuts
 
 Section "Start Menu" StartMenu