add Sublime Text app

pull/132/head
Botspot 4 years ago
parent 0530169e4a
commit a110e62472

@ -0,0 +1 @@
Added to pi-apps by Itai Nelken

@ -0,0 +1,6 @@
Cross-platform source code editor with a Python application programming interface.
It natively supports many programming languages and markup languages, and functions can be added by users with plugins.
To run: Menu -> Accessories -> Sublime Text
This installs box86, and uses Sublime Text v2 for stability purposes.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

@ -0,0 +1,32 @@
#!/bin/bash
DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")"
function error {
echo -e "\\e[91m$1\\e[39m"
exit 1
}
if [ ! -f /usr/local/bin/box86 ];then
echo 'Installing box86 first...'
wget -qO- https://raw.githubusercontent.com/Botspot/box86-updater/main/update-box86 | bash
if [ ! -f /usr/local/bin/box86 ];then
error "Box86 failed to install somehow!"
fi
fi
wget https://download.sublimetext.com/Sublime%20Text%202.0.2.tar.bz2 -O ~/sublime-text-2.tar.bz2 || error 'Failed to download!'
tar -xf ~/sublime-text-2.tar.bz2 || error 'Failed to extract!'
rm -f sublime-text-2.tar.bz2
echo "[Desktop Entry]
Name=Sublime Text
Comment=nice text editor that has native support for most programming languages.
Exec='$HOME/Sublime Text 2/sublime_text'
Icon=$(dirname "$0")/icon-64.png
Terminal=false
StartupNotify=true
Type=Application
Categories=Utility;" > ~/.local/share/applications/sublime-text.desktop || error "Failed to create menu button!"

@ -0,0 +1,14 @@
#!/bin/bash
DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")"
function error {
echo -e "\\e[91m$1\\e[39m"
exit 1
}
rm ~/.local/share/applications/sublime-text.desktop
rm -rf ~/"Sublime Text 2"
exit 0

@ -0,0 +1 @@
https://www.sublimetext.com/
Loading…
Cancel
Save