From 716861da189d7084d01b6311e316a89ef7a19f2a Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Sun, 23 Feb 2020 20:49:17 -0500 Subject: [PATCH] Fixed beta builds --- manifest/beta-manifest-extra.json | 2 +- manifest/firefox-beta-manifest-extra.json | 8 ++++++++ public/_locales/en/messages.json | 3 --- webpack/webpack.manifest.js | 5 +++++ 4 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 manifest/firefox-beta-manifest-extra.json diff --git a/manifest/beta-manifest-extra.json b/manifest/beta-manifest-extra.json index ad44ea07..023e2efe 100644 --- a/manifest/beta-manifest-extra.json +++ b/manifest/beta-manifest-extra.json @@ -1,4 +1,4 @@ { - "name": "__MSG_betaName__" + "name": "BETA - SponsorBlock" } \ No newline at end of file diff --git a/manifest/firefox-beta-manifest-extra.json b/manifest/firefox-beta-manifest-extra.json new file mode 100644 index 00000000..0ce98c0c --- /dev/null +++ b/manifest/firefox-beta-manifest-extra.json @@ -0,0 +1,8 @@ +{ + "browser_specific_settings": { + "gecko": { + "id": "sponsorBlockerBETA@ajay.app" + } + } +} + \ No newline at end of file diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index 6a337fb8..48b25279 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -423,9 +423,6 @@ "whatUnlistedCheck": { "message": "This setting will significantly slow down SponsorBlock. Sponsor lookups require sending the video ID to the server. If you are concerned about unlisted video IDs being sent over the internet, enable this option." }, - "betaName": { - "message": "BETA - SponsorBlock" - }, "mobileUpdateInfo": { "message": "m.youtube.com is now supported" } diff --git a/webpack/webpack.manifest.js b/webpack/webpack.manifest.js index 7f8e1f3b..63c82cdf 100644 --- a/webpack/webpack.manifest.js +++ b/webpack/webpack.manifest.js @@ -9,6 +9,7 @@ const manifest = require("../manifest/manifest.json"); const firefoxManifestExtra = require("../manifest/firefox-manifest-extra.json"); const chromeManifestExtra = require("../manifest/chrome-manifest-extra.json"); const betaManifestExtra = require("../manifest/beta-manifest-extra.json"); +const firefoxBetaManifestExtra = require("../manifest/firefox-beta-manifest-extra.json"); // schema for options object const schema = { @@ -46,6 +47,10 @@ class BuildManifest { if (this.options.stream === "beta") { mergeObjects(manifest, betaManifestExtra); + + if (this.options.browser.toLowerCase() === "firefox") { + mergeObjects(manifest, firefoxBetaManifestExtra); + } } let result = JSON.stringify(manifest);