Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
fix: colors and brew install for mac
MikeWallaceDevefa89866f315
diff --git a/frontend/scripts/install_dev_env/install_linux.sh b/frontend/scripts/install_dev_env/install_linux.shindex 405c8b85c5..a580c22b19 100755--- a/frontend/scripts/install_dev_env/install_linux.sh+++ b/frontend/scripts/install_dev_env/install_linux.sh@@ -1,30 +1,43 @@#!/bin/bash-BLUE="\e[34m"+YELLOW="\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-echo -e "${BLUE}AppFlowy : The Rust programming language is required to compile AppFlowy.${ENDCOLOR}"-echo -e "${BLUE}AppFlowy : We can install it now if you don't already have it on your system.${ENDCOLOR}"+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 "$(echo -e $GREEN"AppFlowy : Do you want to install Rust? [y/N]"$ENDCOLOR) " installrust+read -p "$(printSuccess "Do you want to install Rust? [y/N]") " installrustif [ ${installrust^^} == "Y" ]; then- echo -e "${BLUE}AppFlowy : Installing Rust.${ENDCOLOR}"+ printMessage "Installing Rust."curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shsource $HOME/.cargo/envrustup toolchain install stablerustup default stableelse- echo -e "${BLUE}AppFlowy : Skipping Rust installation.${ENDCOLOR}"+ printMessage "Skipping Rust installation."fi# Enable the flutter stable channel-echo -e "${BLUE}AppFlowy : Checking Flutter installation.${ENDCOLOR}"+printMessage "Setting up Flutter"flutter channel stable# Enable linux desktop@@ -34,24 +47,24 @@ flutter config --enable-linux-desktopflutter doctor# Add the githooks directory to your git configuration-echo -e "${BLUE}AppFlowy : Setting up githooks.${ENDCOLOR}"+printMessage "Setting up githooks."git config core.hooksPath .githooks# Change to the frontend directorycd frontend# Install cargo make-echo -e "${BLUE}AppFlowy : Installing cargo-make.${ENDCOLOR}"+printMessage "Installing cargo-make."cargo install --force cargo-make# Install duckscript-echo -e "${BLUE}AppFlowy : Installing duckscript.${ENDCOLOR}"+printMessage "Installing duckscript."cargo install --force duckscript_cli# Install CommitLint-echo -e "${BLUE}AppFlowy : Installing CommitLint.${ENDCOLOR}"+printMessage "Installing CommitLint."npm install @commitlint/cli @commitlint/config-conventional --save-dev# Check prerequisites-echo -e "${BLUE}AppFlowy : Checking prerequisites.${ENDCOLOR}"+printMessage "Checking prerequisites."cargo make flowy_devdiff --git a/frontend/scripts/install_dev_env/install_macos.sh b/frontend/scripts/install_dev_env/install_macos.shindex 36c8f062f4..edc0c40b26 100755--- a/frontend/scripts/install_dev_env/install_macos.sh+++ b/frontend/scripts/install_dev_env/install_macos.sh@@ -1,30 +1,43 @@#!/bin/bash-BLUE="\e[34m"+YELLOW="\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"+}++# Install Rust-echo -e "${BLUE}AppFlowy : The Rust programming language is required to compile AppFlowy.${ENDCOLOR}"-echo -e "${BLUE}AppFlowy : We can install it now if you don't already have it on your system.${ENDCOLOR}"+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 "$(echo -e $GREEN"AppFlowy : Do you want to install Rust? [y/N]"$ENDCOLOR) " installrust+read -p "$(printSuccess "Do you want to install Rust? [y/N]") " installrustif [ ${installrust^^} == "Y" ]; then- echo -e "${BLUE}AppFlowy : Installing Rust.${ENDCOLOR}"- brew 'rustup-init'+ printMessage "Installing Rust."+ brew install rustup-initrustup-init -y --default-toolchain=stableelse- echo -e "${BLUE}AppFlowy : Skipping Rust installation.${ENDCOLOR}"+ printMessage "Skipping Rust installation."fi# Install sqllite-echo -e "${BLUE}AppFlowy : Installing SqlLite3.${ENDCOLOR}"-brew 'sqlite3'+printMessage "Installing sqlLite3."+brew install sqlite3# Enable the flutter stable channel-echo -e "${BLUE}AppFlowy : Checking Flutter installation.${ENDCOLOR}"+printMessage "Setting up Flutter"flutter channel stable# Enable linux desktop@@ -34,24 +47,24 @@ flutter config --enable-macos-desktopflutter doctor# Add the githooks directory to your git configuration-echo -e "${BLUE}AppFlowy : Setting up githooks.${ENDCOLOR}"+printMessage "Setting up githooks."git config core.hooksPath .githooks# Change to the frontend directorycd frontend# Install cargo make-echo -e "${BLUE}AppFlowy : Installing cargo-make.${ENDCOLOR}"+printMessage "Installing cargo-make."cargo install --force cargo-make# Install duckscript-echo -e "${BLUE}AppFlowy : Installing duckscript.${ENDCOLOR}"+printMessage "Installing duckscript."cargo install --force duckscript_cli# Install CommitLint-echo -e "${BLUE}AppFlowy : Installing CommitLint.${ENDCOLOR}"+printMessagae "Installing CommitLint."npm install @commitlint/cli @commitlint/config-conventional --save-dev# Check prerequisites-echo -e "${BLUE}AppFlowy : Checking prerequisites.${ENDCOLOR}"+printMessage "Checking prerequisites."cargo make flowy_dev