generated from Minecon724/jarupdater-metadata-template
changelog field
This commit is contained in:
parent
f8bfb642aa
commit
c3ccf509fa
1 changed files with 3 additions and 0 deletions
|
@ -135,8 +135,10 @@ def main(config: dict, version: str, channel: str, local: bool):
|
||||||
file_hash = None
|
file_hash = None
|
||||||
|
|
||||||
changelog = confirm('Do you want to include a changelog?')
|
changelog = confirm('Do you want to include a changelog?')
|
||||||
|
changelog_url = None
|
||||||
if changelog:
|
if changelog:
|
||||||
chlog_filepath, chlog_filename = just_find_file('changelog.txt')
|
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)
|
latest_data = load_latest_data(channel)
|
||||||
version_dir = make_path(channel, version)
|
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,
|
'id': latest_data['id'] + 1,
|
||||||
'timestamp': int(time.time()),
|
'timestamp': int(time.time()),
|
||||||
'file': file_url,
|
'file': file_url,
|
||||||
|
'changelog': changelog_url
|
||||||
'sha256': file_hash
|
'sha256': file_hash
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue