-
Notifications
You must be signed in to change notification settings - Fork 58
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
Suggestion: Powershell script for Windows installation/configuration #19
Comments
Hi there! I think something along these lines is a fantastic idea and would love to see something like this incorporated into the repository :) It's late, so I apologize in advance for any ramblings haha. Now that the project is, dare I say it, starting to reach a more "stable" form, I think a little more focus needs to be centered towards user-friendliness. This would include: (1) The initial install (2) Keeping up-to-date with changes (3) Customizability (4) Improve the GitHub site/README/create a WIKI outlining how to do all the above I think there are a lot of different approaches we could take to all of these and are worth looking into/considering before we decide on a path. For example we could: (1) Create a shell/bash script similar to what you are describing. Advantages:
Disadvantages:
(2) Create a python program to do everything you mentioned Advantages:
Disadvantages
(3) Create official "releases" through GitHub Advantages:
Disadvantages:
(4) Recommend the use of Advantages:
Disadvantages:
(5) Any combination of the above. I'm open to discussion, so I'm glad you brought this up/started the topic. I don't have my heart set on anything yet...but I almost think the best approach would be this: (1) Recommend Installing is a matter of one of two commands from the command line, and then we could give the user the proper commands. i.e.
and then Taking this approach would also save us some time/effort which could allow us to focus on creating some type of GUI to do the things you mentioned - i.e. select colors, uncomment necessary import statements etc. For reference, here is a little script I recently wrote for another repo I frequently use. Basically, it takes file A from a profile directory, creates a backup of it, downloads the new version of file A off the repo, puts it in the directory, and appends file B to the end of it. It's a little longer than you may expect, but might provide as a good base point/references if we go with the route you suggested. Anyways, these are just a few thoughts! Honestly I'm just stocked to have someone like you making recommendations and volunteering to help :) So any scripts you want to write, code you want to include etc., we will find a way to incorporate it in...not a chance I won't add something someone provides! Thoughts? |
Having covered most of this in the #14 thread, I think you've got this covered with the release plan. Good to close this? I'm happy to contribute any windows-specific stuff you like. |
We could certainly close it - I think the only thing you brought up here is the idea of a script that moves the directory to the correct location...I'm not sure if that's a really necessary thing though or just more work/things to upload/download that no one would use |
Sorry if logging an issue is not the correct way to suggest this, I don't github often.
It has occurred to me, that it should be possible to make a short (maybe one-liner) powershell script for installation. This would allow users to follow a very short and simple process to install the project, without needing to install git or any other additional tools. The process would be something like:
It may even be possible to use powershell to find the profile directory (I'm fairly sure we could parse profiles.ini), thus making this a matter of downloading a .ps script and running it.
The script could then download the zip, create the chrome folder and any necessary files which do not already exist, and append this project's @import commands to those files (preserving existing content), extract the zip to the appropriate location, etc.
If we go all-out, we could provide a simple text menu allowing the user to select highlight colours, optional tweaks (the script could un-comment @import lines), etc.
Perhaps the script would also be able to modify options for extensions, so that colours match (thinking about https://github.com/m-khvoinitsky/dark-background-light-text-extension)
I'm fairly comfortable with manually extracting the zip file personally, and those who have git on their machine will surely want to use that, but I think this is going to be a very very popular project, and less-tech savvy users will want a way to install it, which is familiar to them and has less chance of something going wrong like extracting it to the wrong place.
I don't want to make extra work for you and I'm not sure you own a windows PC, so I would be happy to provide this script if you would be interested. I've not looked into it too deeply and perhaps it might not be perfect or even possible, but everything seems quite straightforward at this point. I don't work as fast as you though ;) There are a few variables to consider (such as upgrading existing installations, preserving existing user modifications, etc) so it would take some time to make sure it's done right.
The text was updated successfully, but these errors were encountered: