From 7a6071be7263d8944ccbdbb1f8d66e0da912374f Mon Sep 17 00:00:00 2001 From: Rob Davis Date: Fri, 3 Feb 2023 15:43:20 +1000 Subject: [PATCH] Changing chrome build to be zip --- .github/workflows/release.yml | 26 +++++++------------ readme.md | 6 +++-- targets/chromium/dev/manifest.json | 20 -------------- targets/chromium/dev/update-chromium-dev.json | 12 --------- 4 files changed, 14 insertions(+), 50 deletions(-) delete mode 100644 targets/chromium/dev/manifest.json delete mode 100644 targets/chromium/dev/update-chromium-dev.json diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9ce4620..419d905 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,7 +20,10 @@ jobs: - browser: firefox extension: xpi - browser: chromium - extension: crx + extension: zip + exclude: + - browser: chromium + build: dev permissions: contents: write @@ -57,27 +60,18 @@ jobs: run: | cp ./targets/${{ matrix.browser }}/${{ matrix.build }}/manifest.json ./public - - name: Pack XPI - if: matrix.browser == 'firefox' - uses: kewisch/action-web-ext@v1 + - name: Pack Extension + uses: thedoctor0/zip-release@0.7.1 with: - cmd: build - source: public + type: 'zip' filename: tabby-${{ matrix.browser }}-${{ matrix.build }}.${{ matrix.extension }} - - - name: Install CRX Builder - if: matrix.browser == 'chromium' - run: npm install crx -g - - - name: Build CRX - if: matrix.browser == 'chromium' - run: crx pack public -o tabby-${{ matrix.browser }}-${{ matrix.build }}.${{ matrix.extension }} - + directory: public + - name: "Create Release" uses: softprops/action-gh-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: files: | - tabby-${{ matrix.browser }}-${{ matrix.build }}.${{ matrix.extension }} + public/tabby-${{ matrix.browser }}-${{ matrix.build }}.${{ matrix.extension }} targets/${{ matrix.browser }}/${{ matrix.build }}/update-${{ matrix.browser }}-${{ matrix.build }}.json diff --git a/readme.md b/readme.md index b6c6dde..aeec57a 100644 --- a/readme.md +++ b/readme.md @@ -15,10 +15,12 @@ This is just another FireFox new tab extension because I couldn't find one that There are two release channels you can install this extension from which are described below. ### Develop -This extension can be installed directly in firefox (and will have auto updates) from the release page in this repo by downloading [tabby-firefox-dev.xpi](https://github.com/RobbieLD/tabby/releases/latest/download/tabby-firfox-dev.xpi). However as this is the dev release it's not signed by Mozilla so it can only be installed in the [Developer Release](https://www.mozilla.org/en-US/firefox/developer/) or other experimental releases once you've disabled the signing check by going to `about:config`, change `xpinstall.signatures.required` to `false`. +__FireFox__: This extension can be installed directly in firefox (and will have auto updates) from the release page in this repo by downloading [tabby-firefox-dev.xpi](https://github.com/RobbieLD/tabby/releases/latest/download/tabby-firfox-dev.xpi). However as this is the dev release it's not signed by Mozilla so it can only be installed in the [Developer Release](https://www.mozilla.org/en-US/firefox/developer/) or other experimental releases once you've disabled the signing check by going to `about:config`, change `xpinstall.signatures.required` to `false`. + +__Chrome__: Chrome won't let you install unsigned crx files so you'll need to download the [latest release zip file](https://github.com/RobbieLD/tabby/releases/latest/download/tabby-chromium-dev.zip) and load it as an unpacked extension once you've extracted it an enabled developer mode in chrome. Unfortunately that won't have auto updates. ### Stable -Stable releases are available from the FireFox [add on page](https://addons.mozilla.org/en-US/firefox/addon/tabby/) +Stable releases are available from the [FireFox add-on page](https://addons.mozilla.org/en-US/firefox/addon/tabby/) and soon the Chrome web store page. ## Usage To use the extension you'll need a free unsplash api key which can be obtained from the [Unsplash Dev Portal](https://unsplash.com/developers). You will be prompted for this when you first open the extension. diff --git a/targets/chromium/dev/manifest.json b/targets/chromium/dev/manifest.json deleted file mode 100644 index 1075d7c..0000000 --- a/targets/chromium/dev/manifest.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "manifest_version": 3, - "name": "Tabby", - "short_name": "Tabby", - "version": "__VERSION__", - "description": "A simple new tab extensions", - "browser_specific_settings": { - "gecko": { - "id": "rob@robdavis.dev", - "update_url": "https://github.com/RobbieLD/tabby/releases/latest/download/update-chromium-dev.json" - } - }, - "chrome_url_overrides": { - "newtab": "index.html" - }, - "icons": { - "48": "images/favicon.png" - }, - "permissions": ["storage"] -} diff --git a/targets/chromium/dev/update-chromium-dev.json b/targets/chromium/dev/update-chromium-dev.json deleted file mode 100644 index 281f717..0000000 --- a/targets/chromium/dev/update-chromium-dev.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "addons": { - "rob@robdavis.dev": { - "updates": [ - { - "version": "__VERSION__", - "update_link": "https://github.com/RobbieLD/tabby/releases/latest/download/tabby-chromium-dev.xpi" - } - ] - } - } -}