Stupid mistake. Old /usr/local/bin/gpu-screen-recorder overwrites /usr/bin/gpu-screen-recorder path. Make installer install to both paths to fix past mistakes

This commit is contained in:
dec05eba 2022-10-04 01:37:08 +02:00
parent e80d7676d4
commit e277abe843
2 changed files with 2 additions and 0 deletions

View File

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

View File

@ -20,6 +20,7 @@ libs="$(pkg-config --libs $dependencies) -ldl -pthread -lm"
g++ -c src/sound.cpp -O2 $includes g++ -c src/sound.cpp -O2 $includes
g++ -c src/main.cpp -O2 $includes g++ -c src/main.cpp -O2 $includes
g++ -o gpu-screen-recorder -O2 sound.o main.o -s $libs g++ -o gpu-screen-recorder -O2 sound.o main.o -s $libs
install -Dm755 "gpu-screen-recorder" "/usr/local/bin/gpu-screen-recorder"
install -Dm755 "gpu-screen-recorder" "/usr/bin/gpu-screen-recorder" install -Dm755 "gpu-screen-recorder" "/usr/bin/gpu-screen-recorder"
echo "Successfully installed gpu-screen-recorder" echo "Successfully installed gpu-screen-recorder"