mirror of
https://github.com/zen-browser/surfer.git
synced 2025-07-10 02:05:31 +02:00
🐛 Generate branding if output doesn't exist
This commit is contained in:
parent
ed930bc110
commit
ffbe6bbacc
1 changed files with 7 additions and 3 deletions
|
@ -1,12 +1,12 @@
|
||||||
import { sync } from 'glob'
|
import { sync } from 'glob'
|
||||||
import Listr from 'listr'
|
import Listr from 'listr'
|
||||||
import { SRC_DIR } from '../../constants'
|
import { ENGINE_DIR, SRC_DIR } from '../../constants'
|
||||||
|
|
||||||
import * as gitPatch from './gitPatch'
|
import * as gitPatch from './gitPatch'
|
||||||
import * as copyPatch from './copyPatches'
|
import * as copyPatch from './copyPatches'
|
||||||
import * as brandingPatch from './brandingPatch'
|
import * as brandingPatch from './brandingPatch'
|
||||||
import path, { join } from 'path'
|
import path, { join } from 'path'
|
||||||
import { writeFileSync } from 'fs'
|
import { existsSync, writeFileSync } from 'fs'
|
||||||
import { patchCountFile } from '../../middleware/patch-check'
|
import { patchCountFile } from '../../middleware/patch-check'
|
||||||
import { checkHash } from '../../utils'
|
import { checkHash } from '../../utils'
|
||||||
|
|
||||||
|
@ -53,7 +53,11 @@ function importMelonPatches(): ListrTaskGroup {
|
||||||
join(brandingPatch.BRANDING_DIR, name, 'MacOSInstaller.svg')
|
join(brandingPatch.BRANDING_DIR, name, 'MacOSInstaller.svg')
|
||||||
)
|
)
|
||||||
|
|
||||||
if ((await logoCheck) && (await macosInstallerCheck)) {
|
if (
|
||||||
|
(await logoCheck) &&
|
||||||
|
(await macosInstallerCheck) &&
|
||||||
|
existsSync(join(ENGINE_DIR, 'browser/branding', name))
|
||||||
|
) {
|
||||||
return `${name} has already been applied`
|
return `${name} has already been applied`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue