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
+1
View File
@@ -1,6 +1,7 @@
appId: sh.paseo.desktop
productName: Paseo
executableName: Paseo
afterPack: ./scripts/after-pack.js
directories:
output: release
files:
+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");
}
};
-4
View File
@@ -21,10 +21,6 @@ import {
import { registerOpenerHandlers } from "./features/opener.js";
import { setupApplicationMenu } from "./features/menu.js";
if (process.platform === "linux") {
app.commandLine.appendSwitch("no-sandbox");
}
const DEV_SERVER_URL = process.env.EXPO_DEV_URL ?? "http://localhost:8081";
const APP_SCHEME = "paseo";
app.setName("Paseo");