aboutsummaryrefslogtreecommitdiff
path: root/install.sh
blob: 1207e7dd43bd2d7f06c332d165585db504ed481b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

set -e

script_dir=$(dirname "$0")
cd "$script_dir"

[ $(id -u) -ne 0 ] && echo "You need root privileges to run the install script" && exit 1

sibs build --release

install -Dm755 "sibs-build/$(sibs platform)/release/quickmedia" "/usr/bin/quickmedia"
install -Dm644 boards.json "/usr/share/quickmedia/boards.json"
install -Dm644 input.conf "/usr/share/quickmedia/input.conf"

for file in images/* icons/* shaders/*; do
    install -Dm644 "$file" "/usr/share/quickmedia/$file"
done

for file in launcher/*; do
    filename=$(basename "$file")
    install -Dm644 "$file" "/usr/share/applications/$filename"
done

echo "Successfully installed QuickMedia"