Compare commits

..

3 commits

Author SHA1 Message Date
e8465eee69
[releaser] Release 2.0.411 on testchannel 2024-10-27 16:17:06 +01:00
1ecdbf8afe
a 2024-10-27 16:16:36 +01:00
c3ccf509fa
changelog field 2024-10-27 16:08:25 +01:00
5 changed files with 5 additions and 1 deletions

View file

Binary file not shown.

View file

@ -0,0 +1 @@
{"label": "2.0.411", "id": 7, "timestamp": 1730042224, "file": "https://git.m724.eu/Minecon724/giants-metadata/raw/branch/master/data/testchannel/2.0.411/giants-2.0.10-SNAPSHOT.jar", "changelog": "https://git.m724.eu/Minecon724/giants-metadata/raw/branch/master/data/testchannel/2.0.411/changelog.txt", "sha256": "eacc2829a6e7da8c47c3c95d427b852074689e3fabfaacc78089249d6005ffd8"}

View file

@ -1 +1 @@
{"label": "2.0.44", "id": 6, "timestamp": 1730040945, "file": "https://git.m724.eu/Minecon724/giants-metadata/raw/branch/master/data/testchannel/2.0.44/a.jar", "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}
{"label": "2.0.411", "id": 7, "timestamp": 1730042224, "file": "https://git.m724.eu/Minecon724/giants-metadata/raw/branch/master/data/testchannel/2.0.411/giants-2.0.10-SNAPSHOT.jar", "changelog": "https://git.m724.eu/Minecon724/giants-metadata/raw/branch/master/data/testchannel/2.0.411/changelog.txt", "sha256": "eacc2829a6e7da8c47c3c95d427b852074689e3fabfaacc78089249d6005ffd8"}

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
}