fix: force install platform-specific packages in build process
All checks were successful
Release Electron App / release-desktop (push) Successful in 11m2s

This commit is contained in:
2026-03-03 22:21:41 +01:00
parent 008fa499e8
commit 170e44a05a

View File

@@ -101,7 +101,7 @@ const config: ForgeConfig = {
// Install correct platform packages // Install correct platform packages
const pkgsToInstall = Object.keys(nativePkgs).join(' '); const pkgsToInstall = Object.keys(nativePkgs).join(' ');
console.log(`[forge] Installing platform-specific packages for ${targetKey}: ${pkgsToInstall}`); console.log(`[forge] Installing platform-specific packages for ${targetKey}: ${pkgsToInstall}`);
execSync(`npm install ${pkgsToInstall} --omit=dev --no-save`, { execSync(`npm install ${pkgsToInstall} --omit=dev --no-save --force`, {
cwd: buildPath, cwd: buildPath,
stdio: 'inherit', stdio: 'inherit',
}); });