You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chrome_colors[waltocrx[key].split('.')[0]][waltocrx[key].split('.')[1]][waltocrx[key].split('.')[2]] =rgbcolor# f.seek(0) # <--- should reset file position to the beginning.
39
39
40
40
os.remove(dest_file) #need to overwrite it, might be better ways
41
41
withopen(dest_file, "w+") asf:
42
-
json.dump(chrome_colors, f, indent=None)
42
+
json.dump(chrome_colors, f, indent=None)#this puts it in a compacted form but it works, not sure if its possible to preserve original form, every other indent level adds newlines to each RGB value
43
43
f.truncate() # remove remaining part
44
44
45
-
#manifest.json should be updated now, proceed as normal packing .crx
45
+
#manifest.json should be updated now, proceed as normal packing .crx
46
46
# this can be done from CLI as well, additional feature
0 commit comments