Skip to content

Commit 847995d

Browse files
committed
Build specified initramfs image if it doesn't exists
1 parent 19ade37 commit 847995d

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"BigRedButton": "scripts/BigRedButton",
77
"build": "scripts/build",
8-
"install": "prebuild-install -d https://github.com/NodeOS/nodeos-initramfs/releases/download/v{version}/{platform}-{arch}.tar.gz || (buildDependencies && npm run build)",
8+
"install": "(prebuild-install -d https://github.com/NodeOS/nodeos-initramfs/releases/download/v{version}/{platform}-{arch}.tar.gz && scripts/checkOut) || (buildDependencies && npm run build)",
99
"start": "scripts/start",
1010
"postinstall": "scripts/postinstall",
1111
"pretest": "scripts/pretest",

scripts/checkOut

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
3+
set -o pipefail
4+
5+
TOOLCHAIN=`node -p "require('nodeos-cross-toolchain')"` &&
6+
source $TOOLCHAIN/scripts/adjustEnvVars.sh || exit $?
7+
8+
test -f out/$CPU-${SINGLE_USER-"nodeos-boot-multiUser"}

0 commit comments

Comments
 (0)