@@ -790,7 +790,7 @@ def main():
790790 official_entries = []
791791 if not args .sync_official_list :
792792 official_entries = read_official_entries (official_list )
793- existing_sha256 = {entry ["url" ]: entry .get ("sha256 " ) for entry in official_entries if entry .get ("url" )}
793+ existing_sha256 = {entry ["url" ]: entry .get ("zip_sha256 " ) for entry in official_entries if entry .get ("url" )}
794794 known_urls = set (existing_sha256 .keys ())
795795 releases = get_available_releases (platform = args .platform )
796796
@@ -805,8 +805,10 @@ def merge_entry(entry):
805805 current ["url" ] = entry ["url" ]
806806 if entry .get ("date" ) and not current .get ("date" ):
807807 current ["date" ] = entry ["date" ]
808- if entry .get ("sha256" ) and not current .get ("sha256" ):
809- current ["sha256" ] = entry ["sha256" ]
808+ if entry .get ("zip_sha256" ) and not current .get ("zip_sha256" ):
809+ current ["zip_sha256" ] = entry ["zip_sha256" ]
810+ if entry .get ("exe_sha256" ) and not current .get ("exe_sha256" ):
811+ current ["exe_sha256" ] = entry ["exe_sha256" ]
810812 releases_by_version [version ] = current
811813
812814 for entry in official_entries :
@@ -843,7 +845,7 @@ def merge_entry(entry):
843845 release ["url" ] = candidates [0 ]
844846 url = candidates [0 ]
845847 if url :
846- current_sha = existing_sha256 .get (url ) or release .get ("sha256 " )
848+ current_sha = existing_sha256 .get (url ) or release .get ("zip_sha256 " )
847849 if not current_sha :
848850 missing .append (release )
849851 else :
@@ -926,7 +928,8 @@ def merge_entry(entry):
926928 continue
927929 if entry_url not in known_urls :
928930 entry_copy = dict (entry )
929- entry_copy ["sha256" ] = updates .get (entry_url )
931+ entry_copy ["zip_sha256" ] = updates .get (entry_url )
932+ entry_copy ["exe_sha256" ] = exe_updates .get (entry_url )
930933 if not entry_copy .get ("date" ) and entry_copy .get ("version" ):
931934 entry_copy ["date" ] = release_dates .get (entry_copy ["version" ])
932935 new_entries .append (entry_copy )
0 commit comments