Set up uploading source maps to github pages

This commit is contained in:
mini-bomba
2025-08-29 13:15:32 +02:00
parent bf68ce14c4
commit e5bccf95ea
3 changed files with 91 additions and 9 deletions

View File

@@ -42,6 +42,7 @@ class BuildManifest {
apply() {
const distFolder = path.resolve(__dirname, "../dist/");
const distManifestFile = path.resolve(distFolder, "manifest.json");
const [owner, repo_name] = (process.env.GITHUB_REPOSITORY ?? "ajayyy/SponsorBlock").split("/");
// Add missing manifest elements
if (this.options.browser.toLowerCase() === "firefox") {
@@ -66,7 +67,6 @@ 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`;
}