generated from Minecon724/jarupdater-metadata-template
Compare commits
3 commits
f8bfb642aa
...
e8465eee69
Author | SHA1 | Date | |
---|---|---|---|
e8465eee69 | |||
1ecdbf8afe | |||
c3ccf509fa |
5 changed files with 5 additions and 1 deletions
0
data/testchannel/2.0.411/changelog.txt
Normal file
0
data/testchannel/2.0.411/changelog.txt
Normal file
BIN
data/testchannel/2.0.411/giants-2.0.10-SNAPSHOT.jar
Normal file
BIN
data/testchannel/2.0.411/giants-2.0.10-SNAPSHOT.jar
Normal file
Binary file not shown.
1
data/testchannel/2.0.411/meta-v1.json
Normal file
1
data/testchannel/2.0.411/meta-v1.json
Normal 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"}
|
|
@ -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"}
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue