Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/test_windows_new_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
4 changes: 3 additions & 1 deletion windows/App/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down