|
@@ -38,19 +38,12 @@ jobs:
|
|
|
|
|
|
|
|
- name: Update Help
|
|
- name: Update Help
|
|
|
run: |
|
|
run: |
|
|
|
- # 切换到上一级目录,免得混在一起
|
|
|
|
|
Set-Location ..
|
|
Set-Location ..
|
|
|
- # 检出远程仓库的 master 分支
|
|
|
|
|
- git clone https://github.com/LTCatt/PCL2Help.git -b master
|
|
|
|
|
- # 切换到帮助库的目录
|
|
|
|
|
|
|
+ git clone https://github.com/LTCatt/PCL2Help.git -b master --single-branch --depth 1
|
|
|
Set-Location PCL2Help
|
|
Set-Location PCL2Help
|
|
|
- # 删掉无用的文件
|
|
|
|
|
Remove-Item -Path *.* -Recurse -Force
|
|
Remove-Item -Path *.* -Recurse -Force
|
|
|
- # 压缩
|
|
|
|
|
Compress-Archive -Path .\* -DestinationPath .\Help.zip
|
|
Compress-Archive -Path .\* -DestinationPath .\Help.zip
|
|
|
- # 覆盖文件
|
|
|
|
|
Copy-Item -Path .\Help.zip -Destination "..\PCL2\Plain Craft Launcher 2\Resources\Help.zip" -Force
|
|
Copy-Item -Path .\Help.zip -Destination "..\PCL2\Plain Craft Launcher 2\Resources\Help.zip" -Force
|
|
|
- # 切换到原来的目录进行编译
|
|
|
|
|
Set-Location ..\PCL2
|
|
Set-Location ..\PCL2
|
|
|
|
|
|
|
|
|
|
|