mirror of
https://github.com/zen-browser/surfer.git
synced 2025-07-08 01:10:03 +02:00
Refactor applyPatches function to conditionally import branding patches
This commit is contained in:
parent
e0583c2e94
commit
05571adb8b
2 changed files with 6 additions and 4 deletions
|
@ -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": {
|
||||
|
|
|
@ -112,10 +112,12 @@ async function importInternalPatch(): Promise<Task> {
|
|||
}
|
||||
|
||||
export async function applyPatches(): Promise<void> {
|
||||
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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue