Skip to content

Commit

Permalink
工作流:打包英文文档
Browse files Browse the repository at this point in the history
  • Loading branch information
ACaiCat committed Sep 1, 2024
1 parent 88c7efb commit 0d2ef44
Show file tree
Hide file tree
Showing 3 changed files with 488 additions and 393 deletions.
10 changes: 10 additions & 0 deletions scripts/BuildHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ def zip_files_in_folder(folder_path, zip_file_path):
print(f"🔍 找到README.md({destination_path})")
except:
print(f"⚠️ README移动失败({file_name})")
try:
if file_name.endswith('.csproj'):
source_path = os.path.join(dir_path, 'README_EN.md')
destination_path = os.path.join(cwd, 'out', f'{build_type}', file_name.replace('.csproj', '.md'))
shutil.copyfile(source_path, destination_path)
print(f"🔍 找到README_EN.md({destination_path})")
except:
pass


os.makedirs(f'out/{build_type}/Plugins', exist_ok=True)
Expand Down Expand Up @@ -88,4 +96,6 @@ def zip_files_in_folder(folder_path, zip_file_path):
else:
print('❓Gitee插件包上传失败:', response.status_code)
print(response.json())

print("📦 插件打包结束!")

Loading

0 comments on commit 0d2ef44

Please sign in to comment.