bitcoin-s/website/pages/en/download.js
Chris Stewart 3931897e7f
2022 02 13 issue 3405 (#4089)
* Fix version bug in download

* Remove more 'v' tag prefixes on tag

* Fix zip

* Final fixes on download links

* Remove extra docs
2022-02-13 16:26:54 -06:00

76 lines
3.0 KiB
JavaScript

const React = require("react");
const CompLibrary = require("../../core/CompLibrary");
const Container = CompLibrary.Container;
const CWD = process.cwd();
const versions = require(`${CWD}/versions.json`);
function Downloads(props) {
const {config: siteConfig} = props;
const latestVersion = versions[0];
const releaseUrl = `https://github.com/${siteConfig.organizationName}/${siteConfig.projectName}/releases`;
return (
<div className="docMainWrapper wrapper">
<Container className="mainContainer versionsContainer">
<div className="post">
<header className="postHeader">
<h1>{siteConfig.title} downloads</h1>
</header>
<p>New versions of this project are released every so often.</p>
<h3 id="latest">Current version</h3>
<table className="versions">
<tbody>
<tr>
<th>{latestVersion}</th>
<td>
<a href={`${releaseUrl}/tag/${latestVersion}`}>
Release
</a>
</td>
<td>
<a href={siteConfig.scaladocUrl}>Scaladoc</a>
</td>
</tr>
</tbody>
</table>
<table>
<tbody>
<tr>
<td>
<a href={`${releaseUrl}/download/${latestVersion}/bitcoin-s-${latestVersion}.dmg`}>bitcoin-s-server-{latestVersion}.dmg</a>
</td>
</tr>
<tr>
<td>
<a href={`${releaseUrl}/download/${latestVersion}/bitcoin-s-server-${latestVersion}.zip`}>bitcoin-s-server-{latestVersion}.zip</a>
</td>
</tr>
<tr>
<td>
<a href={`${releaseUrl}/download/${latestVersion}/bitcoin-s_${latestVersion}-1_amd64.deb`}>bitcoin-s-server-amd64.deb</a>
</td>
</tr>
<tr>
<td>
<a href={`${releaseUrl}/download/${latestVersion}/bitcoin-s-bundle.msi`}>bitcoin-s-server.msi</a>
</td>
</tr>
<tr>
<td>
<a href={`${releaseUrl}/download/${latestVersion}/SHA256SUMS.asc`}>SHA256SUMS.asc</a>
</td>
</tr>
</tbody>
</table>
</div>
</Container>
</div>
);
}
module.exports = Downloads;