更新 .gitea/workflows/convert_surge_to_gogost.py
Some checks failed
SurgeToGoGostConverter / convert (push) Failing after 4s
Some checks failed
SurgeToGoGostConverter / convert (push) Failing after 4s
This commit is contained in:
@@ -1,6 +1,12 @@
|
|||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
# 输出 surge 目录中的文件列表
|
||||||
|
print("转换前文件列表:")
|
||||||
|
for filename in os.listdir(input_dir):
|
||||||
|
file_path = os.path.join(input_dir, filename)
|
||||||
|
print(f"文件: {filename}")
|
||||||
|
|
||||||
def convert_surge_to_gogost(input_path, output_path):
|
def convert_surge_to_gogost(input_path, output_path):
|
||||||
print(f"正在转换: {input_path} -> {output_path}")
|
print(f"正在转换: {input_path} -> {output_path}")
|
||||||
with open(input_path, 'r') as infile, open(output_path, 'w') as outfile:
|
with open(input_path, 'r') as infile, open(output_path, 'w') as outfile:
|
||||||
|
|||||||
Reference in New Issue
Block a user