diff --git a/resources/linux/atom.policy b/resources/linux/atom.policy new file mode 100644 index 000000000..0dd19d216 --- /dev/null +++ b/resources/linux/atom.policy @@ -0,0 +1,18 @@ + + + + Atom + + Admin privileges required + Please enter your password to save this file + /bin/dd + true + + auth_admin_keep + auth_admin_keep + auth_admin_keep + + + diff --git a/script/lib/create-debian-package.js b/script/lib/create-debian-package.js index 1aa179b70..cf5aaecf8 100644 --- a/script/lib/create-debian-package.js +++ b/script/lib/create-debian-package.js @@ -113,6 +113,12 @@ module.exports = function (packagedAppPath) { path.join(debianPackageLintianOverridesDirPath, atomExecutableName) ) + console.log(`Copying polkit configuration into "${debianPackageShareDirPath}"`) + fs.copySync( + path.join(CONFIG.repositoryRootPath, 'resources', 'linux', 'atom.policy'), + path.join(debianPackageShareDirPath, 'polkit-1', 'actions', 'atom.policy') + ) + console.log(`Generating .deb file from ${debianPackageDirPath}`) spawnSync('fakeroot', ['dpkg-deb', '-b', debianPackageDirPath], {stdio: 'inherit'})