mirror of
https://github.com/zen-browser/surfer.git
synced 2025-07-08 17:30:02 +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",
|
"name": "@zen-browser/surfer",
|
||||||
"version": "1.5.1",
|
"version": "1.5.2",
|
||||||
"description": "Simplifying building firefox forks!",
|
"description": "Simplifying building firefox forks!",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|
|
@ -112,10 +112,12 @@ async function importInternalPatch(): Promise<Task> {
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function applyPatches(): Promise<void> {
|
export async function applyPatches(): Promise<void> {
|
||||||
await new TaskList([
|
const canDoBrandingPatch = process.env.SURFER_NO_BRANDING_PATCH !== 'true'
|
||||||
|
let tasks = [
|
||||||
await importInternalPatch(),
|
await importInternalPatch(),
|
||||||
importMelonPatches(),
|
canDoBrandingPatch ? importMelonPatches() : undefined,
|
||||||
await importFolders(),
|
await importFolders(),
|
||||||
await importGitPatch(),
|
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