From e78470d6f7600e6dbe00213cee3b7b9e9431862e Mon Sep 17 00:00:00 2001 From: John Date: Thu, 5 May 2022 16:30:25 -0500 Subject: [PATCH] Print progress information in install script. --- setup-development/linux/install-linux.sh | 7 +++++-- setup-development/linux/upgrade-linux.sh | 8 +++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/setup-development/linux/install-linux.sh b/setup-development/linux/install-linux.sh index 572727e..99c2dea 100644 --- a/setup-development/linux/install-linux.sh +++ b/setup-development/linux/install-linux.sh @@ -48,7 +48,7 @@ elif which apt; then dryrun $ELEVATE apt-get install git -y fi #? TODO: other package managers? -echo Cloning repository into "$gitdir" +echo "Cloning repository into $gitdir" dryrun mkdir "$gitdir" cd $gitdir && dryrun git clone "$repouri" @@ -58,5 +58,8 @@ cd $gitdir && dryrun git clone "$repouri" # TODO: remove this when merging! cd "$gitdir/$setupdir" -pwd bash ./upgrade-linux.sh $@ + +echo "Opening VS Code..." +cd $gitdir/Mind_Reader +code . \ No newline at end of file diff --git a/setup-development/linux/upgrade-linux.sh b/setup-development/linux/upgrade-linux.sh index 25ef70a..f7a0e89 100644 --- a/setup-development/linux/upgrade-linux.sh +++ b/setup-development/linux/upgrade-linux.sh @@ -108,23 +108,28 @@ case `code --version` in esac # Install NodeJS and npm +printf "\nInstalling node $nodeversion\n" dryrun nvm install "$nodeversion" dryrun nvm use "$nodeversion" # Use npm to install electron-rebuild and yo +printf "Installing electron-rebuild, yo, and generator-code\n" dryrun npm install electron-rebuild yo generator-code # use npm to acquire dependencies for Mind-Reader +printf "\nAcquiring dependencies...\n" dryrun npm install # automatically update vulnerable packages, if possible +printf "\nUpdating vulnerable packages, if possible...\n" dryrun npm audit fix # Use electron-rebuild to rebuild electron if [[ "$electronversion" != "" ]]; then + printf "\nRebuilding electron with version $electronversion...\n" dryrun electron-rebuild --version $electronversion else - printf "%s\n%s\n%s\n%s\n" \ + printf "\n%s\n%s\n%s\n%s\n" \ "Open Visual Studio Code, select the 'Help' tab in the toolbar, and go to 'About'." \ "Find the line that says 'Electron: [electron version]'" \ "Run the command below, filling in the Electron version with the one from that menu:" \ @@ -132,3 +137,4 @@ else fi cd $cdir +echo "Done!"