mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
968 B
33 lines
968 B
5 years ago
|
#!/usr/bin/env bash
|
||
|
|
||
|
# Install Exam app
|
||
|
|
||
|
script_dir="$(cd -P "$(dirname "$BASH_SOURCE")" && pwd)"
|
||
|
cd $script_dir
|
||
|
. set.sh
|
||
|
|
||
5 years ago
|
wget https://01.alem.school/assets/files/exam.AppImage -O /usr/local/bin/exam.AppImage
|
||
5 years ago
|
chmod +x /usr/local/bin/exam.AppImage
|
||
5 years ago
|
|
||
|
cat <<EOF> /home/student/.local/share/applications/appimagekit-exam.desktop
|
||
|
[Desktop Entry]
|
||
|
Name=exam
|
||
|
Comment=the exam client
|
||
5 years ago
|
Exec="/usr/local/bin/exam.AppImage" %U
|
||
5 years ago
|
Terminal=false
|
||
|
Type=Application
|
||
|
Icon=appimagekit-exam
|
||
|
StartupWMClass=exam
|
||
5 years ago
|
X-AppImage-Version=1.0.0
|
||
5 years ago
|
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
|
||
5 years ago
|
TryExec=/usr/local/bin/exam.AppImage
|
||
5 years ago
|
EOF
|
||
|
chown student:student /home/student/.local/share/applications/appimagekit-exam.desktop
|
||
5 years ago
|
|
||
|
sudo -iu student xdg-mime default appimagekit-exam.desktop x-scheme-handler/exam
|
||
5 years ago
|
sudo -iu student go get github.com/01-edu/z01
|