Update generate_image_json.py

This commit is contained in:
Sliverkiss
2024-02-20 21:45:28 +08:00
committed by GitHub
parent 273e032fb4
commit f74067f468

View File

@@ -2,7 +2,7 @@ import os
import json
def generate_json():
image_folder = 'test'
image_folder = 'icon'
json_data = {
"name": "Sakura图标订阅",
"description": "收集一些自己脚本用到的图标",
@@ -17,7 +17,7 @@ def generate_json():
json_data["icons"].append(icon_data)
# Set the output path relative to the repository root
output_path = os.path.join(os.getcwd(), 'test.icons.json')
output_path = os.path.join(os.getcwd(), 'sliverkiss.icons.json')
with open(output_path, 'w', encoding='utf-8') as json_file:
json.dump(json_data, json_file, ensure_ascii=False, indent=2)