def _set_platform_name(self):
        """
        Set the platform and exe name based on the platform undetected_chromedriver is running on
        in order to download the correct chromedriver.
        """
        if self.platform.endswith("win32"):
            self.platform_name = "win32"
            self.exe_name %= ".exe"
        if self.platform.endswith(("linux", "linux2")):
            self.platform_name = "linux64"
            self.exe_name %= ""
        if self.platform.endswith("darwin"):
            if self.is_old_chromedriver:
                self.platform_name = "mac64"
            else:
                self.platform_name = "mac-x64"
            self.exe_name %= ""
        if self.platform.startswith("freebsd"):
            self.platform_name = "freebsd"
            self.exe_name %= ""

        Set the platform and exe name based on the platform undetected_chromedriver is running on
        in order to download the correct chromedriver.
        
src/undetected_chromedriver/patcher.py