Revert "feat: reenable asar support" (#272935)

Revert "feat: reenable asar support (#272552)"

This reverts commit ff891375f4.
This commit is contained in:
João Moreno
2025-10-23 17:50:48 +02:00
committed by GitHub
parent 8b2b50543a
commit 5e4cf386d9
14 changed files with 53 additions and 124 deletions

View File

@@ -47,7 +47,8 @@ export async function getDependencies(packageType: 'deb' | 'rpm', buildDir: stri
}
// Get the files for which we want to find dependencies.
const nativeModulesPath = path.join(buildDir, 'resources', 'app', 'node_modules.asar.unpacked');
const canAsar = false; // TODO@esm ASAR disabled in ESM
const nativeModulesPath = path.join(buildDir, 'resources', 'app', canAsar ? 'node_modules.asar.unpacked' : 'node_modules');
const findResult = spawnSync('find', [nativeModulesPath, '-name', '*.node']);
if (findResult.status) {
console.error('Error finding files:');