From 74730f610252466efd8050f61a24208af65d88e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=85=95=E8=BD=BB=E9=9B=AA?= <3894593384@qq.com> Date: Wed, 12 Feb 2025 13:55:42 +0800 Subject: [PATCH 1/7] =?UTF-8?q?Chore:=E8=87=AA=E5=8A=A8=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8a0e38e..f95478c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,13 +38,14 @@ jobs: - name: Update Help run: | + $path = [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 "..\PCL2\Plain Craft Launcher 2\Resources\Help.zip" -Force - Set-Location ..\PCL2 + Set-Location $path - name: Replace From 25f936317089343640536486e6dea9b8f16472ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=85=95=E8=BD=BB=E9=9B=AA?= <3894593384@qq.com> Date: Wed, 12 Feb 2025 14:02:10 +0800 Subject: [PATCH 2/7] =?UTF-8?q?Fix:=E8=B7=AF=E5=BE=84=E6=8B=BC=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f95478c..6a21cda 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,7 +44,7 @@ jobs: Set-Location PCL2Help Remove-Item -Path *.* -Recurse -Force 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 $path + "\Plain Craft Launcher 2\Resources\Help.zip" -Force Set-Location $path From c27dfff84c2e24dfb15df6ec027b32ee2c01b340 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=85=95=E8=BD=BB=E9=9B=AA?= <3894593384@qq.com> Date: Wed, 12 Feb 2025 14:06:15 +0800 Subject: [PATCH 3/7] =?UTF-8?q?Fix:=E4=BD=BF=E7=94=A8=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=E4=B8=B2=E6=A8=A1=E6=9D=BF=E6=8F=92=E5=85=A5&=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=91=BD=E5=90=8D=E4=BB=A5=E9=81=BF=E5=85=8D=E4=B8=8E?= =?UTF-8?q?=E8=87=AA=E5=B8=A6=E5=8F=98=E9=87=8F=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6a21cda..926f432 100644 --- a/.github/workflows/build.yml +++ b/.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 From 9ff7f89f86a7d1e184ea201d477695bb9fe96ae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=85=95=E8=BD=BB=E9=9B=AA?= <3894593384@qq.com> Date: Wed, 12 Feb 2025 14:09:47 +0800 Subject: [PATCH 4/7] Update build.yml --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 926f432..2212a9e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,13 +38,13 @@ jobs: - name: Update Help run: | - $wkpath = [System.Environment]::CurrentDirectory + $workpath = [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 "$wkpath\Plain Craft Launcher 2\Resources\Help.zip" -Force + Copy-Item -Path .\Help.zip -Destination "$workpath\Plain Craft Launcher 2\Resources\Help.zip" -Force Set-Location $path From 5740b16325c931acbcaf35ce35c32aa63d22c74e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=85=95=E8=BD=BB=E9=9B=AA?= <3894593384@qq.com> Date: Wed, 12 Feb 2025 14:18:59 +0800 Subject: [PATCH 5/7] =?UTF-8?q?Fix:=E4=BD=BF=E7=94=A8=E4=BA=86=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=9A=84=E5=8F=98=E9=87=8F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2212a9e..d0e3e03 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,7 +45,7 @@ jobs: Remove-Item -Path *.* -Recurse -Force Compress-Archive -Path .\* -DestinationPath .\Help.zip Copy-Item -Path .\Help.zip -Destination "$workpath\Plain Craft Launcher 2\Resources\Help.zip" -Force - Set-Location $path + Set-Location $workpath - name: Replace From b5407ad6446975680d2cdce95a69e0bccebf4c49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=85=95=E8=BD=BB=E9=9B=AA?= <3894593384@qq.com> Date: Wed, 12 Feb 2025 14:44:59 +0800 Subject: [PATCH 6/7] =?UTF-8?q?Fix:Self-hosted=20runner=20=E4=B8=8D?= =?UTF-8?q?=E4=BC=9A=E8=87=AA=E5=8A=A8=E6=B8=85=E7=90=86=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E7=BC=96=E8=AF=91=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d0e3e03..4c449f4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,6 +45,8 @@ jobs: Remove-Item -Path *.* -Recurse -Force Compress-Archive -Path .\* -DestinationPath .\Help.zip Copy-Item -Path .\Help.zip -Destination "$workpath\Plain Craft Launcher 2\Resources\Help.zip" -Force + Set-Location .. + Remove-Item PCL2Help -Recurse -Force Set-Location $workpath From f31a5b14bc9f0be386888552f24d2c2a4ac42d65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=85=95=E8=BD=BB=E9=9B=AA?= <3894593384@qq.com> Date: Wed, 12 Feb 2025 15:31:35 +0800 Subject: [PATCH 7/7] ci:use context Co-authored-by: allMagicNB <116283787+allMagicNB@users.noreply.github.com> --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4c449f4..fbebe6a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,10 +44,10 @@ jobs: Set-Location PCL2Help Remove-Item -Path *.* -Recurse -Force Compress-Archive -Path .\* -DestinationPath .\Help.zip - Copy-Item -Path .\Help.zip -Destination "$workpath\Plain Craft Launcher 2\Resources\Help.zip" -Force + 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 $workpath + Set-Location ${{ GITHUB.WORKSPACE }} - name: Replace