diff --git a/resources/build/smbios.py b/resources/build/smbios.py index 2960834879..ce527505d4 100644 --- a/resources/build/smbios.py +++ b/resources/build/smbios.py @@ -288,7 +288,7 @@ def _advanced_serial_patch(self) -> None: """ if self.constants.custom_serial_number == "" or self.constants.custom_board_serial_number == "": - macserial_output = subprocess.run([self.constants.macserial_path] + f"-g -m {self.spoofed_model} -n 1".split(), stdout=subprocess.PIPE, stderr=subprocess.STDOUT) + macserial_output = subprocess.run([self.constants.macserial_path, "--generate", "--model", self.spoofed_model, "--num", "1"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) macserial_output = macserial_output.stdout.decode().strip().split(" | ") sn = macserial_output[0] mlb = macserial_output[1] diff --git a/resources/wx_gui/gui_settings.py b/resources/wx_gui/gui_settings.py index 34a9fcc068..74677d3f8a 100644 --- a/resources/wx_gui/gui_settings.py +++ b/resources/wx_gui/gui_settings.py @@ -1152,7 +1152,7 @@ def on_generate_serial_number(self, event: wx.Event) -> None: if dlg.ShowModal() != wx.ID_YES: return - macserial_output = subprocess.run([self.constants.macserial_path] + f"-g -m {self.constants.custom_model or self.constants.computer.real_model} -n 1".split(), stdout=subprocess.PIPE, stderr=subprocess.STDOUT) + macserial_output = subprocess.run([self.constants.macserial_path, "--generate", "--model", self.constants.custom_model or self.constants.computer.real_model, "--num", "1"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) macserial_output = macserial_output.stdout.decode().strip().split(" | ") if len(macserial_output) == 2: self.custom_serial_number_textbox.SetValue(macserial_output[0])