Skip to content

Commit

Permalink
change over nativefier apps to webapps
Browse files Browse the repository at this point in the history
resolves #2321
  • Loading branch information
theofficialgman committed May 29, 2023
1 parent 30a1bad commit cc3fa1a
Show file tree
Hide file tree
Showing 18 changed files with 61 additions and 77 deletions.
2 changes: 1 addition & 1 deletion apps/Snapdrop/credits
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@ryanfortner (GitHub)
theofficialgman
16 changes: 16 additions & 0 deletions apps/Snapdrop/install
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

"${DIRECTORY}/manage" install-if-not-installed 'Chromium' || error "Chromium is required but it failed to install!"

sudo mkdir -p /usr/local/share/applications
echo "Creating menu button..."
echo "[Desktop Entry]
Name=Snapdrop
GenericName=Local File Sharing
Comment=Local file sharing in your browser. Inspired by Apple's Airdrop.
Exec=chromium-browser %U --user-data-dir=$HOME/.config/webapps/snapdrop --app=https://snapdrop.net/
Icon=$(dirname "$0")/icon-64.png
Terminal=false
StartupNotify=true
Type=Application
Categories=Utility" | sudo tee /usr/local/share/applications/Snapdrop.desktop || error "Failed to create menu shortcut!"
5 changes: 0 additions & 5 deletions apps/Snapdrop/install-32

This file was deleted.

5 changes: 0 additions & 5 deletions apps/Snapdrop/install-64

This file was deleted.

3 changes: 2 additions & 1 deletion apps/Snapdrop/uninstall
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash

purge_packages || exit 1
sudo rm -f /usr/local/share/applications/Snapdrop.desktop
purge_packages || exit 1
4 changes: 1 addition & 3 deletions apps/StackEdit/credits
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
Added to pi-apps by Itai-Nelken.
webapps compiled by Itai-Nelken using nativefier.
nativefier by jiahaog.
theofficialgman
1 change: 0 additions & 1 deletion apps/StackEdit/description
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ Full-featured, open-source Markdown editor.
StackEdit uses the same markdown library as Stack Overflow and is fully compatible with Github README.md files as well.
This is Botspot's preferred tool to write the README for all his repositories.
To run: Menu -> Programming -> StackEdit
To run in a terminal: ~/stackedit/StackEdit
16 changes: 16 additions & 0 deletions apps/StackEdit/install
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

"${DIRECTORY}/manage" install-if-not-installed 'Chromium' || error "Chromium is required but it failed to install!"

sudo mkdir -p /usr/local/share/applications
echo "Creating menu shortcut..."
echo "[Desktop Entry]
Name=StackEdit
GenericName=Markdown editor
Comment=A chromium webapp for the stackedit markdown editor
Exec=chromium-browser %U --user-data-dir=$HOME/.config/webapps/stackedit --app=https://stackedit.io/app#
Icon=$(dirname "$0")/icon-64.png
Terminal=false
StartupNotify=true
Type=Application
Categories=Development;IDE;" | sudo tee /usr/local/share/applications/stackedit.desktop || error "Failed to create menu shortcut!"
19 changes: 0 additions & 19 deletions apps/StackEdit/install-32

This file was deleted.

19 changes: 0 additions & 19 deletions apps/StackEdit/install-64

This file was deleted.

8 changes: 3 additions & 5 deletions apps/StackEdit/uninstall
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#!/bin/bash
echo "removing ~/stackedit..."
rm -rf ~/stackedit || error "Failed to remove ~/stackedit!"
echo "removing menu shortcut..."
rm -f ~/.local/share/applications/stackedit.desktop || error "Failed to remove menu shortcut!"
echo "DONE!"

sudo rm -f /usr/local/share/applications/stackedit.desktop
purge_packages || exit 1
4 changes: 1 addition & 3 deletions apps/WhatsApp/credits
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
Apps compiled using Nativefier and DEB packages hosted by cycool29
Nativefier made by jiahaog.
Thanks to Botspot for help with debugging the menu shortcut and for creating pi-apps!
theofficialgman
6 changes: 2 additions & 4 deletions apps/WhatsApp/description
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
Nativefier Whatsapp Web webapp
Whatsapp Web webapp

A simple Whatsapp Web chromium webapp wrapped in electron with nativefier.
it has a tray icon, so it doesn't take space on the taskbar, but keeps running in the background.
A simple Whatsapp Web chromium webapp.

To run: Menu -> Internet -> Whatsapp Web
To run in a terminal: /opt/WhatsApp/WhatsApp
17 changes: 17 additions & 0 deletions apps/WhatsApp/install
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

"${DIRECTORY}/manage" install-if-not-installed 'Chromium' || error "Chromium is required but it failed to install!"

sudo mkdir -p /usr/local/share/applications
echo "Creating menu button..."
echo "[Desktop Entry]
Name=WhatsApp
GenericName=Online Messaging
Comment=A chromium webapp for the WhatsApp messaging service
Exec=chromium-browser %U --user-data-dir=$HOME/.config/webapps/WhatsApp --app=https://web.whatsapp.com
Icon=$(dirname "$0")/icon-64.png
Type=Application
StartupNotify=false
StartupWMClass=WhatsApp
Categories=Internet;Chat;Network
Keywords=whatsapp;" | sudo tee /usr/local/share/applications/WhatsApp.desktop || error "Failed to create menu shortcut!"
5 changes: 0 additions & 5 deletions apps/WhatsApp/install-32

This file was deleted.

5 changes: 0 additions & 5 deletions apps/WhatsApp/install-64

This file was deleted.

1 change: 1 addition & 0 deletions apps/WhatsApp/uninstall
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash

rm -f /usr/local/share/applications/WhatsApp.desktop
purge_packages || exit 1
2 changes: 1 addition & 1 deletion etc/categories
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ Snap Store|Tools
Sonic Pi|Multimedia
SpeedTest-CLI|Internet
Sphero SDK|Programming
StackEdit|hidden
StackEdit|Programming
Steam|Games
Steam Link|Games
StepMania|Games
Expand Down

0 comments on commit cc3fa1a

Please sign in to comment.