16 lines
307 B
Python
16 lines
307 B
Python
import json, sys, traceback
|
|
|
|
if len(sys.argv) != 2:
|
|
exit(traceback.print_exc())
|
|
|
|
releaseTag = sys.argv[1]
|
|
file_path = "./version.json"
|
|
|
|
with open(file_path, 'r') as file:
|
|
data = json.load(file)
|
|
|
|
data["datasaker"] = releaseTag
|
|
|
|
with open(file_path, 'w') as file:
|
|
json.dump(data, file, indent=4)
|