MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / download_and_install

Function download_and_install

scripts/download_headless.py:86–102  ·  view source on GitHub ↗
(
  serial: str = None, downloaddir: str = None, dev: bool = False, clean: bool = False, install: bool = False,
  installdir: str = '/usr/local/bin'
)

Source from the content-addressed store, hash-verified

84
85
86def download_and_install(
87 serial: str = None, downloaddir: str = None, dev: bool = False, clean: bool = False, install: bool = False,
88 installdir: str = '/usr/local/bin'
89):
90 env_lic = 'BN_HEADLESS_LICENSE'
91 if serial is None:
92 if env_lic in os.environ:
93 license_path = os.environ[env_lic]
94 else:
95 license_path = get_system_license_path()
96 serial = get_serial_from_license(license_path)
97
98 download_path = download_headless(serial, downloaddir, dev)
99 logging.info(f"Successfully downloaded to: {download_path}")
100 if install is True:
101 install_zip(download_path, installdir, clean)
102 logging.info(f"Successfully installed to {installdir}")
103
104
105if __name__ == '__main__':

Callers 1

Calls 5

get_system_license_pathFunction · 0.85
get_serial_from_licenseFunction · 0.85
download_headlessFunction · 0.85
install_zipFunction · 0.85
infoMethod · 0.45

Tested by

no test coverage detected