Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a Linux installation script & desktop file. #138

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
"fix": "standard --fix",
"clean": "rm -r ~/Documents/Left-darwin-x64/ ; rm -r ~/Documents/Left-linux-x64/ ; rm -r ~/Documents/Left-win32-x64/ ; echo 'cleaned build location'",
"build_osx": "electron-packager . Left --platform=darwin --arch=x64 --out ~/Documents/ --overwrite --icon=icon.icns ; echo 'Built for OSX'",
"build_linux": "electron-packager . Left --platform=linux --arch=x64 --out ~/Documents/ --overwrite --icon=icon.ico ; echo 'Built for LINUX'",
"build_linux": "electron-packager . left --platform=linux --arch=x64 --out ~/Documents/ --overwrite --icon=icon.ico ; cp ../post_install/* ~/Documents/left-linux-x64/ ; echo 'Built for LINUX'",
"build_win": "electron-packager . Left --platform=win32 --arch=x64 --out ~/Documents/ --overwrite --icon=icon.ico ; echo 'Built for WIN'",
"build": "npm run clean ; npm run build_osx ; npm run build_linux ; npm run build_win",
"push_osx": "~/Applications/butler push ~/Documents/Left-darwin-x64/ hundredrabbits/left:osx-64",
"push_linux": "~/Applications/butler push ~/Documents/Left-linux-x64/ hundredrabbits/left:linux-64",
"push_linux": "~/Applications/butler push ~/Documents/left-linux-x64/ hundredrabbits/left:linux-64",
"push_win": "~/Applications/butler push ~/Documents/Left-win32-x64/ hundredrabbits/left:windows-64",
"status": "~/Applications/butler status hundredrabbits/left",
"push": "npm run build ; npm run push_osx ; npm run push_linux ; npm run push_win ; npm run clean ; npm run status"
Expand Down
10 changes: 10 additions & 0 deletions post_install/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

# Copy the application to the user's /opt folder.
sudo cp -r ../* /opt/

# Copy the left.desktop file to the user's local applications folder.
sudo cp left.desktop ~/.local/share/applications/

# Installation complete.
echo "Left has been installed. Enjoy!"
12 changes: 12 additions & 0 deletions post_install/left.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Desktop Entry]
Name=Left
GenericName=Text Editor
Comment=Edit text files
Exec=/opt/left-linux-x64/left
Terminal=false
Type=Application
Keywords=Text;Editor;
Icon=/opt/left-linux-x64/resources/app/icon.png
Categories=Utility;TextEditor;
StartupNotify=false
MimeType=text/plain;