Skip to content

Instantly share code, notes, and snippets.

@sctech-tr
Last active September 28, 2024 12:26
Show Gist options
  • Save sctech-tr/167348efc1b362911b34a81f942166cd to your computer and use it in GitHub Desktop.
Save sctech-tr/167348efc1b362911b34a81f942166cd to your computer and use it in GitHub Desktop.
script for building dolphin emulator
#/bin/sh
cd ~
wget -qO- https://raw.githubusercontent.com/sctech-tr/upm/main/install.sh | sh
upm install dunst
notify-send --urgency=normal -t 5000 'build-dolphin' 'Please enter your password in the terminal. sudo is needed.'
echo Starting ... you may be asked for your password.
echo Installing/updating needed packages...
upm install vulkan-loader vulkan-loader-devel cmake git gcc-c++ libXext-devel libgudev qt6-qtbase-devel qt6-qtbase-private-devel qt6-qtsvg-devel systemd-devel openal-soft-devel libevdev-devel libao-devel SOIL-devel libXrandr-devel pulseaudio-libs-devel bluez-libs-devel libusb1-devel libXi-devel --quiet
echo ...done
echo Cloning dolphin repository...
sudo rm -rf ~/dolphin
cd ~
git clone https://github.com/dolphin-emu/dolphin
echo ...done
cd dolphin
echo Cloning submodules...
git -c submodule."Externals/Qt".update=none \
-c submodule."Externals/FFmpeg-bin".update=none \
-c submodule."Externals/libadrenotools".update=none \
submodule update --init --recursive \
&& git pull --recurse-submodules
echo ...done
mkdir build
cd build
echo Building...
cmake .. &> /dev/null
make -j$(nproc) --quiet
echo ...done
echo Installing...
notify-send --urgency=normal -t 5000 'build-dolphin' 'Please enter your password in the terminal. sudo is needed.'
sudo make install --quiet
echo ...done!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment