Print progress information in install script.

This commit is contained in:
John 2022-05-05 16:30:25 -05:00
parent 9ef756838b
commit e78470d6f7
2 changed files with 12 additions and 3 deletions

View File

@ -48,7 +48,7 @@ elif which apt; then
dryrun $ELEVATE apt-get install git -y dryrun $ELEVATE apt-get install git -y
fi #? TODO: other package managers? fi #? TODO: other package managers?
echo Cloning repository into "$gitdir" echo "Cloning repository into $gitdir"
dryrun mkdir "$gitdir" dryrun mkdir "$gitdir"
cd $gitdir && dryrun git clone "$repouri" cd $gitdir && dryrun git clone "$repouri"
@ -58,5 +58,8 @@ cd $gitdir && dryrun git clone "$repouri"
# TODO: remove this when merging! # TODO: remove this when merging!
cd "$gitdir/$setupdir" cd "$gitdir/$setupdir"
pwd
bash ./upgrade-linux.sh $@ bash ./upgrade-linux.sh $@
echo "Opening VS Code..."
cd $gitdir/Mind_Reader
code .

View File

@ -108,23 +108,28 @@ case `code --version` in
esac esac
# Install NodeJS and npm # Install NodeJS and npm
printf "\nInstalling node $nodeversion\n"
dryrun nvm install "$nodeversion" dryrun nvm install "$nodeversion"
dryrun nvm use "$nodeversion" dryrun nvm use "$nodeversion"
# Use npm to install electron-rebuild and yo # 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 dryrun npm install electron-rebuild yo generator-code
# use npm to acquire dependencies for Mind-Reader # use npm to acquire dependencies for Mind-Reader
printf "\nAcquiring dependencies...\n"
dryrun npm install dryrun npm install
# automatically update vulnerable packages, if possible # automatically update vulnerable packages, if possible
printf "\nUpdating vulnerable packages, if possible...\n"
dryrun npm audit fix dryrun npm audit fix
# Use electron-rebuild to rebuild electron # Use electron-rebuild to rebuild electron
if [[ "$electronversion" != "" ]]; then if [[ "$electronversion" != "" ]]; then
printf "\nRebuilding electron with version $electronversion...\n"
dryrun electron-rebuild --version $electronversion dryrun electron-rebuild --version $electronversion
else 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'." \ "Open Visual Studio Code, select the 'Help' tab in the toolbar, and go to 'About'." \
"Find the line that says 'Electron: [electron version]'" \ "Find the line that says 'Electron: [electron version]'" \
"Run the command below, filling in the Electron version with the one from that menu:" \ "Run the command below, filling in the Electron version with the one from that menu:" \
@ -132,3 +137,4 @@ else
fi fi
cd $cdir cd $cdir
echo "Done!"