changelog field

This commit is contained in:
Minecon724 2024-10-27 16:08:25 +01:00
parent f8bfb642aa
commit c3ccf509fa
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8

View file

@ -135,8 +135,10 @@ def main(config: dict, version: str, channel: str, local: bool):
file_hash = None
changelog = confirm('Do you want to include a changelog?')
changelog_url = None
if changelog:
chlog_filepath, chlog_filename = just_find_file('changelog.txt')
changelog_url = f'{config["baseUrl"]}/{BASE_DIR}/{channel}/{version}/changelog.txt'
latest_data = load_latest_data(channel)
version_dir = make_path(channel, version)
@ -163,6 +165,7 @@ def main(config: dict, version: str, channel: str, local: bool):
'id': latest_data['id'] + 1,
'timestamp': int(time.time()),
'file': file_url,
'changelog': changelog_url
'sha256': file_hash
}