Skip to content

Commit 71f9174

Browse files
committed
trying random things
1 parent 258cdfa commit 71f9174

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

packages/compass-e2e-tests/installers/mac-dmg.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,19 @@ export async function installMacDMG(
1414

1515
await execute('hdiutil', ['attach', filepath]);
1616
try {
17-
await execute('cp', [
18-
'-Rp',
19-
`/Volumes/${appName}/${appName}.app`,
20-
'/Applications',
21-
]);
17+
await execute(
18+
'cp',
19+
['-Rp', `/Volumes/${appName}/${appName}.app`, '/Applications'],
20+
{ shell: true }
21+
);
2222
} finally {
2323
await execute('hdiutil', ['detach', `/Volumes/${appName}`]);
2424
}
2525

26+
if (!existsSync(`/Applications/${appName}.app/Contents/MacOS/${appName}`)) {
27+
throw new Error('app not found');
28+
}
29+
2630
return Promise.resolve({
2731
appName,
2832
appPath: `/Applications/${appName}.app`,

0 commit comments

Comments
 (0)