Skip to content

Corrected iZOOlogic email #843

Corrected iZOOlogic email

Corrected iZOOlogic email #843

Workflow file for this run

name: 'Compile for Firefox'
on:
push:
branches: [ 'main', '2.0.0' ]
pull_request:
branches: [ 'main', '2.0.0' ]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v6
- name: 'Extract Version'
id: get_version
run: |
VERSION=$(jq -r '.version' src/main/manifest.json)
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: 'Remove update_url from manifest.json'
run: |
jq 'del(.update_url)' src/main/manifest.json > src/main/manifest_temp.json
mv src/main/manifest_temp.json src/main/manifest.json
- name: 'Remove incognito from manifest.json'
run: |
jq 'del(.incognito)' src/main/manifest.json > src/main/manifest_temp.json
mv src/main/manifest_temp.json src/main/manifest.json
- name: 'Remove storage from manifest.json'
run: |
jq 'del(.storage)' src/main/manifest.json > src/main/manifest_temp.json
mv src/main/manifest_temp.json src/main/manifest.json
- name: 'Add menus permission'
run: |
jq '.permissions += ["menus"]' src/main/manifest.json > src/main/manifest_temp.json
mv src/main/manifest_temp.json src/main/manifest.json
- name: 'Replace service_worker with page'
run: |
jq '.background = {"page": "background.html"}' src/main/manifest.json > src/main/manifest_temp.json
mv src/main/manifest_temp.json src/main/manifest.json
- name: 'Add browser_specific_settings for Firefox'
run: |
jq '. += {"browser_specific_settings":{"gecko":{"id":"osprey@foulest.net","strict_min_version":"140.0","data_collection_permissions":{"required":["browsingActivity"]}},"gecko_android":{"strict_min_version":"142.0"}}}' src/main/manifest.json > src/main/manifest_temp.json
mv src/main/manifest_temp.json src/main/manifest.json
- name: 'Upload Artifact'
uses: actions/upload-artifact@v7
with:
name: Osprey-${{ env.VERSION }}-firefox
path: src/main