Skip to content

Commit b7e2558

Browse files
committed
fix: update DownloadURL and outfile paths to include domain grouping for better organization
1 parent 5fadf86 commit b7e2558

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

builder/source/build-grouped-worker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type WorkerData = {
1212
export default async function Worker({ FileName, Domains }: { FileName: Set<string>, Domains: Set<string> }) {
1313
const WorkerData: WorkerData = Piscina.workerData as WorkerData
1414

15-
let DownloadURL = new URL(WorkerData.Config.SubscriptionUrl.replaceAll('/tinyShield.user.js', `/grouped/tinyShield-${[...FileName][0]}.user.js`))
15+
let DownloadURL = new URL(WorkerData.Config.SubscriptionUrl.replaceAll('/tinyShield.user.js', `/grouped/${[...FileName][0][0]}/tinyShield-${[...FileName][0]}.user.js`))
1616

1717
const Banner = CreateBanner({
1818
Version: WorkerData.Config.Version!,
@@ -37,7 +37,7 @@ export default async function Worker({ FileName, Domains }: { FileName: Set<stri
3737
entryPoints: [WorkerData.ProjectRoot + '/userscript/source/index.ts'],
3838
bundle: true,
3939
minify: WorkerData.Config.Minify,
40-
outfile: `${WorkerData.ProjectRoot}/dist/grouped/tinyShield-${[...FileName][0]}.user.js`,
40+
outfile: `${WorkerData.ProjectRoot}/dist/grouped/${[...FileName][0][0]}/tinyShield-${[...FileName][0]}.user.js`,
4141
banner: {
4242
js: Banner
4343
},

0 commit comments

Comments
 (0)