Skip to content

Commit

Permalink
Fix RPM package permissions (#3136)
Browse files Browse the repository at this point in the history
  • Loading branch information
haslinghuis committed Dec 12, 2022
1 parent 02c2ac0 commit bf7ec2b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,14 @@ function release_rpm(arch, appDirectory, done) {
src: '*',
dest: `${LINUX_INSTALL_DIR}/${metadata.name}`,
}],
postInstallScript: [`xdg-desktop-menu install ${LINUX_INSTALL_DIR}/${metadata.name}/${metadata.name}.desktop`],
postInstallScript: [
`chown root:root ${LINUX_INSTALL_DIR}`,
`chown -R root:root ${LINUX_INSTALL_DIR}/${metadata.name}`,
`xdg-desktop-menu install ${LINUX_INSTALL_DIR}/${metadata.name}/${metadata.name}.desktop`,
`chmod +xr ${LINUX_INSTALL_DIR}/${metadata.name}/chrome_crashpad_handler`,
`chmod +xr ${LINUX_INSTALL_DIR}/${metadata.name}/${metadata.name}`,
`chmod -R +Xr ${LINUX_INSTALL_DIR}/${metadata.name}/`,
],
preUninstallScript: [`xdg-desktop-menu uninstall ${metadata.name}.desktop`],
tempDir: path.join(RELEASE_DIR, `tmp-rpm-build-${arch}`),
keepTemp: false,
Expand Down

0 comments on commit bf7ec2b

Please sign in to comment.