Commit 9b662f0b authored by Andrew Lewman's avatar Andrew Lewman
Browse files

We have icons for Tor in Win32-land.

parent 699fa6b4
......@@ -3,7 +3,7 @@ DIST_SUBDIRS = osx suse
confdir = $(sysconfdir)/tor
EXTRA_DIST = exitlist tor-tsocks.conf torify.1 torctl rc.subr
EXTRA_DIST = exitlist tor-tsocks.conf torify.1 torctl rc.subr
conf_DATA = tor-tsocks.conf
......@@ -22,6 +22,7 @@ cp src/or/tor.exe win_tmp/bin/
cp src/tools/tor-resolve.exe win_tmp/bin/
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/
# There is no man2html in mingw.
# Maybe we should add this into make dist instead.
......@@ -24,6 +24,7 @@ Name "Tor"
Caption "Tor ${VERSION} Setup"
BrandingText "The Onion Router"
CRCCheck on
XPStyle on
;Use upx on the installer header to shrink the size.
!packhdr header.dat "upx --best header.dat"
......@@ -66,6 +67,7 @@ Section "Tor" Tor
File "${BIN}\tor.exe"
File "${BIN}\tor-resolve.exe"
File "${BIN}\tor.ico"
WriteIniStr "$INSTDIR\Tor Website.url" "InternetShortcut" "URL" ${WEBSITE}
StrCpy $configfile "torrc"
......@@ -123,7 +125,7 @@ Section "Start Menu" StartMenu
IfFileExists "$SMPROGRAMS\Tor\*.*" "" +2
CreateDirectory "$SMPROGRAMS\Tor"
CreateShortCut "$SMPROGRAMS\Tor\Tor.lnk" "$INSTDIR\tor.exe"
CreateShortCut "$SMPROGRAMS\Tor\Tor.lnk" "$INSTDIR\tor.exe" "" "$INSTDIR\tor.ico"
CreateShortCut "$SMPROGRAMS\Tor\Torrc.lnk" "Notepad.exe" "$configdir\torrc"
CreateShortCut "$SMPROGRAMS\Tor\Tor Website.lnk" "$INSTDIR\Tor Website.url"
CreateShortCut "$SMPROGRAMS\Tor\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
......@@ -137,12 +139,12 @@ SectionEnd
Section "Desktop" Desktop
CreateShortCut "$DESKTOP\Tor.lnk" "$INSTDIR\tor.exe"
CreateShortCut "$DESKTOP\Tor.lnk" "$INSTDIR\tor.exe" "" "$INSTDIR\tor.ico"
Section /o "Run at startup" Startup
CreateShortCut "$SMSTARTUP\Tor.lnk" "$INSTDIR\tor.exe" "" "" 0 SW_SHOWMINIMIZED
CreateShortCut "$SMSTARTUP\Tor.lnk" "$INSTDIR\tor.exe" "" "$INSTDIR\tor.ico" "" SW_SHOWMINIMIZED
......@@ -156,6 +158,7 @@ Section "Uninstall"
Delete "$INSTDIR\Tor Website.url"
Delete "$INSTDIR\torrc"
Delete "$INSTDIR\torrc.sample"
Delete "$INSTDIR\tor.ico"
StrCmp $configdir $INSTDIR +2 ""
RMDir /r $configdir
Delete "$INSTDIR\Uninstall.exe"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment