29 lines
910 B
Bash
Executable File
29 lines
910 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
rm ../install-all # remove install file
|
|
|
|
#
|
|
# Install base Dependencies
|
|
#
|
|
|
|
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
|
sudo apt update
|
|
sudo apt install build-essential git gcc-multilib g++-multilib software-properties-common gcc-snapshot g++-6-multilib gcc-6 g++-6 libssl-dev:i386 libboost-all-dev libc6-dev:i386 gdb libsdl2-dev libglew-dev:i386 libglew-dev libfreetype6-dev libfreetype6-dev:i386 cmake libpng-dev libssl-dev cmake gcc-multilib g++-multilib -y
|
|
|
|
#
|
|
# Update cathook
|
|
#
|
|
|
|
git fetch # fetch github repo for udpates
|
|
git pull origin # pull changes from github
|
|
git submodule update --remote --recursive # update submodules
|
|
|
|
#
|
|
# Build cathook
|
|
#
|
|
|
|
mkdir build;cd build #create a directory for building cathook
|
|
cmake ..;make -j$(grep -c '^processor' /proc/cpuinfo) # create makefile and build using all available threads
|
|
sudo make data # create /opt/cathook/data
|
|
cd ..; cd ..
|