forked from desktop/desktop
-
Notifications
You must be signed in to change notification settings - Fork 529
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add CLI support to Debian package, add Elementary OS shell and editor…
… support (#231)
- Loading branch information
Showing
7 changed files
with
83 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/sh | ||
|
||
if [ ! -L "$0" ]; then | ||
# if path is not a symlink, find relatively | ||
GITHUB_PATH=$(dirname "$(dirname "$(dirname "$(dirname "$0")")")") | ||
else | ||
if command -v readlink >/dev/null; then | ||
# if readlink exists, follow the symlink and then find relatively | ||
SYMLINK=$(readlink -f "$0") | ||
GITHUB_PATH=$(dirname "$(dirname "$(dirname "$(dirname "$SYMLINK")")")") | ||
else | ||
# else use the standard install location | ||
GITHUB_PATH="/opt/GitHub Desktop" | ||
fi | ||
fi | ||
# check if this is a dev install or standard | ||
if [ -f "$GITHUB_PATH/github-desktop-dev" ]; then | ||
BINARY_NAME="github-desktop-dev" | ||
else | ||
BINARY_NAME="github-desktop" | ||
fi | ||
|
||
ELECTRON="$GITHUB_PATH/$BINARY_NAME" | ||
CLI="$GITHUB_PATH/resources/app/cli.js" | ||
|
||
ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" "$@" | ||
|
||
exit $? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters