Skip to content

Commit

Permalink
Add Icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Pylogmon committed Sep 4, 2023
1 parent 4cd6c13 commit 248ba21
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Binary file added icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"id": "[plugin].com.pot-app.ocrspace",
"plugin_type": "recognize",
"icon": "icon.png",
"display": "OCR Space",
"needs": [{ "key": "apikey", "display": "Api Key" }],
"language": {
Expand Down

0 comments on commit 248ba21

Please sign in to comment.