瀏覽代碼

Fix:使用字符串模板插入&修改命名以避免与自带变量冲突

慕轻雪 1 年之前
父節點
當前提交
c27dfff84c
共有 1 個文件被更改,包括 2 次插入 和 2 次删除
  1. 2 2
      .github/workflows/build.yml

+ 2 - 2
.github/workflows/build.yml

@@ -38,13 +38,13 @@ jobs:
     
     - name: Update Help
       run:  |
-        $path = [System.Environment]::CurrentDirectory
+        $wkpath = [System.Environment]::CurrentDirectory
         Set-Location ..
         git clone https://github.com/LTCatt/PCL2Help.git -b master --single-branch --depth 1
         Set-Location PCL2Help
         Remove-Item -Path *.* -Recurse -Force
         Compress-Archive -Path .\* -DestinationPath .\Help.zip
-        Copy-Item -Path .\Help.zip -Destination $path + "\Plain Craft Launcher 2\Resources\Help.zip" -Force
+        Copy-Item -Path .\Help.zip -Destination "$wkpath\Plain Craft Launcher 2\Resources\Help.zip" -Force
         Set-Location $path