Skip to content

Commit

Permalink
Add .exe to Windows binary
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorTaelin committed Apr 13, 2017
1 parent 066eb19 commit 402e8d3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
20 changes: 10 additions & 10 deletions archives/archives.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,46 @@
"windows-amd64": {
"archive": "swarm-windows-amd64-1.5.9.exe",
"binaryMD5": "69c565c8132dd69c8b54df8597d50f08",
"archiveMD5": "6e54e9d792e464f906195fcf3936acb5"
"archiveMD5": "0e4c8c8c65365c83aefbb027230cf699"
},
"windows-386": {
"archive": "swarm-windows-386-1.5.9.exe",
"binaryMD5": "3518245a4bb305988f9a5e59e0e7943c",
"archiveMD5": "fde61c141e6ef79dace37cf5b360793f"
"archiveMD5": "9eb8686cf56deddd0becc868df038322"
},
"linux-amd64": {
"archive": "swarm-linux-amd64-1.5.9",
"binaryMD5": "9ed4d9c08482d83c50e1c06134c9dd28",
"archiveMD5": "82ca2de93e24d4b786ab6a69f3a2e958"
"archiveMD5": "108789b5ac45b8a9134f74f418ee68bf"
},
"linux-386": {
"archive": "swarm-linux-386-1.5.9",
"binaryMD5": "b92a86dc265967b9876ddc9cadc9e450",
"archiveMD5": "54fb35071dfdf6d886deac7cc43c349f"
"archiveMD5": "896cf845cb204f9c2a34a88e3f9fac5a"
},
"linux-arm5": {
"archive": "swarm-linux-arm5-1.5.9",
"binaryMD5": "9a27465653c62ed1dbd71a8c6956dc21",
"archiveMD5": "589084ac2a1b12a74fec169e9e2a4ca2"
"archiveMD5": "2987082f398b336f815300e1a2eac863"
},
"linux-arm6": {
"archive": "swarm-linux-arm6-1.5.9",
"binaryMD5": "bb4d5ea9d717e3c84767dbefb720119c",
"archiveMD5": "938347a0918b5d336cb8b16bf3f2f4a2"
"archiveMD5": "59139412fb11935711fba7d1428fad93"
},
"linux-arm7": {
"archive": "swarm-linux-arm7-1.5.9",
"binaryMD5": "6e63ea90d8c213a04a7370424fa977fa",
"archiveMD5": "62fd2c1d8799ffd99c6b9ddd218d72c8"
"archiveMD5": "43577e5cf0f6afec193462c064e3f899"
},
"linux-arm64": {
"archive": "swarm-linux-arm64-1.5.9",
"binaryMD5": "59058d7c1910c3e1c5094a811034d03f",
"archiveMD5": "768764d4183e8e2d853d90e9870ff43a"
"archiveMD5": "607b9a7b96976e83d6c924187026caef"
},
"darwin-amd64": {
"archive": "swarm-darwin-amd64-1.5.9",
"binaryMD5": "1c3e04d93a6ee6d227476d2a56513af0",
"archiveMD5": "4daadb24d3026e9fb3f8ae459f09f152"
"archiveMD5": "4e29e1c3c565d690158c75a324b41bcf"
}
}
}
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.12",
"version": "0.1.13",
"description": "Swarm tools for JavaScript.",
"main": "src/swarm.js",
"scripts": {
Expand Down
5 changes: 3 additions & 2 deletions scripts/prepareArchives.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ got("https://gethstore.blob.core.windows.net/builds?restype=container&comp=list"
const gethArchiveName = file.Name[0];
const parts = gethArchiveName.split("-");
const props = file.Properties[0];
const swarmArchiveName = `swarm-${parts[2]}-${parts[3]}-${parts[4]}${parts[2] === "windows" ? ".exe" : ""}`;
const swarmArchiveExt = parts[2] === "windows" ? ".exe" : "";
const swarmArchiveName = `swarm-${parts[2]}-${parts[3]}-${parts[4]}${swarmArchiveExt}`;
return {
date: new Date(props["Last-Modified"]),
hash: props["Content-MD5"][0],
Expand All @@ -52,7 +53,7 @@ got("https://gethstore.blob.core.windows.net/builds?restype=container&comp=list"
gethFilesPath: path.join(process.cwd(), "tmp_downloads", gethArchiveName.replace(/(\.zip|\.tar\.gz)/,"")),
swarmArchiveName: swarmArchiveName,
swarmBinaryDir: path.join(process.cwd(), "tmp_downloads", swarmArchiveName),
swarmBinaryPath: path.join(process.cwd(), "tmp_downloads", swarmArchiveName, "swarm"),
swarmBinaryPath: path.join(process.cwd(), "tmp_downloads", swarmArchiveName, "swarm" + swarmArchiveExt),
swarmArchivePath: path.join(process.cwd(), "archives", swarmArchiveName + ".tar.gz"),
}
})
Expand Down

0 comments on commit 402e8d3

Please sign in to comment.