Skip to content

Instantly share code, notes, and snippets.

@CorySanin
Last active December 20, 2022 08:06
Show Gist options
  • Save CorySanin/bdfd655dd3edb97c2ac34e63d1db8211 to your computer and use it in GitHub Desktop.
Save CorySanin/bdfd655dd3edb97c2ac34e63d1db8211 to your computer and use it in GitHub Desktop.
Netplay with your Windows normie friends on the latest dev build of Dolphin emu
#!/bin/bash
# Builds the most recent dev build and installs
# Requires jq git curl
# Build dependencies: https://wiki.dolphin-emu.org/index.php?title=Building_Dolphin_on_Linux#Build_Dependencies
# update DOLPHINDIR to the directory to keep all dolphin build files
DOLPHINDIR=~/Documents/dolphin-updater
# ================ #
mkdir -p $DOLPHINDIR
cd $DOLPHINDIR
BRANCH="dev"
if [ ! -d ".git" ]; then
git clone https://github.com/dolphin-emu/dolphin.git .
git checkout "a6023c1f7951116074e6f6e92d4d8ff28a1abdc9"
fi
CURRENTVER=`git rev-parse --verify HEAD`
UPDATECHECK=`curl -s "https://dolphin-emu.org/update/check/v1/$BRANCH/$CURRENTVER/win"`
if [ "`echo $UPDATECHECK | jq -r .status`" = "outdated" ]; then
echo "Update detected."
HASH="`echo $UPDATECHECK | jq -r .new.hash`"
git fetch
git checkout "$HASH"
git submodule update --init --recursive
mkdir -p build && cd build
make -j`grep -c ^processor /proc/cpuinfo`
if [ ! "$?" = "0" ]; then
cmake .. -DLINUX_LOCAL_DEV=true
make -j`grep -c ^processor /proc/cpuinfo`
fi
ln -sf ../../Data/Sys Binaries/
printf "\nDolphin updated"
fi
nohup $DOLPHINDIR/build/Binaries/dolphin-emu >/dev/null &
sleep 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment