From f0d020adf931f477d290589417054db7f3ee4d1a Mon Sep 17 00:00:00 2001 From: csett86 Date: Sun, 5 Dec 2021 09:09:20 +0100 Subject: [PATCH] chore: remove unnecessary debian 10 appimage fix (#684) Debian 11 (bullseye) changed the default for kernel.unprivileged_userns_clone to 1, thus this workaround is no longer required. This at the same time fixes the default command line entry for the deb package. Closes: #628 --- linux-sandbox-fix.js | 23 ----------------------- package.json | 1 - 2 files changed, 24 deletions(-) delete mode 100644 linux-sandbox-fix.js diff --git a/linux-sandbox-fix.js b/linux-sandbox-fix.js deleted file mode 100644 index 53c2506..0000000 --- a/linux-sandbox-fix.js +++ /dev/null @@ -1,23 +0,0 @@ -const fs = require('fs').promises; -const path = require('path'); - -/** - * Workaround for https://github.com/electron-userland/electron-builder/issues/5371 - * - * use as "afterPack": "./linux-sandbox-fix.js" in build section of package.json - */ -async function afterPack({ appOutDir, electronPlatformName, packager }) { - if (electronPlatformName !== 'linux') { - return; - } - - const appName = packager.appInfo.productFilename; - const script = `#!/bin/bash\n"\${BASH_SOURCE%/*}"/${appName}.bin --no-sandbox "$@"`; - const scriptPath = path.join(appOutDir, appName); - - await fs.rename(scriptPath, `${scriptPath}.bin`); - await fs.writeFile(scriptPath, script); - await fs.chmod(scriptPath, 0o755); -} - -module.exports = afterPack; diff --git a/package.json b/package.json index a1cf942..87216db 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,6 @@ "appId": "org.jitsi.jitsi-meet", "productName": "Jitsi Meet", "generateUpdatesFilesForAllChannels": true, - "afterPack": "./linux-sandbox-fix.js", "afterSign": "./notarize.js", "files": [ "build",