| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 | #!/bin/bashYELLOW="\e[93m"GREEN="\e[32m"RED="\e[31m"ENDCOLOR="\e[0m"printMessage() {   printf "${YELLOW}AppFlowy : $1${ENDCOLOR}\n"}printSuccess() {   printf "${GREEN}AppFlowy : $1${ENDCOLOR}\n"}printError() {   printf "${RED}AppFlowy : $1${ENDCOLOR}\n"}# Note: This script does not install applications which are installed by the package manager. There are too many package managers out there.# Install Rust printMessage "The Rust programming language is required to compile AppFlowy."printMessage "We can install it now if you don't already have it on your system."read -p "$(printSuccess "Do you want to install Rust? [y/N]") " installrustif [ ${installrust^^} == "Y" ]; then   printMessage "Installing Rust."   curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh   source $HOME/.cargo/env   rustup toolchain install stable   rustup default stableelse   printMessage "Skipping Rust installation."fi# Enable the flutter stable channelprintMessage "Setting up Flutter"flutter channel stable# Enable linux desktopflutter config --enable-linux-desktop# Fix any problems reported by flutter doctorflutter doctorprintMessage "Installing keybinder-3.0"if command apt-get &> /dev/null; then    sudo apt-get install keybinder-3.0-develif command dnf &> /dev/null; then    sudo dnf install keybinder3-develelse    echo 'Your system is not supported, please install keybinder3 manually.'fi# Add the githooks directory to your git configurationprintMessage "Setting up githooks."git config core.hooksPath .githooks# Install go-gitlint printMessage "Installing go-gitlint."GOLINT_FILENAME="go-gitlint_1.1.0_linux_x86_64.tar.gz"wget https://github.com/llorllale/go-gitlint/releases/download/1.1.0/${GOLINT_FILENAME}tar -zxv --directory .githooks/. -f ${GOLINT_FILENAME} gitlint rm ${GOLINT_FILENAME}# Change to the frontend directorycd frontend# Install cargo makeprintMessage "Installing cargo-make."cargo install --force cargo-make# Install duckscriptprintMessage "Installing duckscript."cargo install --force duckscript_cli# Check prerequisitesprintMessage "Checking prerequisites."cargo make appflowy-flutter-deps-tools
 |