Skip to content

Commit

Permalink
Add app "oneko"
Browse files Browse the repository at this point in the history
  • Loading branch information
Lenni-builder committed Sep 3, 2024
1 parent 9301da3 commit c8958c3
Show file tree
Hide file tree
Showing 16 changed files with 126 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
Binary file added apps/.DS_Store
Binary file not shown.
5 changes: 5 additions & 0 deletions apps/AndroidBuddy copy/credits
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Made by glreno on GitHub

The image files are ancient public domain. The Java code for v.1.0 is (c) 2010 Werner Randelhofer. The Java code for v.2.0 (c) 2019 Gerald Reno

Added to pi-apps by Lenni (@lenni_builder on Discord)
14 changes: 14 additions & 0 deletions apps/AndroidBuddy copy/description
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
The ever popular kitty-that-follows-your-mouse-pointer toy.

Neko is Japanese for cat. According to Wikipedia it was originally written for the NEC PC-9801.

There are many many versions. Generally it is considered Public Domain software, so I am placing my fork under the Unlicense.

This fork is based on Werner Randelshofer's Java port.

(From the GitHub repo)

To run: Menu > Accessories > Oneko
To run in a temrinal: Oneko

You have the option to create an autostart shortcut when installing.
Binary file added apps/AndroidBuddy copy/icon-24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/AndroidBuddy copy/icon-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions apps/AndroidBuddy copy/install
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/bin/bash

install_packages oneko || error "Failed to install oneko!"

echo "[Desktop Entry]
Type=Application
Version=1.0
Name=Oneko
Comment=Catch the mouse
Comment[de]=Fang die Maus
Icon=$(dirname "$0")/icon-64.png
Exec=oneko
Encoding=UTF-8
Terminal=false
Categories=Utility;" | sudo tee /usr/share/applications/oneko.desktop

# Autostart shortcut
response=$(yad --title "oneko installer" --text "Do you want to create an autostart shortcut for oneko? If not you will have to launch it from the start menu." --button="Yes":0 --button="No":1)

if [ $? -eq 0 ]; then
echo "Adding autostart shortcut to ~/.config/autostart/oneko.desktop..."
echo "[Desktop Entry]
Type=Application
Version=1.0
Name=Oneko
Comment=Catch the mouse
Comment[de]=Fang die Maus
Icon=$(dirname "$0")/icon-64.png
Exec=oneko
Encoding=UTF-8
Terminal=false
Categories=Utility;Game;" | tee ~/.config/autostart/oneko.desktop
echo "Oneko will be started the next time you reboot your Raspberry Pi."
else
echo "Adding no autostart shortcut."
fi
7 changes: 7 additions & 0 deletions apps/AndroidBuddy copy/uninstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
purge_packages || error "Failed to uninstall oneko!"

sudo rm -rf /usr/share/applications/oneko.desktop || error "Failed to remove shortcuts!"
rm -rf ~/.config/autostart/oneko.desktop || echo "Failed to remove autostart entry, probably because it wasn't added."

exit 0
1 change: 1 addition & 0 deletions apps/AndroidBuddy copy/website
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://github.com/glreno/oneko
5 changes: 5 additions & 0 deletions apps/Oneko/credits
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Made by glreno on GitHub

The image files are ancient public domain. The Java code for v.1.0 is (c) 2010 Werner Randelhofer. The Java code for v.2.0 (c) 2019 Gerald Reno

Added to pi-apps by Lenni (@lenni_builder on Discord)
14 changes: 14 additions & 0 deletions apps/Oneko/description
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
The ever popular kitty-that-follows-your-mouse-pointer toy.

Neko is Japanese for cat. According to Wikipedia it was originally written for the NEC PC-9801.

There are many many versions. Generally it is considered Public Domain software, so I am placing my fork under the Unlicense.

This fork is based on Werner Randelshofer's Java port.

(From the GitHub repo)

To run: Menu > Accessories > Oneko
To run in a temrinal: Oneko

You have the option to create an autostart shortcut when installing.
Binary file added apps/Oneko/icon-24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/Oneko/icon-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions apps/Oneko/install
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/bin/bash

install_packages oneko || error "Failed to install oneko!"

echo "[Desktop Entry]
Type=Application
Version=1.0
Name=Oneko
Comment=Catch the mouse
Comment[de]=Fang die Maus
Icon=$(dirname "$0")/icon-64.png
Exec=oneko
Encoding=UTF-8
Terminal=false
Categories=Utility;" | sudo tee /usr/share/applications/oneko.desktop

# Autostart shortcut
response=$(yad --title "oneko installer" --text "Do you want to create an autostart shortcut for oneko? If not you will have to launch it from the start menu." --button="Yes":0 --button="No":1)

if [ $? -eq 0 ]; then
echo "Adding autostart shortcut to ~/.config/autostart/oneko.desktop..."
echo "[Desktop Entry]
Type=Application
Version=1.0
Name=Oneko
Comment=Catch the mouse
Comment[de]=Fang die Maus
Icon=$(dirname "$0")/icon-64.png
Exec=oneko
Encoding=UTF-8
Terminal=false
Categories=Utility;Game;" | tee ~/.config/autostart/oneko.desktop
echo "Oneko will be started the next time you reboot your Raspberry Pi."
else
echo "Adding no autostart shortcut."
fi
7 changes: 7 additions & 0 deletions apps/Oneko/uninstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
purge_packages || error "Failed to uninstall oneko!"

sudo rm -rf /usr/share/applications/oneko.desktop || error "Failed to remove shortcuts!"
rm -rf ~/.config/autostart/oneko.desktop || echo "Failed to remove autostart entry, probably because it wasn't added."

exit 0
1 change: 1 addition & 0 deletions apps/Oneko/website
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://github.com/glreno/oneko

0 comments on commit c8958c3

Please sign in to comment.