From 08397562d09322b6aa2df82a3b5ed8013f25d80b Mon Sep 17 00:00:00 2001 From: Ricca665 Date: Sat, 21 Nov 2026 13:07:01 +0100 Subject: [PATCH 1/2] fixed a bug that incorrectly calculated USB size Signed-off-by: Ricca665 --- windows/App/MainForm.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/windows/App/MainForm.cs b/windows/App/MainForm.cs index 8c75dfd..867c8d8 100644 --- a/windows/App/MainForm.cs +++ b/windows/App/MainForm.cs @@ -895,7 +895,9 @@ async void OnNext() MessageBox.Show(this, Loc.T("Apple's full installer is available here for macOS 15 and 26 only. Turn the option off to write an experimental older release."), "1401", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } - if (d.Size < 32UL * 1024 * 1024 * 1024) + // Windows uses GiB when calculating USB sizes uses, however Windows still displays as GB + // Just use the number that is around 32GB + if (d.Size < 31UL * 1000 * 1000 * 1000) { busy = false; next.Enabled = true; refresh.Enabled = true; MessageBox.Show(this, Loc.T("The full macOS installer needs a stick of 32 GB or more. Pick a larger stick or turn the option off."), "1401", MessageBoxButtons.OK, MessageBoxIcon.Information); From 290cb571d4d29ba86529806cd4963e8f4d885e15 Mon Sep 17 00:00:00 2001 From: Ricca665 Date: Sat, 21 Nov 2026 13:38:45 +0100 Subject: [PATCH 2/2] fixed an old unit test that used the old formula Signed-off-by: Ricca665 --- tests/test_windows_new_options.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_windows_new_options.py b/tests/test_windows_new_options.py index 7bba516..024bdfd 100644 --- a/tests/test_windows_new_options.py +++ b/tests/test_windows_new_options.py @@ -21,7 +21,7 @@ def test_the_full_installer_is_fetched_before_the_erase_and_passed_to_the_writer self.assertIn('args += " --full-installer " + Engine.Q(fullPkg)', SRC) def test_a_stick_under_32_gb_is_refused_with_the_number_the_engine_uses(self): - self.assertIn("d.Size < 32UL * 1024 * 1024 * 1024", SRC) + self.assertIn("d.Size < 31UL * 1000 * 1000 * 1000", SRC) self.assertEqual(fullinstaller.MIN_STICK, 32 * (1 << 30)) def test_the_option_is_off_by_default_and_needs_the_explanation(self):