-
Notifications
You must be signed in to change notification settings - Fork 104
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
How to update mintty/wsltty? #20
Comments
There is no update check available. You could build wsltty yourself and update the mintty version in the makefile. Build environment is cygwin (32 bit). I could perhaps build an "update available" check into the About popup of mintty, if that's desired. |
That would be desirable. For now I have to manually track whether it is updated and re-install the new version, correct? |
I could check the version against a file from the mintty repository or home page. |
"thumbs up" means you're going to provide such a code sniplet? |
I would if I could - I don't develop for windows. Sorry. |
Just had the bold idea that somebody could make a Debian package to deploy wsltty. Whether it's possible by the respective package policy to deploy software that is not compiled under Debian, I don't know. Also "somebody" would not be me in this case. |
Does Debian have cygwin cross-compilers available? That could conceivably work too, maybe? I've heard that Fedora does or did have cygwin cross-compilers, but haven't tried using them myself. And Fedora doesn't help too much for users of WSL. Someone could make a PPA perhaps, where the policies are a bit less stringent. |
@mintty Just a thought, if you included a version file, or specified the version in a file with the releases of this, you could then maybe add a shell script to the user's home directory which would simply Not anything spectacular, but it does the job. |
Another alternative is to provide another I wouldn't mind giving your initial idea a go (seems like a simple task), but I only see Basically, I know what you want to do, but I don't understand how you want to go about doing this. 😄 |
I had thought about bundling wget or curl with wsltty as you suggest, for an instant... That's why using a Windows API function is a more feasible approach. That won't be really hard, just a little bit tricky because of the quirks of Windows callback APIs, and I didn't feel like doing it myself. Oh, and the call should probably be threaded, not to block mintty. Something like retrieve_text_from_url(url), returning immediately and when a bit of text (e.g. a line) has been downloaded, send it to |
writing something in powershell would be simpler |
Is Powershell always installed by default now? |
since vista, yeah |
(googled) It seems to be basically simple, even though the simple form (using HtmlWebResponseObject) seems to work only for newer versions of Powershell. Is it possible to make this HtmlWebResponseObject send a message to a window? Anyway, stuffing a file would also work. Yet the thing needs to be invoked, asynchronously, and preferably not popup on the screen. Since I'm not into Powershell, I would appreciate if someone demonstrates that for me. |
wsl is a win10 feature, so I think you can rely on fairly recent powershell not sure about the exact implementation details here myself. whatever invokes powershell to run the script could probably background that task? |
This one-liner works: The description of the WebClient class suggests it should also be possible to invoke that without starting a Powershell externally, which might save some delay. I would appreciate to use either function If someone provides a sample implementation along this approach, that would be great. |
Sorry I dropped my comms, been busy with my server over the weekend. I've done a couple of things in C, I'm no genie but I could try an knock something up for you? No guarantee though. I was thinking, if it's going to be done in a language (i.e. C) and built into the application itself, there should be no need for the use of Powershell either as it would be faster to do it natively in the application itself. I'm a little busy at work right now, but I'll try and get back to you with an example later. |
I've implemented an update checker. With some setup tricks, you could try it: compile the current mintty repository version in a Cygwin 32-bit environment, then replace the binaries (possibly also an updated cygwin1.dll) in the wsltty hierarchy. |
Released with 0.7.5 (referring to mintty version, now 2.7.5). |
You would download the latest release installer of wsltty and simply install it over your current version. |
The next release shall refer to the wsltty version rather than the mintty version. |
Released 1.8.0. |
Can you make the update notification clickable so that it leads you to the download site? :) |
It's not easy to capture such a click. Maybe the WM_NCHITTEST message in windialog.c would work. But it's not possible to limit handling to exact position of the hint text, so any click on the top border would trigger the link opening. |
How do I update mintty, and how do I update wsltty?
If possible, How do I schedule an update check for the two?
The text was updated successfully, but these errors were encountered: