Skip to content

Commit

Permalink
new app: add Open-Typer (#2421)
Browse files Browse the repository at this point in the history
Open-Typer is an open source typing tutor application which aims to make learning to touch type easier.
Using Qt, Open-Typer runs on many devices, while still maintaining ease of use.

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: theofficialgman <[email protected]>
  • Loading branch information
3 people authored Oct 22, 2023
1 parent 57da186 commit f24028d
Show file tree
Hide file tree
Showing 9 changed files with 50 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/updates/Open-Typer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

webVer=$(get_release Open-Typer/Open-Typer)
armhf_url="https://github.com/Open-Typer/Open-Typer/releases/download/v${webVer}/Open-Typer-armhf.AppImage"
arm64_url="https://github.com/Open-Typer/Open-Typer/releases/download/v${webVer}/Open-Typer-aarch64.AppImage"

source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
5 changes: 5 additions & 0 deletions apps/Open-Typer/description
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Open-Typer is an open source typing tutor application which aims to make learning to touch type easier.
Using Qt, Open-Typer runs on many devices, while still maintaining ease of use.

To run: Menu -> Education -> Open-Typer
To run in terminal: /opt/Open-Typer.AppImage
Binary file added apps/Open-Typer/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/Open-Typer/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.
31 changes: 31 additions & 0 deletions apps/Open-Typer/install
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/bash

version=5.2.1

#Install Depends
enable_module fuse || exit 1

#Download Open-Typer build from repo
case "$arch" in
"64") wget -O /tmp/Open-Typer.AppImage https://github.com/Open-Typer/Open-Typer/releases/download/v${version}/Open-Typer-aarch64.AppImage || error "Failed to download AppImage!" ;;
"32") wget -O /tmp/Open-Typer.AppImage https://github.com/Open-Typer/Open-Typer/releases/download/v${version}/Open-Typer-armhf.AppImage || error "Failed to download AppImage!" ;;
*) error "arch variable is not set, can not continue" ;;
esac

#Move Open-Typer.AppImage to /opt
sudo mv /tmp/Open-Typer.AppImage /opt || error "Failed to move from /tmp to /opt!"

#Mark Open-Typer.AppImage as executable
sudo chmod +x /opt/Open-Typer.AppImage || error "Failed to mark as executable!"

#Create Menu Button
status "Creating Menu Button"
sudo mkdir -p /usr/local/share/applications
echo "[Desktop Entry]
Name=Open-Typer
Comment=A free and open source typing tutor program
Icon=$(dirname "$0")/icon-64.png
Exec=/opt/Open-Typer.AppImage %f
Type=Application
Terminal=false
Categories=Education;" | sudo tee /usr/local/share/applications/Open-Typer.desktop >/dev/null || error "Failed to create menu button!"
4 changes: 4 additions & 0 deletions apps/Open-Typer/uninstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

purge_packages || exit 1
sudo rm -rf /opt/Open-Typer.AppImage /usr/local/share/applications/Open-Typer.desktop
1 change: 1 addition & 0 deletions apps/Open-Typer/website
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://github.com/Open-Typer/Open-Typer
1 change: 1 addition & 0 deletions etc/categories
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ OBS Studio|Multimedia
Oh My Posh|Appearance
Oomox Theme Designer|Appearance
OpenSCAD|Engineering
Open-Typer|Office
Pac-Man|Games
Pale Moon|Internet/Browsers
PeaZip|Tools
Expand Down
1 change: 1 addition & 0 deletions etc/category-overrides-jetson-18.04
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ More RAM|hidden
Node.js|hidden
Oomox Theme Designer|hidden
OpenSCAD|hidden
Open-Typer|hidden
Pale Moon|hidden
PiGro|hidden
PiKISS GUI|hidden
Expand Down

0 comments on commit f24028d

Please sign in to comment.