Skip to content
This repository has been archived by the owner on Dec 11, 2021. It is now read-only.

Include a "core update" shortcut in the installer #2

Open
bladeoflight16 opened this issue Nov 4, 2015 · 0 comments
Open

Include a "core update" shortcut in the installer #2

bladeoflight16 opened this issue Nov 4, 2015 · 0 comments

Comments

@bladeoflight16
Copy link

When you run update-core and it finds updates, it currently says

==> Checking if there are critical packages to upgrade.
bash 4.3.042-1 -> 4.3.042-2
msys2-runtime 2.2.1.16681.8ba11f6-1 -> 2.3.0.16690.4930b0d-1
==> Core packages require updating.
==> Please close all other MSYS2 derived windows (e.g. terminal
==> windows, Bash sessions, etc) before proceeding.
==> WARNING: When the update has completed, you MUST close this MSYS2 window
==> WARNING: (use Alt-F4 or red [ X ], etc.), rather than 'exit'!!!

This is a major improvement over what updating these packages used to require. So kudos for that, first. But to simplify my update process even more, I have a shortcut in my Start Menu that executes a cmd file with the following contents:

C:\msys64\usr\bin\bash -i -l -c "update-core"

@PAUSE

(Actually, I have the script inside of C:\msys64 and I use %~dp0usr\bin\bash, but you get the point.)

This makes my life a fair bit simpler since I don't have to worry about exiting. bash just exits when the update is done, I see the result, and I open MSYS2 to update the rest of my packages. I doubt I'm the only one who would find this useful. Please consider adding something similar to the installer.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant