We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 258cdfa commit 71f9174Copy full SHA for 71f9174
packages/compass-e2e-tests/installers/mac-dmg.ts
@@ -14,15 +14,19 @@ export async function installMacDMG(
14
15
await execute('hdiutil', ['attach', filepath]);
16
try {
17
- await execute('cp', [
18
- '-Rp',
19
- `/Volumes/${appName}/${appName}.app`,
20
- '/Applications',
21
- ]);
+ await execute(
+ 'cp',
+ ['-Rp', `/Volumes/${appName}/${appName}.app`, '/Applications'],
+ { shell: true }
+ );
22
} finally {
23
await execute('hdiutil', ['detach', `/Volumes/${appName}`]);
24
}
25
26
+ if (!existsSync(`/Applications/${appName}.app/Contents/MacOS/${appName}`)) {
27
+ throw new Error('app not found');
28
+ }
29
+
30
return Promise.resolve({
31
appName,
32
appPath: `/Applications/${appName}.app`,
0 commit comments