添加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,6 +5,12 @@ paths = os.path.dirname(__file__).replace("\\", "/")
pickle_jar = {} pickle_jar = {}
print("packing...") print("packing...")
for i in os.listdir(paths+"/res"): for i in os.listdir(paths+"/res"):
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}") print(f"pack {i}")
with open(paths+"/res/"+i, "rb") as file: with open(paths+"/res/"+i, "rb") as file:
pickle_jar[i.split(".")[0]] = base64.b64encode(file.read()) pickle_jar[i.split(".")[0]] = base64.b64encode(file.read())