Skip to content

Commit

Permalink
fix: use realpath when scanning app files
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed Nov 19, 2020
1 parent 621083f commit 107823f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const makeUniversalApp = async (opts: MakeUniversalOpts): Promise<void> =
const uniqueToX64: string[] = [];
const uniqueToArm64: string[] = [];
const x64Files = await getAllAppFiles(await fs.realpath(tmpApp));
const arm64Files = await getAllAppFiles(opts.arm64AppPath);
const arm64Files = await getAllAppFiles(await fs.realpath(opts.arm64AppPath));

for (const file of dupedFiles(x64Files)) {
if (!arm64Files.some((f) => f.relativePath === file.relativePath))
Expand Down Expand Up @@ -252,6 +252,7 @@ export const makeUniversalApp = async (opts: MakeUniversalOpts): Promise<void> =
}

d('moving final universal app to target destination');
await fs.mkdirp(path.dirname(opts.outAppPath));
await spawn('mv', [tmpApp, opts.outAppPath]);
} catch (err) {
throw err;
Expand Down

0 comments on commit 107823f

Please sign in to comment.