From 83a5370badeb8374bedadac3d0543e995a471151 Mon Sep 17 00:00:00 2001 From: allMagic <116283787+allMagicNB@users.noreply.github.com> Date: Wed, 17 Jul 2024 16:45:26 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20build.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8aac8d7..d731dbf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,8 +45,8 @@ jobs: - name: Upload a Build Artifact uses: actions/upload-artifact@v4 with: - name: ${{ env.configuration }} ${{ env.describe }} - path: Plain Craft Launcher 2\obj\Debug\Plain Craft Launcher 2.exe + name: ${{ env.configuration }} ${{ env.describe }}.zip + path: .\Plain Craft Launcher 2\obj\Debug\Plain Craft Launcher 2.exe - name: Release if: ${{ inputs.Release }} uses: softprops/action-gh-release@v2 @@ -55,4 +55,4 @@ jobs: with: name: ${{ env.describe }} tag_name: ${{ env.describe }} - files: Plain Craft Launcher 2\obj\${{ env.configuration }}\Plain Craft Launcher 2.exe \ No newline at end of file + files: .\Plain Craft Launcher 2\obj\${{ env.configuration }}\Plain Craft Launcher 2.exe \ No newline at end of file From 227ceccb8f9df9a2272d18e3db9c6ee3c2816f6d Mon Sep 17 00:00:00 2001 From: allMagic <116283787+allMagicNB@users.noreply.github.com> Date: Wed, 17 Jul 2024 17:22:31 +0800 Subject: [PATCH 2/6] - .zip --- .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 d731dbf..b43d0cc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,7 +45,7 @@ jobs: - name: Upload a Build Artifact uses: actions/upload-artifact@v4 with: - name: ${{ env.configuration }} ${{ env.describe }}.zip + name: ${{ env.configuration }} ${{ env.describe }} path: .\Plain Craft Launcher 2\obj\Debug\Plain Craft Launcher 2.exe - name: Release if: ${{ inputs.Release }} From cc18004c4100850e599bff9739c2c5ed9bf038bb Mon Sep 17 00:00:00 2001 From: allMagic <116283787+allMagicNB@users.noreply.github.com> Date: Wed, 17 Jul 2024 17:25:04 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20build.yml?= 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 b43d0cc..9df7b48 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -42,6 +42,8 @@ jobs: (gc "Plain Craft Launcher 2\Modules\ModSecret.vb") -replace 'Request.Headers\("x-api-key"\) = ""', 'Request.Headers("x-api-key") = "${{ secrets.X_API_KEY }}"' | Out-File "Plain Craft Launcher 2\Modules\ModSecret.vb" - name: Build run: msbuild "Plain Craft Launcher 2\Plain Craft Launcher 2.vbproj" -p:Configuration=${{ env.configuration }} + - name: dir + run: dir /s - name: Upload a Build Artifact uses: actions/upload-artifact@v4 with: From 15f82f100ca12976d1634d93f050dbe2bfedea3e Mon Sep 17 00:00:00 2001 From: allMagic <116283787+allMagicNB@users.noreply.github.com> Date: Wed, 17 Jul 2024 17:28:10 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20build.yml?= 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 9df7b48..e32bb2d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -35,7 +35,6 @@ jobs: with: msbuild-architecture: x64 - name: Replace - shell: powershell run: | (gc "Plain Craft Launcher 2\Modules\Minecraft\ModLaunch.vb") -replace 'Dim ClientId As String = ""', 'Dim ClientId As String = "${{ secrets.CLIENT_ID }}"' | Out-File "Plain Craft Launcher 2\Modules\Minecraft\ModLaunch.vb" (gc "Plain Craft Launcher 2\Modules\ModSecret.vb") -replace 'Client.Headers\("x-api-key"\) = ""', 'Client.Headers("x-api-key") = "${{ secrets.X_API_KEY }}"' | Out-File "Plain Craft Launcher 2\Modules\ModSecret.vb" @@ -43,6 +42,7 @@ jobs: - name: Build run: msbuild "Plain Craft Launcher 2\Plain Craft Launcher 2.vbproj" -p:Configuration=${{ env.configuration }} - name: dir + shell: cmd run: dir /s - name: Upload a Build Artifact uses: actions/upload-artifact@v4 From fa9e1be4e21cbacbc7c53c343fec92ddbd796ad9 Mon Sep 17 00:00:00 2001 From: allMagic <116283787+allMagicNB@users.noreply.github.com> Date: Wed, 17 Jul 2024 19:43:38 +0800 Subject: [PATCH 5/6] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20build.yml?= 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 e32bb2d..fa42ac7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,7 +48,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: ${{ env.configuration }} ${{ env.describe }} - path: .\Plain Craft Launcher 2\obj\Debug\Plain Craft Launcher 2.exe + path: ${{ GITHUB.WORKSPACE }}\Plain Craft Launcher 2\obj\Debug\Plain Craft Launcher 2.exe - name: Release if: ${{ inputs.Release }} uses: softprops/action-gh-release@v2 @@ -57,4 +57,4 @@ jobs: with: name: ${{ env.describe }} tag_name: ${{ env.describe }} - files: .\Plain Craft Launcher 2\obj\${{ env.configuration }}\Plain Craft Launcher 2.exe \ No newline at end of file + files: ${{ GITHUB.WORKSPACE }}\Plain Craft Launcher 2\obj\${{ env.configuration }}\Plain Craft Launcher 2.exe \ No newline at end of file From 1bd7b717d0176c90866d9a6ac90d915ea4ca7d56 Mon Sep 17 00:00:00 2001 From: allMagic <116283787+allMagicNB@users.noreply.github.com> Date: Wed, 17 Jul 2024 19:58:01 +0800 Subject: [PATCH 6/6] - dir --- .github/workflows/build.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fa42ac7..1b27f7b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,9 +41,6 @@ jobs: (gc "Plain Craft Launcher 2\Modules\ModSecret.vb") -replace 'Request.Headers\("x-api-key"\) = ""', 'Request.Headers("x-api-key") = "${{ secrets.X_API_KEY }}"' | Out-File "Plain Craft Launcher 2\Modules\ModSecret.vb" - name: Build run: msbuild "Plain Craft Launcher 2\Plain Craft Launcher 2.vbproj" -p:Configuration=${{ env.configuration }} - - name: dir - shell: cmd - run: dir /s - name: Upload a Build Artifact uses: actions/upload-artifact@v4 with: @@ -57,4 +54,4 @@ jobs: with: name: ${{ env.describe }} tag_name: ${{ env.describe }} - files: ${{ GITHUB.WORKSPACE }}\Plain Craft Launcher 2\obj\${{ env.configuration }}\Plain Craft Launcher 2.exe \ No newline at end of file + files: ${{ GITHUB.WORKSPACE }}\Plain Craft Launcher 2\obj\${{ env.configuration }}\Plain Craft Launcher 2.exe