refactor(n1): change launch script to N1.sh

This commit is contained in:
Evan Morikawa 2015-10-02 11:36:19 -07:00
parent 2086291c2c
commit f6ef8a8b0c
12 changed files with 15 additions and 15 deletions

0
atom.sh → N1.sh Executable file → Normal file
View file

View file

@ -26,7 +26,7 @@ Once you have a token:
git clone https://github.com/nylas/N1.git
cd N1
script/bootstrap
./n1 --dev
./N1.sh --dev
```
Our early access tokens are designed control access to our production mail sync

View file

@ -14,7 +14,7 @@ mkdir -p %{buildroot}/usr/local/share/Nylas
cp -r /tmp/nylas-build/Nylas/* %{buildroot}/usr/local/share/Nylas
mkdir -p %{buildroot}/usr/local/bin/
ln -sf /usr/local/share/nylas/resources/app/apm/node_modules/.bin/apm %{buildroot}/usr/local/bin/apm
cp atom.sh %{buildroot}/usr/local/bin/nylas
cp N1.sh %{buildroot}/usr/local/bin/nylas
chmod 755 nylas
mkdir -p %{buildroot}/usr/local/share/applications/
mv nylas.desktop %{buildroot}/usr/local/share/applications/

View file

@ -16,7 +16,7 @@ FOR %%a IN (%*) DO (
)
IF "%EXPECT_OUTPUT%"=="YES" (
"%~dp0\..\..\atom.exe" %*
"%~dp0\..\..\nylas.exe" %*
) ELSE (
"%~dp0\..\app\apm\bin\node.exe" "%~dp0\atom.js" %*
)

View file

@ -1,7 +1,7 @@
var path = require('path');
var spawn = require('child_process').spawn;
var atomCommandPath = path.resolve(__dirname, '..', '..', 'atom.exe');
var atomCommandPath = path.resolve(__dirname, '..', '..', 'nylas.exe');
var arguments = process.argv.slice(2);
arguments.unshift('--executed-from', process.cwd());
var options = {detached: true, stdio: 'ignore'};

View file

@ -16,7 +16,7 @@ while getopts ":fhtvw-:" opt; do
done
if [ $EXPECT_OUTPUT ]; then
"$0/../../../atom.exe" "$@"
"$0/../../../nylas.exe" "$@"
else
"$0/../../app/apm/bin/node.exe" "$0/../atom.js" "$@"
fi

View file

@ -37,7 +37,7 @@ module.exports = (grunt) ->
mkdir appDir
if process.platform isnt 'win32'
cp 'atom.sh', path.resolve(appDir, '..', 'new-app', 'atom.sh')
cp 'N1.sh', path.resolve(appDir, '..', 'new-app', 'N1.sh')
cp 'package.json', path.join(appDir, 'package.json')
cp path.join('build', 'resources', 'nylas.png'), path.join(appDir, 'nylas.png')
@ -174,7 +174,7 @@ module.exports = (grunt) ->
if process.platform is 'win32'
cp path.join('build', 'resources', 'win', 'atom.cmd'), path.join(shellAppDir, 'resources', 'cli', 'atom.cmd')
cp path.join('build', 'resources', 'win', 'atom.sh'), path.join(shellAppDir, 'resources', 'cli', 'atom.sh')
cp path.join('build', 'resources', 'win', 'N1.sh'), path.join(shellAppDir, 'resources', 'cli', 'N1.sh')
cp path.join('build', 'resources', 'win', 'atom.js'), path.join(shellAppDir, 'resources', 'cli', 'atom.js')
cp path.join('build', 'resources', 'win', 'apm.sh'), path.join(shellAppDir, 'resources', 'cli', 'apm.sh')

View file

@ -36,9 +36,9 @@ module.exports = (grunt) ->
iconName = path.join(shareDir, 'resources', 'app', 'resources', 'nylas.png')
mkdir binDir
# Note that `atom.sh` can't be renamed `nylas.sh` because `apm`
# is currently hard-coded to call `atom.sh`
cp 'atom.sh', path.join(binDir, 'nylas')
# Note that `N1.sh` can't be renamed `nylas.sh` because `apm`
# is currently hard-coded to call `N1.sh`
cp 'N1.sh', path.join(binDir, 'nylas')
rm shareDir
mkdir path.dirname(shareDir)
cp shellAppDir, shareDir

View file

@ -137,7 +137,7 @@ module.exports = (grunt) ->
done = @async()
testSucceeded = false
testOutput = ""
testProc = proc.spawn("./atom.sh", ["--test"])
testProc = proc.spawn("./N1.sh", ["--test"])
testProc.stdout.on 'data', (data) ->
str = data.toString()

View file

@ -13,8 +13,8 @@ rpmdev-setuptree
cp -r $BUILD_DIRECTORY/Nylas/* $RPM_BUILD_ROOT/BUILD
cp $SPEC_FILE $RPM_BUILD_ROOT/SPECS
cp ./atom.sh $RPM_BUILD_ROOT/BUILD
cp $RPM_BUILD_ROOT/BUILD/atom.sh $RPM_BUILD_ROOT/BUILD/nylas
cp ./N1.sh $RPM_BUILD_ROOT/BUILD
cp $RPM_BUILD_ROOT/BUILD/N1.sh $RPM_BUILD_ROOT/BUILD/nylas
cp $DESKTOP_FILE $RPM_BUILD_ROOT/BUILD
rpmbuild -ba $SPEC_FILE

View file

@ -91,7 +91,7 @@ addCommandsToPath = (callback) ->
atomCommand = "@echo off\r\n\"%~dp0\\#{relativeAtomPath}\" %*"
atomShCommandPath = path.join(binFolder, 'atom')
relativeAtomShPath = path.relative(binFolder, path.join(appFolder, 'resources', 'cli', 'atom.sh'))
relativeAtomShPath = path.relative(binFolder, path.join(appFolder, 'resources', 'cli', 'N1.sh'))
atomShCommand = "#!/bin/sh\r\n\"$0/../#{relativeAtomShPath.replace(/\\/g, '/')}\" \"$@\""
apmCommandPath = path.join(binFolder, 'apm.cmd')

View file

@ -50,7 +50,7 @@ module.exports =
detailedMessage: "The shell commands `atom` and `apm` are installed."
installAtomCommand: (resourcePath, askForPrivilege, callback) ->
commandPath = path.join(resourcePath, 'atom.sh')
commandPath = path.join(resourcePath, 'N1.sh')
@createSymlink commandPath, askForPrivilege, callback
installApmCommand: (resourcePath, askForPrivilege, callback) ->