Skip to content

Commit

Permalink
Create new chrome package
Browse files Browse the repository at this point in the history
  • Loading branch information
pbek committed Feb 16, 2022
1 parent 2ed20f3 commit 5bd4591
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: packages/qownnotes-web-companion.v20${{ env.VERSION }}.chrome.zip
asset_path: dist/chrome
asset_path: packages/chrome.zip
asset_name: qownnotes-web-companion.v20${{ env.VERSION }}.chrome.zip
asset_content_type: application/zip
- name: Upload Firefox package
Expand Down
2 changes: 2 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ sed -i -e 's/"version": "/"version": "20/g' package.json || exit 1
npm run build chrome || exit 1
# remove background.scripts from manifest.json for manifest v3 for Chrome
jq 'del(.background.scripts)' dist/chrome/manifest.json > /tmp/manifest.json && mv /tmp/manifest.json dist/chrome/manifest.json
# create new package
pushd dist/chrome && zip -r ../../packages/chrome.zip . && popd

# switch back to the correct version number format again
sed -i -e 's/"version": "20/"version": "/g' package.json || exit 1
Expand Down

0 comments on commit 5bd4591

Please sign in to comment.