Last active
December 13, 2020 11:59
-
-
Save kam1kaze/113ac9e135a270ba6581aa6541a0c460 to your computer and use it in GitHub Desktop.
Install Quake 3 on Linux or OSX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -ex | |
if [[ "$OSTYPE" == "linux-gnu" ]]; then | |
# Linux | |
sudo apt-get update && sudo apt-get install ioquake3 | |
mkdir -p ~/.q3a/baseq3 && pushd "$_" | |
elif [[ "$OSTYPE" == "darwin"* ]]; then | |
# Mac OSX | |
type brew || | |
curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install | ruby | |
brew cask install ioquake3 | |
pushd ~/Library/Application\ Support/Quake3/baseq3 | |
fi | |
COUNT=0 | |
while [ $COUNT -lt 9 ]; do | |
curl -LOJC - https://raw.githubusercontent.com/nrempel/q3-server/master/baseq3/pak$COUNT.pk3 | |
# curl -LOJC - http://files.anitalink.com/gamecache/quake3/baseq3/pak$COUNT.pk3 | |
# curl -LOJC - http://game.pioneernet.ru/dl/q3/files/pk3/pak$COUNT.pk3 | |
let COUNT+=1 | |
done | |
pushd .. | |
curl -LOJC - http://playmorepromode.org/CPMA148.zip | |
unzip CPMA148.zip && rm CPMA148.zip | |
popd | |
popd | |
echo 'ioquake3 has been installed' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!