Bitcoin.org/_templates/download.html

169 lines
6.6 KiB
HTML

---
# This file is licensed under the MIT License (MIT) available on
# http://opensource.org/licenses/MIT.
layout: base-core
id: download
breadcrumbs:
- bitcoin
- bcc
- Download
win64zip: "win64.zip"
win64exe: "win64-setup.exe"
macdmg: "-osx.dmg"
mactar: "osx64.tar.gz"
lin32: "i686-pc-linux-gnu.tar.gz"
lin64: "x86_64-linux-gnu.tar.gz"
---
{% if site.env.BITCOINORG_BUILD_TYPE %}
<!-- Note: this file exempt from check-for-subheading-anchors check -->
{% capture PATH_PREFIX %}/bin/bitcoin-core-{{ site.DOWNLOAD_VERSION }}{% endcapture %}
{% capture FILE_PREFIX %}bitcoin-{{ site.DOWNLOAD_VERSION }}{% endcapture %}
<link rel="alternate" type="application/rss+xml" href="/en/rss/releases.rss" title="Bitcoin Core releases">
<div class="download">
<div class="hero">
<div class="container hero-container">
<h1>{% translate pagetitle %}</h1>
<h2 class="summary">{% translate latestversion %} {{ site.DOWNLOAD_VERSION }}
<!-- <a type="application/rss+xml" href="/en/rss/releases.rss">
<img src="/img/icons/icon_rss.svg?{{site.time | date: '%s'}}" alt="rss" class="rssicon">
</a> -->
</h2>
</div>
</div>
<div class="container core-content clearfix">
<div class="core-column-left clearfix">
<div class="mainbutton">
<a id="downloadbutton" href="{{ PATH_PREFIX }}/{{ FILE_PREFIX }}-{{ page.win64exe }}">
<!-- <img src="/img/os/but_windows.svg?{{site.time | date: '%s'}}" alt="icon"> -->
{% translate download %}
</a>
<p class="btn-subtext">Bitcoin Core {{ site.DOWNLOAD_VERSION }}</p>
<hr class="separator btn-separator">
</div>
</div>
<div class="core-column-right clearfix">
<h2 class="download-title">{% translate patient %}</h2>
<p class="download-text">{% translate notesync %} {% translate full_node_guide %}</p>
<p class="download-text">{% translate notelicense %}</p>
<div class="downloadmore">
<a href="{{ PATH_PREFIX }}/SHA256SUMS.asc" class="dl core-link">{% translate downloadsig %}</a>
<a href="{{ PATH_PREFIX }}/{{ FILE_PREFIX }}.torrent" class="dl core-link">{% translate downloadtorrent %}</a>
{% if site.DOWNLOAD_MAGNETLINK %}
<a href="{{ site.DOWNLOAD_MAGNETLINK | replace: '&', '\&amp;'}}" class="magnetlink core-link" data-proofer-ignore></a>{% endif %}
<a href="https://github.com/bitcoin/bitcoin" class="dl core-link">{% translate source %}</a>
<a href="/en/version-history" class="core-link">{% translate versionhistory %}</a>
</div>
<div class="downloadkeys">
<span class="download-text downloadkeys-title">{% translate releasekeys %}</span>
<a class="core-link" href="/legacy-releases.asc">v0.8.6 - 0.9.2.1</a>
<a class="core-link" href="/laanwj.asc">v0.9.3 - 0.10.2</a>
<a class="core-link" href="/laanwj-releases.asc">v0.11.0+</a>
</div>
</div>
<div class="downloadbox core-column-left clearfix">
<p class="corecard-label">{% translate downloados %}</p>
<div class="corecard windows-card">
<a href="{{ PATH_PREFIX }}/{{ FILE_PREFIX }}-{{ page.win64exe }}" id="downloadwinexe">Windows</a>
<a href="{{ PATH_PREFIX }}/{{ FILE_PREFIX }}-{{ page.win64exe }}" class="dl download-link" id="win64exe">exe</a>
<span> - </span>
<a href="{{ PATH_PREFIX }}/{{ FILE_PREFIX }}-{{ page.win64zip }}" class="dl download-link" id="win64zip">zip</a>
</div>
<div class="corecard mac-card">
<a href="{{ PATH_PREFIX }}/{{ FILE_PREFIX }}{{ page.macdmg }}">Mac OS X</a>
<a href="{{ PATH_PREFIX }}/{{ FILE_PREFIX }}{{ page.macdmg }}" class="dl download-link" id="macdmg">dmg</a>
<span> - </span>
<a href="{{ PATH_PREFIX }}/{{ FILE_PREFIX }}-{{ page.mactar }}" class="dl download-link" id="mactar">tar.gz</a>
</div>
<div class="corecard linux-card">
<a href="{{ PATH_PREFIX }}/{{ FILE_PREFIX }}-{{ page.lin64 }}" id="downloadlin">Linux (tgz)</a>
<a href="{{ PATH_PREFIX }}/{{ FILE_PREFIX }}-{{ page.lin64 }}" class="dl download-link" id="lin64">64 bit</a>
<span> - </span>
<a href="{{ PATH_PREFIX }}/{{ FILE_PREFIX }}-{{ page.lin32 }}" class="dl download-link" id="lin32">32 bit</a>
</div>
<div class="corecard arm-card">
<a href="{{ PATH_PREFIX }}/{{ FILE_PREFIX }}-arm-linux-gnueabihf.tar.gz" class="dl">ARM Linux</a>
<a href="{{ PATH_PREFIX }}/{{ FILE_PREFIX }}-aarch64-linux-gnu.tar.gz" class="dl download-link" id="lin64arm">64 bit</a>
<span> - </span>
<a href="{{ PATH_PREFIX }}/{{ FILE_PREFIX }}-arm-linux-gnueabihf.tar.gz" class="dl download-link" id="lin32arm">32 bit</a>
</div>
<div class="corecard snap-card">
<a href="https://snapcraft.io/bitcoin-core">Linux (Snap Store)</a>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var os = 'windows64';
if (navigator.userAgent.indexOf('Mac') != -1) var os = 'mac'
else if (navigator.userAgent.indexOf('Linux') != -1) {
var os='linux32';
if (navigator.userAgent.indexOf('x86_64') != -1) var os = 'linux64';
if (navigator.userAgent.indexOf('Ubuntu') != -1) var os = 'snap';
}
else if (navigator.userAgent.indexOf('WOW64') != -1 || navigator.userAgent.indexOf('Win64') != -1) var os='windows64';
var but = document.getElementById('downloadbutton');
var linkwinexe = document.getElementById('downloadwinexe');
var linkwinzip = document.getElementById('downloadwinzip');
var linklin = document.getElementById('downloadlin');
var hrefwin64exe = document.getElementById('win64exe').href;
var hrefwin64zip = document.getElementById('win64zip').href;
var hrefmacdmg = document.getElementById('macdmg').href;
var hrefmactar = document.getElementById('mactar').href;
var hreflin64 = document.getElementById('lin64').href;
var hreflin32 = document.getElementById('lin32').href;
switch (os) {
case 'windows64':
but.href = hrefwin64exe;
linkwinexe.href = hrefwin64exe;
linkwinzip.href = hrefwin64zip;
break;
case 'linux64':
but.href = hreflin64;
linklin.href = hreflin64;
break;
case 'linux32':
but.href = hreflin32;
linklin.href = hreflin32;
break;
case 'snap':
but.href = 'https://snapcraft.io/bitcoin-core';
break;
case 'mac':
but.href = hrefmacdmg;
break;
}
</script>
{% else %}
{% capture redirect %}https://bitcoin.org/{{page.lang}}/{% translate download url %}{% endcapture %}
<meta name="robots" content="noindex">
<script>window.location.href='{{ redirect }}';</script>
<div class="redirectmsg">
<h1>This page has been moved</h1>
<p><a href="{{ redirect }}">{{ redirect }}</a></p>
</div>
{% endif %}