From 248ba212656144a47cd840d30269160ccaa6fcb8 Mon Sep 17 00:00:00 2001 From: Pylogmon Date: Mon, 4 Sep 2023 19:42:02 +0800 Subject: [PATCH] Add Icon --- .github/workflows/build.yml | 8 +++++--- icon.png | Bin 0 -> 5429 bytes info.json | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 icon.png diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4823ab4..c846dec 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,6 +6,7 @@ jobs: runs-on: ubuntu-latest outputs: name: ${{ steps.getname.outputs.NAME }} + icon: ${{ steps.getname.outputs.ICON }} steps: - name: Checkout uses: actions/checkout@v3 @@ -20,6 +21,7 @@ jobs: - id: getname run: | echo "NAME=$(cat info.json | jq '.id' | tr -d '"')" >> "$GITHUB_OUTPUT" + echo "ICON=$(cat info.json | jq '.icon' | tr -d '"')" >> "$GITHUB_OUTPUT" build-for-windows: needs: check strategy: @@ -50,7 +52,7 @@ jobs: run: move target/${{ matrix.target }}/release/plugin.dll ./plugin.dll - uses: vimtor/action-zip@v1 with: - files: info.json plugin.dll + files: info.json ${{needs.check.outputs.icon}} plugin.dll dest: ${{needs.check.outputs.name}}.potext - name: Upload Artifacts uses: actions/upload-artifact@v3 @@ -95,7 +97,7 @@ jobs: run: sudo mv target/${{ matrix.target }}/release/libplugin.dylib ./plugin.dylib - uses: vimtor/action-zip@v1 with: - files: info.json plugin.dylib + files: info.json ${{needs.check.outputs.icon}} plugin.dylib dest: ${{needs.check.outputs.name}}.potext - name: Upload Artifacts uses: actions/upload-artifact@v3 @@ -141,7 +143,7 @@ jobs: toolchain: stable-${{ matrix.target }} - uses: vimtor/action-zip@v1 with: - files: info.json plugin.so + files: info.json ${{needs.check.outputs.icon}} plugin.so dest: ${{needs.check.outputs.name}}.potext - name: Upload Artifacts uses: actions/upload-artifact@v3 diff --git a/icon.png b/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..790945f62d9a4c1d17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