Added beta build to CI

This commit is contained in:
Ajay Ramachandran
2020-02-20 11:39:06 -05:00
parent 8be3cb157a
commit 514a8b62d6
5 changed files with 31 additions and 1 deletions

View File

@@ -32,3 +32,17 @@ jobs:
name: FirefoxExtension
path: dist
# Create Beta artifacts (Builds with the name changed to beta)
- name: Create Chrome Beta artifacts
run: npm run build:chrome -- --env.stream=beta
- uses: actions/upload-artifact@v1
with:
name: ChromeExtensionBeta
path: dist
- name: Create Firefox Beta artifacts
run: npm run build:firefox -- --env.stream=beta
- uses: actions/upload-artifact@v1
with:
name: FirefoxExtensionBeta
path: dist

View File

@@ -0,0 +1,4 @@
{
"name": "__MSG_betaName__"
}

View File

@@ -428,5 +428,8 @@
},
"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"
}
}

View File

@@ -42,7 +42,8 @@ module.exports = env => ({
),
new BuildManifest({
browser: env.browser,
pretty: env.mode === "production"
pretty: env.mode === "production",
stream: env.stream
})
]
});

View File

@@ -8,6 +8,7 @@ const fs = require('fs');
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");
// schema for options object
const schema = {
@@ -18,6 +19,9 @@ const schema = {
},
pretty: {
type: 'boolean'
},
steam: {
type: 'string'
}
}
};
@@ -40,6 +44,10 @@ class BuildManifest {
mergeObjects(manifest, chromeManifestExtra);
}
if (this.options.stream === "beta") {
mergeObjects(manifest, betaManifestExtra);
}
let result = JSON.stringify(manifest);
if (this.options.pretty) result = JSON.stringify(manifest, null, 2);