mirror of
https://github.com/zen-browser/surfer.git
synced 2025-07-08 01:10:03 +02:00
🐛 Fix branding names on windows
This commit is contained in:
parent
41bb9e9561
commit
1964e6e17d
1 changed files with 5 additions and 1 deletions
|
@ -29,6 +29,7 @@ import {
|
|||
mkdirpSync,
|
||||
stringTemplate,
|
||||
walkDirectory,
|
||||
windowsPathToUnix,
|
||||
} from '../../utils'
|
||||
import { templateDir } from '../setupProject'
|
||||
import { IMelonPatch } from './command'
|
||||
|
@ -157,7 +158,10 @@ async function setupLocale(
|
|||
// eslint-disable-next-line @typescript-eslint/no-extra-semi
|
||||
;(await walkDirectory(join(templateDir, 'branding.optional')))
|
||||
.map((file) =>
|
||||
file.replace(join(templateDir, 'branding.optional') + '/', '')
|
||||
windowsPathToUnix(file).replace(
|
||||
windowsPathToUnix(join(templateDir, 'branding.optional') + '/'),
|
||||
''
|
||||
)
|
||||
)
|
||||
.map((file) => [
|
||||
readFileSync(join(templateDir, 'branding.optional', file), 'utf-8'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue