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
This commit is contained in:
csett86 2021-12-05 09:09:20 +01:00 committed by GitHub
parent 31ed1316f6
commit f0d020adf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 24 deletions

View File

@ -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;

View File

@ -21,7 +21,6 @@
"appId": "org.jitsi.jitsi-meet",
"productName": "Jitsi Meet",
"generateUpdatesFilesForAllChannels": true,
"afterPack": "./linux-sandbox-fix.js",
"afterSign": "./notarize.js",
"files": [
"build",