Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR for Open-Typer app request #2421

Merged
merged 13 commits into from
Oct 22, 2023
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 @@ -132,6 +132,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 @@ -25,6 +25,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