Add Notepad++ app
parent
74c984bb7b
commit
e12ae48466
@ -0,0 +1 @@
|
||||
App added to pi-apps by RPICoder
|
@ -0,0 +1,4 @@
|
||||
Notepad++ is a free source code editor and Notepad replacement that supports several languages.
|
||||
To Run: Menu -> Accessories -> Notepad++
|
||||
|
||||
This app runs with the help of box86 and wine.
|
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
Binary file not shown.
After Width: | Height: | Size: 7.7 KiB |
@ -0,0 +1,39 @@
|
||||
#!/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
|
||||
}
|
||||
|
||||
#Checking if wine is installed
|
||||
if ! command -v wine &>/dev/null ; then
|
||||
echo 'Wine Is Not Installed'
|
||||
#Installing wine
|
||||
$DIRECTORY/manage install 'Wine (x86)' || error 'Failed to install wine'
|
||||
fi
|
||||
|
||||
|
||||
#Removing any files which were created by corrupted installation
|
||||
rm -rf npp.zip ~/Notepad++
|
||||
|
||||
#Downloading npp files
|
||||
wget https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v7.9.4/npp.7.9.4.portable.zip -O npp.zip || error 'Failed to download npp files'
|
||||
#Extracting npp files
|
||||
unzip npp.zip -d ~/Notepad++ || error 'Failed to extract npp archive'
|
||||
#Removing npp archive
|
||||
rm npp.zip
|
||||
|
||||
#Creating Desktop Entry
|
||||
echo "[Desktop Entry]
|
||||
Name=Notepad++
|
||||
Comment=Notepad++ is a free source code editor and Notepad replacement that supports several languages.
|
||||
Exec=wine '$HOME/Notepad++/notepad++.exe'
|
||||
Icon=$(dirname "$0")/icon-64.png
|
||||
Terminal=false
|
||||
StartupNotify=true
|
||||
Type=Application
|
||||
Categories=Utility;" > ~/.local/share/applications/notepad++.desktop || error "Failed to create menu button!"
|
||||
|
||||
|
@ -0,0 +1,15 @@
|
||||
#!/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 your app installs any packages, keep this command here so those packages will be removed.
|
||||
"${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1
|
||||
|
||||
#Removing Downlaoded Files
|
||||
rm -rf ~/Notepad++
|
||||
rm -f ~/.local/share/applications/notepad++.desktop
|
@ -0,0 +1 @@
|
||||
https://notepad-plus-plus.org/
|
Loading…
Reference in New Issue