frontend: source: Try more specific dirs first
This commit is contained in:
parent
ab2c1e72ba
commit
9fd0e1a146
1 changed files with 7 additions and 4 deletions
|
@ -188,18 +188,21 @@ export async function wrapSystemSrc(
|
|||
// Directory
|
||||
|
||||
let tryDirs = [
|
||||
src,
|
||||
`${src}/${device}`,
|
||||
...(buildId != null && [
|
||||
`${src}/${buildId}`,
|
||||
`${src}/${device}/${buildId}`,
|
||||
`${src}/${buildId}/${device}`,
|
||||
] || []),
|
||||
`${src}/${device}`,
|
||||
src,
|
||||
]
|
||||
|
||||
// Also try to find extracted factory images: device-buildId
|
||||
// Also try to find extracted factory images first: device-buildId
|
||||
if (buildId != null) {
|
||||
tryDirs.push(...tryDirs.map(p => `${p}/${device}-${buildId}`))
|
||||
tryDirs = [
|
||||
...tryDirs.map(p => `${p}/${device}-${buildId}`),
|
||||
...tryDirs,
|
||||
]
|
||||
}
|
||||
|
||||
for (let dir of tryDirs) {
|
||||
|
|
Loading…
Reference in a new issue