SociallyIneptWeeb / LanguageLeapAI

Your Personal Multilingual AI Translator
MIT License
843 stars 171 forks source link

First Run Script #74

Open stancho44 opened 1 year ago

stancho44 commented 1 year ago

This allows the user to install everything in one click. Most of the code I've written is in line 33 to 44 and the rest I found on stack overflow.

  1. The Process from the beginning is that it asks the user for admin (UAC).
  2. Install the Chocolatey package manager.
  3. Refresh the environment so chocolatey can be used
  4. Use chocolatey to install git
  5. refresh again
  6. use git to download the package
  7. copies .env.sample to .env
  8. open .env with notepad
  9. Install python 3.10 via Chocolatey (In the background)
  10. Install the package requirements via python while simultaneously downloading docker via chocolatey
  11. After it finishes it'll ask the user to restart for docker to be installed

I know you can download multiple packages at a time with chocolatey but I wanted to get git first and download the repository to open up the .env file for the user so the other downloads can happen in the background while they're configuring the file.

This script should be fine as long as the instructions doesn't change too much and if the python version used is still going to be at 3.10

Also added start scripts in the scr folder to launch the python code in 1 click. They should work regardless if the user has multiple python versions as it only uses 3.10