Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save im-coder-lg/7751ed92c59e31792c31345dc63618a6 to your computer and use it in GitHub Desktop.
Save im-coder-lg/7751ed92c59e31792c31345dc63618a6 to your computer and use it in GitHub Desktop.

About this gist

This is related to the GAUDC project, which you can access here. Feel free to tell the creator a hello and about this, because I want to make this the dev branch and add the ENTIRE code there with his permission. If he allows, this script will become OFFICIAL for the project.

If you encounter any kind of glitches, feel free to open an issue here and templates are coming soon.

Feel free to chat in the Gitter community I made too! And this might just 💥 in the news one day too.

Yeah, and the code got revamped!

#!/bin/bash
echo "Hi. I am your GAUDC program installation automator." && echo "This code is open-source as a GitHub Gist, and I am LG, the maker of this script." && echo Feel free to comment on any issues. # --> Beginning Message
echo "Now, make sure you installed Git and NodeJS because you need to clone and build GAUDC. I will make a temporary directory and give you the path at the end." # --> Next message
echo "Have you installed Git and NodeJS? Because, the script needs it."
echo "If you have it, respond with 'yes' as it is. If not, respond with 'no' as it is."
read gitnodejs
if [ "$gitnodejs" = "no" ]; then
echo "Well, do you wanna install it? Respond with 'yes' or 'no'"
read nodeinstall
if [ "$nodeinstall" = "yes" ]; then
echo "This needs sudo perms, YOU allow it."
sudo apt install git curl software-properties-common
curl -sL https://deb.nodesource.com/setup_16.x | sudo bash -
sudo apt install nodejs
echo "Now that NodeJS is installed, let's just go check the version."
node --version
echo "If it came properly, type yes. If it showed an error, click no."
read nodeinstallsuccess
if [ "$nodeinstallsuccess" = "yes" ]; then
echo "Then, what are we waiting for? Let's go!"
echo now, I am gonna make a tmp folder named gaudc # --> alert message sort
cd && mkdir GAUDC && cd GAUDC # --> making the folder and `cd`ing to the folder
echo Now, I will clone and install the files. # -->another alert message
git clone https://github.com/Melvin-Abraham/Google-Assistant-Unofficial-Desktop-Client.git && cd Google-Assistant-Unofficial-Desktop-Client # --> cloning and `cd`ing
echo Now, I will install and build the GAUDC files # -->next alert
npm install && npm run dist # --> installs and builds
echo Your GAUDC is built. Now, you can go to your $HOME directory, and afterwards, into GAUDC and finally, Google-Assistant-Unofficial-Desktop-Client directory, move to your `dist` directory, and, check the folders because I am a Linux noob. && echo Path to GAUDC: && pwd # --> End Message
fi
if [ "$nodeinstallsuccess" = "no" ]; then
echo "Try visiting the code and reinstall NodeJS the same way I did or got to NodeJS' official website, install it and try again."
echo "Ending..."
exit
fi
fi
if [ "$gitnodejs" = "yes" ]; then
echo "Well, let's just go ahead."
echo now, I am gonna make a tmp folder named gaudc # --> alert message sort
cd && mkdir GAUDC && cd GAUDC # --> making the folder and `cd`ing to the folder
echo Now, I will clone and install the files. # -->another alert message
git clone https://github.com/Melvin-Abraham/Google-Assistant-Unofficial-Desktop-Client.git && cd Google-Assistant-Unofficial-Desktop-Client # --> cloning and `cd`ing
echo Now, I will install and build the GAUDC files # -->next alert
npm install && npm run dist # --> installs and builds
echo Your GAUDC is built. Now, you can go to your $HOME directory, and afterwards, into GAUDC and finally, Google-Assistant-Unofficial-Desktop-Client directory, move to your `dist` directory, and, check the folders because I am a Linux noob. && echo Path to GAUDC: && pwd # --> End Message
fi
### Old code
# echo now, I am gonna make a tmp folder named gaudc # --> alert message sort
# cd && mkdir GAUDC && cd GAUDC # --> making the folder and `cd`ing to the folder
# echo Now, I will clone and install the files. # -->another alert message
# git clone https://github.com/Melvin-Abraham/Google-Assistant-Unofficial-Desktop-Client.git && cd Google-Assistant-Unofficial-Desktop-Client # --> cloning and `cd`ing
# echo Now, I will install and build the GAUDC files # -->next alert
# npm install && npm run dist # --> installs and builds
# echo Your GAUDC is built. Now, you can go to your $HOME directory, and afterwards, into GAUDC and finally, Google-Assistant-Unofficial-Desktop-Client directory, move to your `dist` directory, and, check the folders because I am a Linux noob. && echo Path to GAUDC: && pwd # --> End Message
fi # ???
@im-coder-lg
Copy link
Author

Me, a Linux noob made this? I learnt it.

@sumeshir26
Copy link

@coder-lg It works 😊

@im-coder-lg
Copy link
Author

im-coder-lg commented Jul 31, 2021

@sumeshir26 Can you show the output? Can't believe myself that I made something successful on ONE go😮😮😮

@im-coder-lg
Copy link
Author

And try running it again. I removed !, fors and thens, since they might cause errors.

@im-coder-lg
Copy link
Author

@sumeshir26 can you show the output while running the latest version? just curious 🤔

@im-coder-lg
Copy link
Author

And also, show the GAUDC file structure except the src folder, you can leave that out. Just show the ./dist folder structure, please? I need to enter it here for the navigation, that's why.

@im-coder-lg
Copy link
Author

ping @sumeshir26 i need your help to check if this works SUCCESSFULLY.

@sumeshir26
Copy link

Sorry, am busy with school, will send screenshots soon

@im-coder-lg
Copy link
Author

Thanks for helping though 😀

@im-coder-lg
Copy link
Author

Don't worry, take your time.

@sumeshir26
Copy link

image
Doesn't Work:(

@im-coder-lg
Copy link
Author

Sheesh!

@im-coder-lg
Copy link
Author

Wait

@im-coder-lg
Copy link
Author

Try the latest revision. Made some fixes

@im-coder-lg
Copy link
Author

image
Doesn't Work:(

And, by the way, referring the image you put above, I can not believe myself that @ECHO OFF, which works on batch files doesn't work in shell scripts.

@im-coder-lg
Copy link
Author

@sumeshir26 from now, use the new special-projects repository, this will be like a Dev Channel

@sumeshir26
Copy link

image
/ping @coder-lg

@im-coder-lg
Copy link
Author

not that, the dist folder. I could help in the navigation,that's why.

@im-coder-lg
Copy link
Author

You have to show the built dist folder. Are you using WSL?

@sumeshir26
Copy link

@coder-lg yes

@im-coder-lg
Copy link
Author

I will test there and share the result here. Thanks for all your help @sumeshir26! From now, use the new special-projects repo I made to check for bugs or tell me there!

@im-coder-lg
Copy link
Author

And, by the way, what distro are you using for WSL?

@sumeshir26
Copy link

Ubuntu

@im-coder-lg
Copy link
Author

im-coder-lg commented Aug 4, 2021 via email

@im-coder-lg
Copy link
Author

I need some help. I need someone with a real Linux distro. Best suggestion: Debian or Ubuntu. If you have it, create a new issue and ping me on Gitter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment