فهرست منبع

Merge pull request #5647 from Muqingxue-Studio/main

Fix:硬编码路径导致编译问题
龙腾猫跃 1 سال پیش
والد
کامیت
406d19b678
1فایلهای تغییر یافته به همراه5 افزوده شده و 2 حذف شده
  1. 5 2
      .github/workflows/build.yml

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

@@ -38,13 +38,16 @@ jobs:
     
     
     - name: Update Help
     - name: Update Help
       run:  |
       run:  |
+        $workpath = [System.Environment]::CurrentDirectory
         Set-Location ..
         Set-Location ..
         git clone https://github.com/LTCatt/PCL2Help.git -b master --single-branch --depth 1
         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
-        Set-Location ..\PCL2
+        Copy-Item -Path .\Help.zip -Destination "${{ GITHUB.WORKSPACE }}\Plain Craft Launcher 2\Resources\Help.zip" -Force
+        Set-Location ..
+        Remove-Item PCL2Help -Recurse -Force
+        Set-Location ${{ GITHUB.WORKSPACE }}
 
 
 
 
     - name: Replace
     - name: Replace