fortheusers / hb-appstore

Homebrew App Store - GUI for downloading/managing homebrew apps
https://hb-app.store
GNU General Public License v3.0
1.05k stars 61 forks source link

Recovery mode #35

Closed vgmoose closed 4 years ago

vgmoose commented 5 years ago

the old "console" GUI has a lot less moving parts than the new GUI and would make for a nice recovery mode. Currently this code is completely separate in the console directory, but should be integrated to run when holding a certain key sequence, or a crash is detected.

We can detect crash animal crossing style, by writing a file when the app launches and removing it when the app exits. If this file already exists at launch (meaning wasn't cleaned up properly), we can display a recovery prompt a la mr. resetti.

This recovery mode might also want to include an even lower-check before the GUI even initializes that directly downloads an appstore binary from a URL, just in case even the GUI is borked.

Image of the older console mode: image

vgmoose commented 4 years ago

Added in 2.2!

Recovery mode allows for the installation of packages, as well as the wiping of all libget data.

It can be started by spamming L/R after launching, or on PC via --recovery