desktop: remove chrome-sandbox from linux builds

This commit is contained in:
Mohamed Boudra
2026-03-22 01:10:05 +07:00
parent d102a8fd64
commit 207bdd1fae
3 changed files with 13 additions and 4 deletions
+12
View File
@@ -0,0 +1,12 @@
const fs = require("fs");
const path = require("path");
exports.default = async function afterPack(context) {
if (context.electronPlatformName !== "linux") return;
const chromeSandbox = path.join(context.appOutDir, "chrome-sandbox");
if (fs.existsSync(chromeSandbox)) {
fs.unlinkSync(chromeSandbox);
console.log("Removed chrome-sandbox from Linux build");
}
};