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): 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);