From 9ad92bb0ffa0998b0a1550488bac88c0674e8bc7 Mon Sep 17 00:00:00 2001 From: CommandLine <71168720+Def-Try@users.noreply.github.com> Date: Wed, 22 Feb 2023 23:43:33 +0700 Subject: [PATCH] Move EEPROM flash stage to after-install --- Installer/Main.lua | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/Installer/Main.lua b/Installer/Main.lua index fb81ff9c..b72d5fea 100644 --- a/Installer/Main.lua +++ b/Installer/Main.lua @@ -559,16 +559,6 @@ addStage(function() ) end) - -- Flashing EEPROM - layout:removeChildren() - addImage(1, 1, "EEPROM") - addTitle(0x969696, localization.flashing) - workspace:draw() - - component.invoke(EEPROMAddress, "set", request(EFIURL)) - component.invoke(EEPROMAddress, "setLabel", "MineOS EFI") - component.invoke(EEPROMAddress, "setData", selectedFilesystemProxy.address) - -- Downloading files layout:removeChildren() addImage(3, 2, "Downloading") @@ -654,6 +644,17 @@ addStage(function() workspace:draw() end + -- Flashing EEPROM + layout:removeChildren() + addImage(1, 1, "EEPROM") + addTitle(0x969696, localization.flashing) + workspace:draw() + + component.invoke(EEPROMAddress, "set", request(EFIURL)) + component.invoke(EEPROMAddress, "setLabel", "MineOS EFI") + component.invoke(EEPROMAddress, "setData", selectedFilesystemProxy.address) + + -- Saving system versions switchProxy(function() filesystem.writeTable(paths.system.versions, versions, true)