public function useLocalUpdateFile(string $path, string $version = '') : self
{
if (\file_exists($path)) {
throw new FileNotFound();
}
$hash = File::checksum($path);
$this->localUpdateFile = new UpdateFile(['path' => $path, 'version' => $version, 'hash' => $hash, 'size' => \filesize($path)]);
return $this;
}