From d9e52e6b42b78c36ac4a8a9ae93400c6ea26d021 Mon Sep 17 00:00:00 2001 From: Saivann Date: Wed, 5 Feb 2014 14:19:46 -0500 Subject: [PATCH] Serve binaries directly from the server --- _contrib/build_website.sh | 2 +- _templates/download.html | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/_contrib/build_website.sh b/_contrib/build_website.sh index 71e1b425..6748e50b 100755 --- a/_contrib/build_website.sh +++ b/_contrib/build_website.sh @@ -32,4 +32,4 @@ git clean -x -f -d # Build website jekyll -rsync --delete -a $WORKDIR/_site/ $DESTDIR/ +rsync --exclude /bin/ --delete -a $WORKDIR/_site/ $DESTDIR/ diff --git a/_templates/download.html b/_templates/download.html index 28fc2cb3..21fa38e3 100755 --- a/_templates/download.html +++ b/_templates/download.html @@ -6,21 +6,21 @@ id: download

{% translate pagetitle %}

{% translate latestversion %}{{site.DOWNLOAD_VERSION}}rss

- + @@ -39,8 +39,8 @@ if(navigator.userAgent.indexOf('Linux')!=-1)var os='ubuntu'; var but=document.getElementById('downloadbutton'); but.getElementsByTagName('IMG')[0].src='/img/but_'+os+'.svg'; switch(os){ -case 'windows':but.href='http://sourceforge.net/projects/bitcoin/files/Bitcoin/bitcoin-{{site.DOWNLOAD_VERSION}}/bitcoin-{{site.DOWNLOAD_VERSION}}-win32-setup.exe/download';break; +case 'windows':but.href='/bin/{{site.DOWNLOAD_VERSION}}/bitcoin-{{site.DOWNLOAD_VERSION}}-win32-setup.exe';break; case 'ubuntu':but.href='https://launchpad.net/~bitcoin/+archive/bitcoin';break; -case 'mac':but.href='http://sourceforge.net/projects/bitcoin/files/Bitcoin/bitcoin-{{site.DOWNLOAD_VERSION}}/bitcoin-{{site.DOWNLOAD_VERSION}}-macosx.dmg/download';break; +case 'mac':but.href='/bin/{{site.DOWNLOAD_VERSION}}/bitcoin-{{site.DOWNLOAD_VERSION}}-macosx.dmg';break; }