diff --git a/.vite/pack-extension.js b/.vite/pack-extension.js index d264e9f..a5cf79d 100644 --- a/.vite/pack-extension.js +++ b/.vite/pack-extension.js @@ -67,13 +67,24 @@ export async function packExtension(settings) { return entry; }) - if (process.env.SITE === 'derpibooru') { - manifest.replaceHostTo([ - 'derpibooru.org', - 'trixiebooru.org' - ]); - manifest.replaceBooruNameWith('Derpibooru'); - manifest.setGeckoIdentifier('derpibooru-tagging-assistant@thecore.city'); + switch (process.env.SITE) { + case 'derpibooru': + manifest.replaceHostTo([ + 'derpibooru.org', + 'trixiebooru.org' + ]); + manifest.replaceBooruNameWith('Derpibooru'); + manifest.setGeckoIdentifier('derpibooru-tagging-assistant@thecore.city'); + break; + + case 'tantabus': + manifest.replaceHostTo('tantabus.ai'); + manifest.replaceBooruNameWith('Tantabus'); + manifest.setGeckoIdentifier('tantabus-tagging-assistant@thecore.city'); + break; + + default: + console.warn('No replacement set up for site: ' + process.env.SITE); } manifest.passVersionFromPackage(path.resolve(settings.rootDir, 'package.json')); diff --git a/package.json b/package.json index 9263983..c8d50df 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "scripts": { "build": "npm run build:popup && npm run build:extension", "build:derpibooru": "cross-env SITE=derpibooru npm run build", + "build:tantabus": "cross-env SITE=tantabus npm run build", "build:popup": "vite build", "build:extension": "node build-extension.js", "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", diff --git a/src/routes/about/+page.svelte b/src/routes/about/+page.svelte index 525d24f..b56fcfd 100644 --- a/src/routes/about/+page.svelte +++ b/src/routes/about/+page.svelte @@ -11,6 +11,10 @@ if (__CURRENT_SITE__ === 'derpibooru') { currentSiteUrl = 'https://derpibooru.org'; } + + if (__CURRENT_SITE__ === 'tantabus') { + currentSiteUrl = 'https://tantabus.ai'; + }