/**
* @param array<string, mixed> $releaseInformation
*
* @throws UpdatePackageNotFoundException
* @throws ReleasePackageNotFoundException
*/
private function createVersionFromGithubResponse(string
$shopwareVersion, array
$releaseInformation): Version
{ $latestRelease =
$this->
getRelease($shopwareVersion,
$releaseInformation);
$installPackage =
$this->
getUpdatePackage($latestRelease['assets'
]);
$parts =
explode('_',
$installPackage['name'
]);
$sha1 =
array_pop($parts);
return new Version([ 'version' =>
$latestRelease['tag_name'
],
'release_date' =>
$latestRelease['created_at'
],
'size' =>
$installPackage['size'
],
'uri' =>
$installPackage['browser_download_url'
],
'changelog' =>
$latestRelease['html_url'
],
'isNewer' => true,