Browse Source
Add a script that fetches specific lnd binaries for each supported platform/arch into the resources directory and update package scripts to build for multiple architectures.renovate/lint-staged-8.x
Tom Kirkpatrick
7 years ago
2 changed files with 27 additions and 6 deletions
@ -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')) |
Loading…
Reference in new issue