From b97975ad7e1fb670d70f8f167f961d52db2a56cc Mon Sep 17 00:00:00 2001 From: Xavier Petit <32063953+xpetit@users.noreply.github.com> Date: Fri, 11 Oct 2019 11:43:27 +0200 Subject: [PATCH] Add exam installation script --- scripts/exam.sh | 29 +++++++++++++++++++++++++++++ scripts/install_client.sh | 1 + 2 files changed, 30 insertions(+) create mode 100755 scripts/exam.sh diff --git a/scripts/exam.sh b/scripts/exam.sh new file mode 100755 index 000000000..79577853c --- /dev/null +++ b/scripts/exam.sh @@ -0,0 +1,29 @@ +#!/usr/bin/env bash + +# Install Exam app + +script_dir="$(cd -P "$(dirname "$BASH_SOURCE")" && pwd)" +cd $script_dir +. set.sh + +wget https://github.com/01-edu/public/releases/download/exam/exam.1.0.0.AppImage -O /usr/local/bin/exam.1.0.0.AppImage +chmod +x /usr/local/bin/exam.1.0.0.AppImage + +cat < /home/student/.local/share/applications/appimagekit-exam.desktop +[Desktop Entry] +Name=exam +Comment=the exam client +Exec="/usr/local/bin/exam.1.0.0.AppImage" %U +Terminal=false +Type=Application +Icon=appimagekit-exam +StartupWMClass=exam +X-AppImage-Version=1.0.0 +MimeType=x-scheme-handler/exam; +Categories=Utility; +X-AppImage-BuildId=1RHp8aPhkSgD1PXGL1NW5QDsbFF +X-Desktop-File-Install-Version=0.23 +X-AppImage-Comment=Generated by /tmp/.mount_exam.1PqfsDP/AppRun +TryExec=/usr/local/bin/exam.1.0.0.AppImage +EOF +chown student:student /home/student/.local/share/applications/appimagekit-exam.desktop diff --git a/scripts/install_client.sh b/scripts/install_client.sh index 01f6883e6..7b969233e 100755 --- a/scripts/install_client.sh +++ b/scripts/install_client.sh @@ -48,6 +48,7 @@ apt-get -yf install . sublime.sh . vscode.sh . libreoffice.sh +. exam.sh # Install additional packages PKGS="