添加element图标,并使用lfs
Build and Publish / Run (push) Successful in 51s Details

This commit is contained in:
cxykevin 2024-04-25 22:50:51 +08:00
parent 546172ee07
commit 0412c3f7ef
2 changed files with 9 additions and 3 deletions

Binary file not shown.

View File

@ -5,9 +5,15 @@ paths = os.path.dirname(__file__).replace("\\", "/")
pickle_jar = {}
print("packing...")
for i in os.listdir(paths+"/res"):
print(f"pack {i}")
with open(paths+"/res/"+i, "rb") as file:
pickle_jar[i.split(".")[0]] = base64.b64encode(file.read())
if (".pack" in i):
print(f"insert {i}")
with open(paths+"/res/"+i, "rb") as file:
pkg_jar = pickle.load(file)
pickle_jar.update(pkg_jar)
else:
print(f"pack {i}")
with open(paths+"/res/"+i, "rb") as file:
pickle_jar[i.split(".")[0]] = base64.b64encode(file.read())
print("write...")
with open(paths+"/../magictk/res.pickle", "wb") as file:
pickle.dump(pickle_jar, file)