mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-01-14 08:15:01 -05:00
fix instructions for building UI
"yarn build" doesn't actually fetch packages. When starting from a clean client, you have to run "yarn" (with no arguments) first.
This commit is contained in:
parent
2c026e1b6b
commit
99f10dfba6
@ -84,6 +84,7 @@ For instructions, you can skip to "[Camera configuration and hard disk mounting]
|
|||||||
|
|
||||||
Once prerequisites are installed, Moonfire NVR can be built as follows:
|
Once prerequisites are installed, Moonfire NVR can be built as follows:
|
||||||
|
|
||||||
|
$ yarn
|
||||||
$ yarn build
|
$ yarn build
|
||||||
$ cargo test
|
$ cargo test
|
||||||
$ cargo build --release
|
$ cargo build --release
|
||||||
|
6
prep.sh
6
prep.sh
@ -187,10 +187,12 @@ if [ ! -d "${LIB_DIR}/ui" ]; then
|
|||||||
echo
|
echo
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
if ! yarn; then
|
||||||
|
echo "UI package installation failed."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
if ! yarn build; then
|
if ! yarn build; then
|
||||||
echo "UI build failed."
|
echo "UI build failed."
|
||||||
echo "yarn build"
|
|
||||||
echo
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
sudo mkdir "${LIB_DIR}"
|
sudo mkdir "${LIB_DIR}"
|
||||||
|
Loading…
Reference in New Issue
Block a user