mirror of
https://github.com/sipeed/MaixCDK.git
synced 2026-09-10 21:59:54 -05:00
33 lines
1.0 KiB
Python
33 lines
1.0 KiB
Python
|
|
def add_file_downloads(confs : dict) -> list:
|
|
'''
|
|
@param confs kconfig vars, dict type
|
|
@return list type, items is dict type
|
|
'''
|
|
version = f"{confs['CONFIG_MEDIA_SERVER_VERSION_MAJOR']}.{confs['CONFIG_MEDIA_SERVER_VERSION_MINOR']}.{confs['CONFIG_MEDIA_SERVER_VERSION_PATCH']}"
|
|
if version == "1.0.0":
|
|
url = "https://files.catbox.moe/c7rklp.zip"
|
|
sha256sum = "dfe405cedbf3969fbf1f252634e7b1c71e8bb3e2d0857db2fe7e70189474ecd1"
|
|
elif version == "1.0.1":
|
|
url = "https://files.catbox.moe/acqhv1.zip"
|
|
sha256sum = "ce06dc3d03b6036165956e60afd5eec5bfd37e7746e4b427f2099732478ecc22"
|
|
else:
|
|
raise Exception(f"version {version} not support")
|
|
filename = f"media_server-{version}.zip"
|
|
|
|
return [
|
|
{
|
|
'url': f'{url}',
|
|
'urls': [],
|
|
'sites': [],
|
|
'sha256sum': sha256sum,
|
|
'filename': filename,
|
|
'path': 'media_server',
|
|
'check_files': [
|
|
f'media_server-{version}'
|
|
]
|
|
}
|
|
]
|
|
|
|
|