Add install script for non ubuntu / (arch) distros

This commit is contained in:
dec05eba
2022-10-02 01:24:11 +02:00
parent b99652ee28
commit 5d92b53f1c
3 changed files with 14 additions and 4 deletions

10
install.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
script_dir=$(dirname "$0")
cd "$script_dir"
[ $(id -u) -ne 0 ] && echo "You need root privileges to run the install script" && exit 1
./build.sh
install -Dm755 "gpu-screen-recorder" "/usr/bin/gpu-screen-recorder"
echo "Successfully installed gpu-screen-recorder"