Skip to content

Commit

Permalink
Fix win32 platform string
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorTaelin committed Apr 13, 2017
1 parent 2283416 commit 066eb19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "swarm-js",
"version": "0.1.11",
"version": "0.1.12",
"description": "Swarm tools for JavaScript.",
"main": "src/swarm.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/swarm.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ const download = swarmUrl => hash => path =>
// resolves when the exact Swarm file is there, and verified to be correct.
// If it was already there to begin with, skips the download.
const downloadBinary = path => {
const system = os.platform() + "-" + (os.arch() === "x64" ? "amd64" : "386");
const system = os.platform().replace("win32","windows") + "-" + (os.arch() === "x64" ? "amd64" : "386");
const archive = archives[system];
const archiveUrl = downloadUrl + archive.archive + ".tar.gz";
const archiveMD5 = archive.archiveMD5;
Expand Down

0 comments on commit 066eb19

Please sign in to comment.