diff --git a/deploy/auth-mozilla.js b/deploy/auth-mozilla.js deleted file mode 100644 index 07c45cc..0000000 --- a/deploy/auth-mozilla.js +++ /dev/null @@ -1,15 +0,0 @@ -var jwt = require('jsonwebtoken'); - -var issuedAt = Math.floor(Date.now() / 1000); -var payload = { - iss: process.env.iss, - jti: Math.random().toString(), - iat: issuedAt, - exp: issuedAt + 60, -}; - -var token = jwt.sign(payload, process.env.secret, { - algorithm: 'HS256', // HMAC-SHA256 signing algorithm -}); - -console.log(token); \ No newline at end of file diff --git a/deploy/deploy-mozilla.sh b/deploy/deploy-mozilla.sh deleted file mode 100644 index a721a06..0000000 --- a/deploy/deploy-mozilla.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env bash - -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" -artifactList=($DIR/../web-ext-artifacts/*.zip) - -token=$(node $DIR/auth-mozilla.js) -curl "https://addons.mozilla.org/api/v4/addons/" \ - -g -XPOST -F "upload=@$artifactList" \ - -H "Authorization: JWT $token" diff --git a/manifest.json b/manifest.json index 8c34951..e74ec1e 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 2, "short_name": "Media Keys", "name": "Media Keys", - "version": "2.2.4", + "version": "2.2.5", "author": "Carlin Scott", "homepage_url": "https://github.com/carlin-q-scott/browser-media-players", "description": "Lets you control many popular website media players using media key events", diff --git a/package.json b/package.json index e33b185..51815c7 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,8 @@ "spotify": "web-ext run --url https://open.spotify.com --browser-console", "debug": "web-ext run --browser-console", "build": "web-ext build --overwrite-dest --ignore-files tests deploy docs data/pageMods.json icon425.png package* jsconfig.json", + "deploy": "web-ext sign --channel=listed --ignore-files tests deploy docs data/pageMods.json icon425.png package* jsconfig.json", + "deploy-unlisted" : "web-ext sign --channel=unlisted --ignore-files tests deploy docs data/pageMods.json icon425.png package* jsconfig.json", "help": "web-ext --help" } }