diff --git a/package.json b/package.json index 11140bf..6a63708 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@zen-browser/surfer", - "version": "1.5.1", + "version": "1.5.2", "description": "Simplifying building firefox forks!", "main": "index.js", "bin": { diff --git a/src/commands/patches/command.ts b/src/commands/patches/command.ts index 9c03eb7..b4a92ac 100644 --- a/src/commands/patches/command.ts +++ b/src/commands/patches/command.ts @@ -112,10 +112,12 @@ async function importInternalPatch(): Promise { } export async function applyPatches(): Promise { - await new TaskList([ + const canDoBrandingPatch = process.env.SURFER_NO_BRANDING_PATCH !== 'true' + let tasks = [ await importInternalPatch(), - importMelonPatches(), + canDoBrandingPatch ? importMelonPatches() : undefined, await importFolders(), await importGitPatch(), - ]).run() + ].filter((task) => task !== undefined) as Task[] + await new TaskList(tasks).run() }