diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 285e3b4..d030a1d 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -54,7 +54,8 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: packages/qownnotes-web-companion.v20${{ env.VERSION }}.chrome.zip +# asset_path: packages/qownnotes-web-companion.v20${{ env.VERSION }}.chrome.zip + asset_path: packages/chrome.zip asset_name: qownnotes-web-companion.v20${{ env.VERSION }}.chrome.zip asset_content_type: application/zip - name: Upload Firefox package diff --git a/CHANGELOG.md b/CHANGELOG.md index 1314194..cf57bbb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # QOwnNotes Web Companion Changelog +## 22.12.1 +- the package for Chrome was fixed (for [#41](https://github.com/qownnotes/web-companion/issues/41)) + ## 22.12.0 - changed Firefox default shortcut to Ctrl + Alt + B since the browser blocked Ctrl + Shift + B (for [#48](https://github.com/qownnotes/web-companion/issues/48)) diff --git a/build.sh b/build.sh index b627226..fd7917b 100755 --- a/build.sh +++ b/build.sh @@ -10,10 +10,12 @@ cd "$DIR" || exit 1 sed -i -e 's/"version": "/"version": "20/g' package.json || exit 1 npm run build chrome || exit 1 +# this is done by replace-in-file-webpack-plugin now ## 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 + +# create new package for Chrome (still needs to be done, because the changes replace-in-file-webpack-plugin does are not present in the generated package) +pushd dist/chrome && zip -r ../../packages/chrome.zip . && popd || exit 1 # switch back to the correct version number format again sed -i -e 's/"version": "20/"version": "/g' package.json || exit 1