generated from Minecon724/jarupdater-metadata-template
Compare commits
No commits in common. "e8465eee699a0f0a98b912968498be5cba4601f0" and "f8bfb642aa0eacc1cd7ea0940ed7b6aec5a68ab1" have entirely different histories.
e8465eee69
...
f8bfb642aa
5 changed files with 1 additions and 5 deletions
Binary file not shown.
|
@ -1 +0,0 @@
|
||||||
{"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"}
|
|
|
@ -1 +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"}
|
{"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"}
|
|
@ -135,10 +135,8 @@ 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)
|
||||||
|
@ -165,7 +163,6 @@ 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