-
Notifications
You must be signed in to change notification settings - Fork 90
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
Automatic installation of server binaries #275
Comments
Definitely 👍 |
Just a thought: we basically do some kind of installation already, I mean for our travis build. I wonder if we could port that logic to elisp, and then the travis build could work basically the same way. But then we'd have the benefit of having an automatic installation as well. And it would continuously get tested too, which is a huge thing! |
This is an experimental code to ease server installation on macOS and Linux platforms. Windows will come later (and there shouldn't that many changes to support Windows). Related github issue: OmniSharp#275
Partially implemented, works on macOS (for me). Should be OK for Linux too. Needs little work on Windows. Didn't apear to be THAT hard to implement as I feared, actually. |
And yes, we should do the same thing on travis build. Definitely next on the list (with Windows implementation) @sp3ctum |
Actually extracting a zip on emacs/windows installation appears to be problematic, unless you expect the user to download and extract unzip.exe to a known location... I'd wish to implement something that would work automatically, w/o any involvement of a user, even on Windows.... |
really don't want to write a pkzip parser in elisp, unless thats the last resort.. |
Would it work if the installation first downloaded unzip and then the
server package?
…On Jul 15, 2017 14:32, "Saulius Menkevičius" ***@***.***> wrote:
really don't want to write pkzip parser in elisp, unless thats the last
resort..
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#275 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AASW95Yl0kOoh8uDNmIIfOJ4oc3gPxCtks5sOKNHgaJpZM4MDbJo>
.
|
@sp3ctum yes, I think it would, but I was a little bit worried that:
In other words, I am slight worried because of security implications.. |
I think we could:
this would be over https and I think GPL allows for downloading the binaries over the net and using those w/o doing any kind of linking with the app (emacs).. and emacs is in GPL, so .. don't know.. |
Windows has a decent shell in Powershell (which is included by default). If it would be acceptable to only support Powershell version 5 and up, you could simply run The powershell version can be checked by running:
If the the user has a version below the threshold, simply display a message that they need to extract the zip file themselves. There are other ways to extract zip files in powershell using .NET, but checking the installed .NET version could be more trouble than it's worth. |
@kimgronqvist thanks! I think using powershell will be something that will work here; also, I found a way not to require powershell v5, by using powershell script that references system.io.compression.fs directly: will try to implement this now |
Nice! I think it would also be worthwhile to run Some users will have unzip in their path when installing Git for Windows (which includes msys2), and some will have installed msys2 manually since many Emacs commands depends on tools like find, grep, and diff. |
@kimgronqvist another good idea! |
Great stuff, guys! I'm really glad you brought Powershell up Kim.
…On Jul 17, 2017 16:18, "Saulius Menkevičius" ***@***.***> wrote:
@kimgronqvist <https://github.com/kimgronqvist> another good idea!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#275 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AASW99xqLkVTVWA3Mvb3LRPHtYTvROosks5sO17WgaJpZM4MDbJo>
.
|
At least VS Code and Atom do this.
The code isn't pretty but its here https://github.com/OmniSharp/omnisharp-node-client/blob/0fa4cfbff6782420057ef731fbf4311fc376061e/lib/helpers/runtime.ts
TODO list:
(executable-find "unzip")
first before falling back to powershell for unzippingThe text was updated successfully, but these errors were encountered: