bump v1.5.9 #10
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*.*.*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install jq | |
| run: sudo apt-get install -y jq | |
| - name: Get version from tag | |
| id: version | |
| run: echo "VERSION=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT" | |
| - name: Build Firefox zip | |
| run: | | |
| VERSION="${{ steps.version.outputs.VERSION }}" | |
| # Firefox uses Event Pages (scripts) and handles background differently than Chrome | |
| # Remove service_worker which is Chrome-specific | |
| jq 'del(.background.service_worker)' manifest.json > manifest.firefox.json | |
| mv manifest.firefox.json manifest.json | |
| zip -r "fluxon-${VERSION}-firefox.zip" \ | |
| manifest.json \ | |
| background.js \ | |
| offscreen.html \ | |
| offscreen.js \ | |
| popup.html \ | |
| popup.css \ | |
| popup.js \ | |
| options.html \ | |
| options.js \ | |
| plugin-engine.js \ | |
| mux.js \ | |
| media-db.js \ | |
| mediabunny.js \ | |
| i18n-helper.js \ | |
| icons/ \ | |
| _locales/ \ | |
| plugins/ | |
| # Restore manifest for next step | |
| git checkout manifest.json | |
| echo "FIREFOX_ZIP=fluxon-${VERSION}-firefox.zip" >> "$GITHUB_ENV" | |
| - name: Build Chrome zip | |
| run: | | |
| VERSION="${{ steps.version.outputs.VERSION }}" | |
| # Patch offscreen permission into manifest for Chrome | |
| # Also remove "scripts" which is the Firefox-specific background mechanism | |
| jq '.permissions += ["offscreen"] | del(.background.scripts)' manifest.json > manifest.chrome.json | |
| mv manifest.chrome.json manifest.json | |
| zip -r "fluxon-${VERSION}-chrome.zip" \ | |
| manifest.json \ | |
| background.js \ | |
| offscreen.html \ | |
| offscreen.js \ | |
| popup.html \ | |
| popup.css \ | |
| popup.js \ | |
| options.html \ | |
| options.js \ | |
| plugin-engine.js \ | |
| mux.js \ | |
| media-db.js \ | |
| mediabunny.js \ | |
| i18n-helper.js \ | |
| icons/ \ | |
| _locales/ \ | |
| plugins/ | |
| # Restore original manifest | |
| git checkout manifest.json | |
| echo "CHROME_ZIP=fluxon-${VERSION}-chrome.zip" >> "$GITHUB_ENV" | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| name: "Fluxon v${{ steps.version.outputs.VERSION }}" | |
| body: | | |
| ## What's New | |
| - **Android Compatibility**: Implementing Android Capture Fix | |
| ## Installation | |
| ### Chrome / Edge | |
| 1. Download and extract `fluxon-${{ steps.version.outputs.VERSION }}-chrome.zip`. | |
| 2. Open `chrome://extensions` and enable **Developer mode**. | |
| 3. Click **Load unpacked** and select the extracted folder. | |
| ### Firefox | |
| 1. Download and extract `fluxon-${{ steps.version.outputs.VERSION }}-firefox.zip`. | |
| 2. Open `about:debugging#/runtime/this-firefox`. | |
| 3. Click **Load Temporary Add-on…** and select `manifest.json` from the extracted folder. | |
| *Note: Firefox temporary add-ons are removed when the browser restarts. For permanent installation, use [Fluxon on AMO](https://addons.mozilla.org/en-US/firefox/addon/fluxon/).* | |
| files: | | |
| ${{ env.CHROME_ZIP }} | |
| ${{ env.FIREFOX_ZIP }} | |
| draft: false | |
| prerelease: false |