mirror of
https://github.com/Sliverkiss/QuantumultX.git
synced 2025-12-18 15:55:05 +08:00
Update generate_image_json.py
This commit is contained in:
4
.github/scripts/generate_image_json.py
vendored
4
.github/scripts/generate_image_json.py
vendored
@@ -2,7 +2,7 @@ import os
|
|||||||
import json
|
import json
|
||||||
|
|
||||||
def generate_json():
|
def generate_json():
|
||||||
image_folder = 'test'
|
image_folder = 'icon'
|
||||||
json_data = {
|
json_data = {
|
||||||
"name": "Sakura图标订阅",
|
"name": "Sakura图标订阅",
|
||||||
"description": "收集一些自己脚本用到的图标",
|
"description": "收集一些自己脚本用到的图标",
|
||||||
@@ -17,7 +17,7 @@ def generate_json():
|
|||||||
json_data["icons"].append(icon_data)
|
json_data["icons"].append(icon_data)
|
||||||
|
|
||||||
# Set the output path relative to the repository root
|
# 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:
|
with open(output_path, 'w', encoding='utf-8') as json_file:
|
||||||
json.dump(json_data, json_file, ensure_ascii=False, indent=2)
|
json.dump(json_data, json_file, ensure_ascii=False, indent=2)
|
||||||
|
|||||||
Reference in New Issue
Block a user