mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
alternate plan for shields
This commit is contained in:
parent
f48266e27c
commit
f108db9cfc
1
.github/shields.io/bootloader.json
vendored
1
.github/shields.io/bootloader.json
vendored
@ -1 +0,0 @@
|
||||
{"schemaVersion": 1, "label": "bootloader", "message": "0.2", "color": "blue"}
|
1
.github/shields.io/comms.json
vendored
1
.github/shields.io/comms.json
vendored
@ -1 +0,0 @@
|
||||
{"schemaVersion": 1, "label": "comms", "message": "1.4.0", "color": "blue"}
|
1
.github/shields.io/coordinator.json
vendored
1
.github/shields.io/coordinator.json
vendored
@ -1 +0,0 @@
|
||||
{"schemaVersion": 1, "label": "coordinator", "message": "v0.12.6", "color": "blue"}
|
1
.github/shields.io/installer.json
vendored
1
.github/shields.io/installer.json
vendored
@ -1 +0,0 @@
|
||||
{"schemaVersion": 1, "label": "installer", "message": "v1.0", "color": "blue"}
|
1
.github/shields.io/pocket.json
vendored
1
.github/shields.io/pocket.json
vendored
@ -1 +0,0 @@
|
||||
{"schemaVersion": 1, "label": "pocket", "message": "alpha-v0.0.0", "color": "yellow"}
|
1
.github/shields.io/reactor-plc.json
vendored
1
.github/shields.io/reactor-plc.json
vendored
@ -1 +0,0 @@
|
||||
{"schemaVersion": 1, "label": "reactor-plc", "message": "v1.1.5", "color": "blue"}
|
1
.github/shields.io/rtu.json
vendored
1
.github/shields.io/rtu.json
vendored
@ -1 +0,0 @@
|
||||
{"schemaVersion": 1, "label": "rtu", "message": "v0.13.3", "color": "blue"}
|
1
.github/shields.io/supervisor.json
vendored
1
.github/shields.io/supervisor.json
vendored
@ -1 +0,0 @@
|
||||
{"schemaVersion": 1, "label": "supervisor", "message": "v0.14.4", "color": "blue"}
|
34
imgen.py
34
imgen.py
@ -1,5 +1,6 @@
|
||||
import json
|
||||
import os
|
||||
import sys
|
||||
|
||||
# list files in a directory
|
||||
def list_files(path):
|
||||
@ -107,22 +108,23 @@ f = open("install_manifest.json", "w")
|
||||
json.dump(final_manifest, f)
|
||||
f.close()
|
||||
|
||||
# write all the JSON files for shields.io
|
||||
for key, version in final_manifest["versions"].items():
|
||||
f = open(".github/shields.io/" + key + ".json", "w")
|
||||
if sys.argv[1] == "shields":
|
||||
# write all the JSON files for shields.io
|
||||
for key, version in final_manifest["versions"].items():
|
||||
f = open("shields-" + key + ".json", "w")
|
||||
|
||||
if version.find("alpha") >= 0:
|
||||
color = "yellow"
|
||||
elif version.find("beta") >= 0:
|
||||
color = "orange"
|
||||
else:
|
||||
color = "blue"
|
||||
if version.find("alpha") >= 0:
|
||||
color = "yellow"
|
||||
elif version.find("beta") >= 0:
|
||||
color = "orange"
|
||||
else:
|
||||
color = "blue"
|
||||
|
||||
json.dump({
|
||||
"schemaVersion": 1,
|
||||
"label": key,
|
||||
"message": "" + version,
|
||||
"color": color
|
||||
}, f)
|
||||
json.dump({
|
||||
"schemaVersion": 1,
|
||||
"label": key,
|
||||
"message": "" + version,
|
||||
"color": color
|
||||
}, f)
|
||||
|
||||
f.close()
|
||||
f.close()
|
||||
|
Loading…
Reference in New Issue
Block a user