chore: fix lint
This commit is contained in:
12
src/index.ts
12
src/index.ts
@@ -186,11 +186,15 @@ export const makeUniversalApp = async (opts: MakeUniversalOpts): Promise<void> =
|
|||||||
path.resolve(opts.arm64AppPath, 'Contents', 'Resources', 'app'),
|
path.resolve(opts.arm64AppPath, 'Contents', 'Resources', 'app'),
|
||||||
{ compareSize: true, compareContent: true },
|
{ compareSize: true, compareContent: true },
|
||||||
);
|
);
|
||||||
const differences = comparison.diffSet!
|
const differences = comparison.diffSet!.filter((difference) => difference.state !== 'equal');
|
||||||
.filter(difference => difference.state !== "equal")
|
|
||||||
d(`Found ${differences.length} difference(s) between the x64 and arm64 folders`);
|
d(`Found ${differences.length} difference(s) between the x64 and arm64 folders`);
|
||||||
const nonMergedDifferences = differences
|
const nonMergedDifferences = differences.filter(
|
||||||
.filter(difference => !difference.name1 || !knownMergedMachOFiles.has(path.join('Contents', 'Resources', 'app', difference.relativePath, difference.name1)))
|
(difference) =>
|
||||||
|
!difference.name1 ||
|
||||||
|
!knownMergedMachOFiles.has(
|
||||||
|
path.join('Contents', 'Resources', 'app', difference.relativePath, difference.name1),
|
||||||
|
),
|
||||||
|
);
|
||||||
d(`After discluding MachO files merged with lipo ${nonMergedDifferences.length} remain.`);
|
d(`After discluding MachO files merged with lipo ${nonMergedDifferences.length} remain.`);
|
||||||
|
|
||||||
if (nonMergedDifferences.length > 0) {
|
if (nonMergedDifferences.length > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user