mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-08 17:17:56 +08:00
fix(startup): remove beta references
This commit is contained in:
parent
385931ca9e
commit
cc328e8906
1 changed files with 2 additions and 17 deletions
|
@ -11,12 +11,6 @@ else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(basename $0)" == 'nylas-beta' ]; then
|
|
||||||
BETA_VERSION=true
|
|
||||||
else
|
|
||||||
BETA_VERSION=
|
|
||||||
fi
|
|
||||||
|
|
||||||
while getopts ":wtfvh-:" opt; do
|
while getopts ":wtfvh-:" opt; do
|
||||||
case "$opt" in
|
case "$opt" in
|
||||||
-)
|
-)
|
||||||
|
@ -55,11 +49,7 @@ if [ $EXPECT_OUTPUT ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $OS == 'Mac' ]; then
|
if [ $OS == 'Mac' ]; then
|
||||||
if [ -n "$BETA_VERSION" ]; then
|
|
||||||
NYLAS_APP_NAME="Nylas N1 Beta.app"
|
|
||||||
else
|
|
||||||
NYLAS_APP_NAME="Nylas N1.app"
|
NYLAS_APP_NAME="Nylas N1.app"
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${NYLAS_PATH}" ]; then
|
if [ -z "${NYLAS_PATH}" ]; then
|
||||||
# If NYLAS_PATH isnt set, check /Applications and then ~/Applications for Nylas N1.app
|
# If NYLAS_PATH isnt set, check /Applications and then ~/Applications for Nylas N1.app
|
||||||
|
@ -89,12 +79,7 @@ elif [ $OS == 'Linux' ]; then
|
||||||
SCRIPT=$(readlink -f "$0")
|
SCRIPT=$(readlink -f "$0")
|
||||||
USR_DIRECTORY=$(readlink -f $(dirname $SCRIPT)/..)
|
USR_DIRECTORY=$(readlink -f $(dirname $SCRIPT)/..)
|
||||||
|
|
||||||
if [ -n "$BETA_VERSION" ]; then
|
|
||||||
NYLAS_PATH="$USR_DIRECTORY/share/nylas-beta/nylas"
|
|
||||||
else
|
|
||||||
NYLAS_PATH="$USR_DIRECTORY/share/nylas/nylas"
|
NYLAS_PATH="$USR_DIRECTORY/share/nylas/nylas"
|
||||||
fi
|
|
||||||
|
|
||||||
NYLAS_HOME="${NYLAS_HOME:-$HOME/.nylas}"
|
NYLAS_HOME="${NYLAS_HOME:-$HOME/.nylas}"
|
||||||
mkdir -p "$NYLAS_HOME"
|
mkdir -p "$NYLAS_HOME"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue