Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First Run Script #74

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

First Run Script #74

wants to merge 4 commits into from

Conversation

stancho44
Copy link
Contributor

@stancho44 stancho44 commented Mar 17, 2023

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

Made a `firstrunscript.bat` file. It'll download all the dependencies via chocolatey and docker desktop. This script makes it much easier to install and it was tested on my system via windows sandbox.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant