|
| 1 | +# MiSTer Downloader |
| 2 | + |
| 3 | +This tool installs and **updates all the cores** and other extra files for your *MiSTer*. It also updates the menu core, the MiSTer firmware and the Linux system. The source for all downloads is the [MiSTer Distribution](https://github.com/MiSTer-devel/Distribution_MiSTer) repository. |
| 4 | + |
| 5 | +The **MiSTer Downloader** is a substitute for the [MiSTer Updater](https://github.com/MiSTer-devel/Updater_script_MiSTer), and is meant to offer a more safe and robust experience, while being much faster. |
| 6 | + |
| 7 | +As a drawback, the **Downloader** is not backwards compatible with the old INI files that were configured for the [MiSTer Updater](https://github.com/MiSTer-devel/Updater_script_MiSTer). In fact, as of today, this tool doesn't implement many fine-grained features that allow you to customize the updating process in depth. In case you value these features, consider to keep using the [MiSTer Updater](https://github.com/MiSTer-devel/Updater_script_MiSTer) as usual. Both tools will coexist in the near future. |
| 8 | + |
| 9 | +### Setup and Usage |
| 10 | + |
| 11 | +Download this [ZIP file](https://github.com/MiSTer-devel/Downloader_MiSTer/releases/download/latest/MiSTer_Downloader.zip) and extract `downloader.sh` to your `/Scripts` folder on your primary SD card (create that folder if it doesn't exist). You only need to perform this operation once, since this tool self-updates itself. |
| 12 | + |
| 13 | +To use it, on your MiSTer main menu, go to the *Scripts* screen, and select `downloader`. |
| 14 | + |
| 15 | +### Options |
| 16 | + |
| 17 | +You may create a `downloader.ini` file to tweak some parameters. |
| 18 | + |
| 19 | +Here you can see the default parameters and the options that you may change: |
| 20 | + |
| 21 | +```ini |
| 22 | +[MiSTer] |
| 23 | +; base_path is where most files will be installed |
| 24 | +; Useful for setups with USB storage, for example: '/media/usb0/' |
| 25 | +base_path = '/media/fat/' |
| 26 | + |
| 27 | +; base_system_path is where system files such as 'MiSTer' and 'menu.rbf' will be installed. |
| 28 | +; Warning: It is recommended to NOT change this setting regardless of your setup. |
| 29 | +base_system_path = '/media/fat/' |
| 30 | + |
| 31 | +; allow_delete options: |
| 32 | +; 0 -> Don't allow this tool to delete anything at all. |
| 33 | +; 1 -> Allow this tool to delete any old file from previous updates. |
| 34 | +; 2 -> Allow this tool to delete only old cores that receive a new version. |
| 35 | +allow_delete = 1 |
| 36 | + |
| 37 | +; allow_reboot options: |
| 38 | +; 0 -> Don't allow this tool to ever reboot automatically. |
| 39 | +; 1 -> Allow this tool to reboot the system after any system file has been updated. |
| 40 | +; 2 -> Allow this tool to reboot the system only after Linux has been updated. |
| 41 | +allow_reboot = 1 |
| 42 | + |
| 43 | +; update_linux options: |
| 44 | +; true -> Updates Linux when there is a new update (very recommended). |
| 45 | +; false -> Doesn't update Linux. |
| 46 | +update_linux = true |
| 47 | + |
| 48 | +; parallel_update options: |
| 49 | +; true -> Tries to more than one file simultaneously. |
| 50 | +; false -> Will only download one file at a time. |
| 51 | +parallel_update = true |
| 52 | + |
| 53 | +; downloader_timeout: Can be tweaked to increase the timeout time in seconds |
| 54 | +; It is useful to increase this value for users with slow connections. |
| 55 | +downloader_timeout = 300 |
| 56 | + |
| 57 | +; downloader_retries: Can be tweaked to increase the retries per failed download |
| 58 | +; It is useful to increase this value for users with very unstable connections. |
| 59 | +downloader_retries = 3 |
| 60 | +``` |
| 61 | + |
| 62 | +### Roadmap |
| 63 | + |
| 64 | +- [x] Initial Release |
| 65 | +- [ ] [Cheats](https://gamehacking.org/mister/) fetching |
| 66 | +- [ ] First-run optimisations |
| 67 | +- [ ] Configurable custom download filters |
| 68 | +- [ ] Handle duplicated `games` folders through symlinks (*GBA* <-> *GBA2P*, and *GAMEBOY* <-> *GAMEBOY2P*) |
| 69 | +- [ ] Integration with *MiSTer* binary |
0 commit comments