This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #569 from mrfelton/feat/lnd-binary
build: auto download lnd-binary on install
- Loading branch information
Showing
5 changed files
with
254 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const lndBinary = require('lnd-binary') | ||
|
||
function install(platform, arch, dest) { | ||
process.env.LND_BINARY_PLATFORM = platform | ||
process.env.LND_BINARY_ARCH = arch | ||
process.env.LND_BINARY_DIR = dest | ||
|
||
return lndBinary.install() | ||
} | ||
|
||
return install('darwin', 'amd64', 'resources/bin/mac/x64') | ||
.then(() => install('darwin', '386', 'resources/bin/mac/ia32')) | ||
.then(() => install('windows', 'amd64', 'resources/bin/win/x64')) | ||
.then(() => install('windows', '386', 'resources/bin/win/ia32')) | ||
.then(() => install('linux', 'amd64', 'resources/bin/linux/x64')) | ||
.then(() => install('linux', '386', 'resources/bin/linux/ia32')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.