Add Notepad++ app

pull/479/head
Botspot 5 years ago
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/

@ -24,11 +24,14 @@ Doom 3|Games
Eagle CAD|Editors
eDEX-UI|Eyecandy
Email Checker|Internet
FreeCAD|Editors
FreeTube|Internet
Geany Dark Mode|Eyecandy
Godot Engine 3.2.4|Games
Intellij IDEA|Editors
Interactive Brokers TW|Tools
jGRASP IDE|Editors
KeePassX|
LibrePCB|Editors
Lightpad|Eyecandy
Lokinet|Internet
@ -39,6 +42,7 @@ Minecraft Java|Games
Minecraft Pi (Modded)|Games
Mission Planner|Tools
Node.js|Internet
Notepad ++|Editors
OBS Studio|Tools
Pi-Apps Terminal Plugin|Tools
PiGro|Tools
@ -77,11 +81,10 @@ VeraCrypt|Tools
Visual Studio Code|Editors
Vivaldi|Internet
VSCodium|Editors
WACUP (new WinAmp)|Windows apps
WACUP (new WinAmp)|Tools
Whatsapp|Internet
Windows 10 Theme|Eyecandy
Wine (x86)|Tools
WPS Office|Editors
YouTubuddy|Internet
Zoom|Internet
FreeCAD|Editors

Loading…
Cancel
Save