Overwrite chrome/app/theme/chromium with brave/app/theme/brave
With this, app icon of stable/development version ues ours. chrome/app/theme path is excluded from updatePatches.
This commit is contained in:
parent
4058a153c5
commit
46c51042b6
@ -16,8 +16,8 @@ const updatePatches = (options) => {
|
||||
let modifiedDiff = util.run('git', modifiedDiffArgs, runOptions)
|
||||
let moddedFileList = modifiedDiff.stdout.toString()
|
||||
.split('\n')
|
||||
.filter(s => s.length > 0 && !s.endsWith('.xtb') && !s.endsWith('.png') &&
|
||||
!s.endsWith('.grd') && !s.endsWith('.grdp') &&
|
||||
.filter(s => s.length > 0 && !s.startsWith(path.join('chrome', 'app', 'theme')) &&
|
||||
!s.endsWith('.xtb') && !s.endsWith('.grd') && !s.endsWith('.grdp') &&
|
||||
!s.includes('google_update_idl'))
|
||||
|
||||
let n = moddedFileList.length
|
||||
|
@ -79,6 +79,7 @@ const util = {
|
||||
fs.copySync(path.join(braveAppDir, 'theme', 'default_100_percent', 'brave'), path.join(chromeAppDir, 'theme', 'default_100_percent', 'brave'))
|
||||
fs.copySync(path.join(braveAppDir, 'theme', 'default_200_percent', 'brave'), path.join(chromeAppDir, 'theme', 'default_200_percent', 'brave'))
|
||||
// By overwriting, we don't need to modify some grd files.
|
||||
fs.copySync(path.join(braveAppDir, 'theme', 'brave'), path.join(chromeAppDir, 'theme', 'chromium'))
|
||||
fs.copySync(path.join(braveAppDir, 'theme', 'default_100_percent', 'brave'), path.join(chromeAppDir, 'theme', 'default_100_percent', 'chromium'))
|
||||
fs.copySync(path.join(braveAppDir, 'theme', 'default_200_percent', 'brave'), path.join(chromeAppDir, 'theme', 'default_200_percent', 'chromium'))
|
||||
fs.copySync(path.join(braveAppDir, 'vector_icons', 'brave'), path.join(chromeAppDir, 'vector_icons', 'brave'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user