mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 21:57:55 +08:00
8599bc0397
Summary: - We now make verbose log files continuously as you use the app - We ship the logs to LogStash via S3 when an exception occurs - We log the DatabaseStore, ActionBridge and Analytics packages - We are now on the latest version of Electron 0.26.0 - We are now on Chrome 42 and io.js 1.4.3 - We should be setup to use ASAR soon. Update atom.sh to reflect that we're now electron oniguruma was unnecessary correctly find log files that haven't been shipped yet Fix a small issue with nodeIsVisible after upgrade to Chrome 42 Delete old logs, better logging from database store, don't ship empty logs Test Plan: Run existing tests Reviewers: evan Reviewed By: evan Differential Revision: https://phab.nylas.com/D1531
47 lines
1.3 KiB
Bash
Executable file
47 lines
1.3 KiB
Bash
Executable file
#!/bin/bash
|
|
# mkdeb version control-file-path deb-file-path
|
|
|
|
set -e
|
|
|
|
SCRIPT=`readlink -f "$0"`
|
|
ROOT=`readlink -f $(dirname $SCRIPT)/..`
|
|
cd $ROOT
|
|
|
|
VERSION="$1"
|
|
ARCH="$2"
|
|
CONTROL_FILE="$3"
|
|
DESKTOP_FILE="$4"
|
|
ICON_FILE="$5"
|
|
DEB_PATH="$6"
|
|
FILE_MODE=755
|
|
|
|
TARGET_ROOT="`mktemp -d`"
|
|
chmod $FILE_MODE "$TARGET_ROOT"
|
|
TARGET="$TARGET_ROOT/nylas-$VERSION-$ARCH"
|
|
|
|
mkdir -m $FILE_MODE -p "$TARGET/usr"
|
|
env INSTALL_PREFIX="$TARGET/usr" script/grunt install
|
|
|
|
mkdir -m $FILE_MODE -p "$TARGET/DEBIAN"
|
|
cp "$CONTROL_FILE" "$TARGET/DEBIAN/control"
|
|
|
|
mkdir -m $FILE_MODE -p "$TARGET/usr/share/applications"
|
|
cp "$DESKTOP_FILE" "$TARGET/usr/share/applications"
|
|
|
|
mkdir -m $FILE_MODE -p "$TARGET/usr/share/pixmaps"
|
|
cp "$ICON_FILE" "$TARGET/usr/share/pixmaps"
|
|
|
|
# Copy generated LICENSE.md to /usr/share/doc/nylas/copyright
|
|
mkdir -m $FILE_MODE -p "$TARGET/usr/share/doc/nylas"
|
|
cp "$TARGET/usr/share/nylas/resources/app/LICENSE.md" "$TARGET/usr/share/doc/nylas/copyright"
|
|
|
|
# Add lintian overrides
|
|
mkdir -m $FILE_MODE -p "$TARGET/usr/share/lintian/overrides"
|
|
cp "$ROOT/resources/linux/debian/lintian-overrides" "$TARGET/usr/share/lintian/overrides/nylas"
|
|
|
|
# Remove executable bit from .node files
|
|
find "$TARGET" -type f -name "*.node" -exec chmod a-x {} \;
|
|
|
|
fakeroot dpkg-deb -b "$TARGET"
|
|
mv "$TARGET_ROOT/nylas-$VERSION-$ARCH.deb" "$DEB_PATH"
|
|
rm -rf "$TARGET_ROOT"
|