mirror of
https://github.com/desktop/desktop
synced 2024-10-02 14:23:59 +00:00
It's not xml any more
This commit is contained in:
parent
ef849b0bde
commit
9e2fe43d3d
|
@ -34,7 +34,7 @@ export async function isApplicationBundle(path: string): Promise<boolean> {
|
|||
// "public.item",
|
||||
// "com.apple.package"
|
||||
// )
|
||||
const { stdout: xml } = await execFileP('mdls', [
|
||||
const { stdout } = await execFileP('mdls', [
|
||||
...['-name', 'kMDItemContentType'],
|
||||
...['-name', 'kMDItemContentTypeTree'],
|
||||
path,
|
||||
|
@ -46,5 +46,5 @@ export async function isApplicationBundle(path: string): Promise<boolean> {
|
|||
'public.executable',
|
||||
]
|
||||
|
||||
return probableBundleIdentifiers.some(id => xml.includes(`"${id}"`))
|
||||
return probableBundleIdentifiers.some(id => stdout.includes(`"${id}"`))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue