mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-06 11:37:02 +03:00
deploy firefox beta releases to github pages, enable updates
This commit is contained in:
@@ -23,10 +23,13 @@ const schema = {
|
||||
pretty: {
|
||||
type: 'boolean'
|
||||
},
|
||||
steam: {
|
||||
stream: {
|
||||
type: 'string'
|
||||
},
|
||||
autoupdate: {
|
||||
type: 'boolean',
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
class BuildManifest {
|
||||
@@ -62,6 +65,11 @@ class BuildManifest {
|
||||
}
|
||||
}
|
||||
|
||||
if (this.options.autoupdate === true && this.options.browser.toLowerCase() === "firefox") {
|
||||
const [owner, repo_name] = process.env.GITHUB_REPOSITORY.split("/");
|
||||
manifest.browser_specific_settings.gecko.update_url = `https://${owner.toLowerCase()}.github.io/${repo_name}/updates.json`;
|
||||
}
|
||||
|
||||
let result = JSON.stringify(manifest);
|
||||
if (this.options.pretty) result = JSON.stringify(manifest, null, 2);
|
||||
|
||||
@@ -86,4 +94,4 @@ function mergeObjects(object1, object2) {
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = BuildManifest;
|
||||
module.exports = BuildManifest;
|
||||
|
||||
Reference in New Issue
Block a user