#!/usr/bin/env bash

set -e

source="build/Headset-linux-x64"
ignoring="(^Procfile$|^/gh-pages$|^/sig$|^/bin$)"

electron-packager . \
  --executable-name headset \
  --ignore $ignoring \
  --prune true \
  --out build/ \
  --overwrite \
  --asar \
  --platform=linux \
  --arch=x64

echo -e '\n\033[1mFixing various file permissions: \033[01;0m'
find $source -type f -exec chmod 0644 {} +
chmod 0755 $source/headset
chmod 0755 $source/resources
chmod 0755 $source/locales
echo -e 'Done'

#!/usr/bin/env bash

set -e

source="build/Headset-linux-x64"
ignoring="(^Procfile$|^/gh-pages$|^/sig$|^/bin$)"

electron-packager . \
  --executable-name headset \
  --ignore $ignoring \
  --prune true \
  --out build/ \
  --overwrite \
  --asar \
  --platform=linux \
  --arch=x64

echo -e '\n\033[1mFixing various file permissions: \033[01;0m'
find $source -type f -exec chmod 0644 {} +
chmod 0755 $source/headset
chmod 0755 $source/resources
chmod 0755 $source/locales
chmod 0755 bin/debian_scripts/postinst
chmod 0755 bin/debian_scripts/postrm
echo -e 'Done'

Fix Linux control files permission on Travis
Fix Linux control files permission on Travis
