mirror of
https://github.com/zen-browser/surfer.git
synced 2025-07-08 17:30:02 +02:00
🐛 Fix patch doesn't exist error
This commit is contained in:
parent
a870a6cd5b
commit
c3667b279d
1 changed files with 4 additions and 1 deletions
|
@ -5,6 +5,7 @@ import { SRC_DIR } from '../../constants'
|
|||
import * as gitPatch from './gitPatch'
|
||||
import * as copyPatch from './copyPatches'
|
||||
import * as brandingPatch from './brandingPatch'
|
||||
import { join } from 'path'
|
||||
|
||||
type ListrTaskGroup = {
|
||||
title: string
|
||||
|
@ -62,7 +63,9 @@ function importFolders(): ListrTaskGroup {
|
|||
function importGitPatch(): ListrTaskGroup {
|
||||
return patchMethod(
|
||||
'git',
|
||||
sync('**/*.patch', { nodir: true, cwd: SRC_DIR }),
|
||||
sync('**/*.patch', { nodir: true, cwd: SRC_DIR }).map((path) =>
|
||||
join(SRC_DIR, path)
|
||||
),
|
||||
(path) => path,
|
||||
async (path) => await gitPatch.apply(path)
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue