build(linux): Ensure that target files are not group writable

Should fix #710. Will move all 0775 => 0755 and 0664 => 0644
This commit is contained in:
Ben Gotow 2016-01-13 16:09:53 -08:00
parent 4f5aea03dd
commit c8dcab5e6a
3 changed files with 6 additions and 1 deletions

View file

@ -2,6 +2,8 @@ nylas: arch-dependent-file-in-usr-share
nylas: changelog-file-missing-in-native-package
nylas: copyright-file-contains-full-apache-2-license
nylas: copyright-should-refer-to-common-license-file-for-apache-2
nylas: copyright-should-refer-to-common-license-file-for-lgpl
nylas: embedded-library
nylas: package-installs-python-bytecode
nylas: unstripped-binary-or-object
nylas: extra-license-file

View file

@ -7,5 +7,5 @@ Icon=<%= iconName %>
Type=Application
StartupNotify=true
StartupWMClass=Nylas N1
Categories=GNOME;GTK;Utility;EmailClient;Development;
Categories=GNOME;GTK;Email;Utility;Development;
MimeType=text/plain;x-scheme-handler/mailto;x-scheme-handler/nylas;

View file

@ -50,6 +50,9 @@ cp "$TARGET/usr/share/nylas/resources/LICENSE.md" "$TARGET/usr/share/doc/nylas/c
mkdir -m $FILE_MODE -p "$TARGET/usr/share/lintian/overrides"
cp "$ROOT/build/resources/linux/debian/lintian-overrides" "$TARGET/usr/share/lintian/overrides/nylas"
# Remove group write from all files
chmod -R g-w "$TARGET";
# Remove executable bit from .node files
find "$TARGET" -type f -name "*.node" -exec chmod a-x {} \;