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 -> Accessories -> 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.
27 changes: 27 additions & 0 deletions apps/Open-Typer/install-32
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash

version=5.2.0

#Install Depends
install_packages libfuse2 || exit 1
theofficialgman marked this conversation as resolved.
Show resolved Hide resolved

#Download Open-Typer build from repo
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!"

#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!"
27 changes: 27 additions & 0 deletions apps/Open-Typer/install-64
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash

version=5.2.0

#Install Depends
install_packages libfuse2 || exit 1

#Download Open-Typer build from repo
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!"

#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 ~/.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