From bb312b0a79924e862c213d1fcea0c0d5ebf828af Mon Sep 17 00:00:00 2001 From: Duy Do Date: Thu, 15 Dec 2022 11:00:26 +0700 Subject: [PATCH] build: update install_linux.sh --- frontend/scripts/install_dev_env/install_linux.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/frontend/scripts/install_dev_env/install_linux.sh b/frontend/scripts/install_dev_env/install_linux.sh index 8e6b8698cb..c47e445aa5 100755 --- a/frontend/scripts/install_dev_env/install_linux.sh +++ b/frontend/scripts/install_dev_env/install_linux.sh @@ -46,8 +46,14 @@ flutter config --enable-linux-desktop # Fix any problems reported by flutter doctor flutter doctor -# install keybinder-3.0 -apt-get install keybinder-3.0 +printMessage "Installing keybinder-3.0" +if command apt-get &> /dev/null; then + sudo apt-get install keybinder-3.0-dev +elif command dnf &> /dev/null; then + sudo dnf install keybinder3-devel +else + echo 'Your system is not supported, please install keybinder3 manually.' +fi # Add the githooks directory to your git configuration printMessage "Setting up githooks."