2022-09-12 20:33:45 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2022-09-16 15:59:38 +00:00
|
|
|
set -ex
|
|
|
|
|
2022-09-12 20:33:45 +00:00
|
|
|
DEBIAN=libdbus-1-dev
|
|
|
|
OSX=dbus
|
|
|
|
|
|
|
|
if command -v apt > /dev/null; then
|
|
|
|
if dpkg --list | grep $DEBIAN > /dev/null; then
|
|
|
|
exit 0
|
|
|
|
else
|
|
|
|
echo "Installing $DEBIAN..."
|
2022-11-02 18:19:52 +00:00
|
|
|
sudo apt-get update
|
2022-09-12 20:33:45 +00:00
|
|
|
sudo apt-get install $DEBIAN
|
|
|
|
fi
|
|
|
|
elif command -v brew > /dev/null; then
|
|
|
|
brew list $OSX > /dev/null || (echo "Installing $OSX..." && brew install $OSX)
|
|
|
|
else
|
|
|
|
echo "Neither 'brew' nor 'apt' are available to this system.
|
|
|
|
Please make sure Supervisor development is done on Linux, OSX, or WSL2,
|
2022-09-16 15:59:38 +00:00
|
|
|
and that one of the above package managers is installed. If using a
|
2022-09-12 20:33:45 +00:00
|
|
|
Linux distro without 'apt', please install the dbus development lib
|
|
|
|
available to your system and run 'npm ci --ignore-scripts' to continue."
|
|
|
|
exit 0
|
2022-09-16 15:59:38 +00:00
|
|
|
fi
|