Skip to content

Instantly share code, notes, and snippets.

@selfup
Last active April 20, 2020 11:16
Show Gist options
  • Save selfup/57e244fc56d6e3f9cb1ba4e2a4c9c841 to your computer and use it in GitHub Desktop.
Save selfup/57e244fc56d6e3f9cb1ba4e2a4c9c841 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
######
# This script assumes you are on Ubuntu 18.04 LTS
# Everything will be setup/installed in your home dir
######
set -e
cd $HOME
pwd
if [[ echo $(haxe -version) -eq '4.0.5' ]]
then
echo 'haxe is installed - skipping haxe setup'
else
echo 'setting up haxelib'
sudo add-apt-repository ppa:haxe/releases -y
sudo apt-get update
sudo apt-get install haxe -y
mkdir $HOME/haxelib
haxelib setup $HOME/haxelib
fi
echo 'installing deps for hashlink'
sudo apt-get install libpng-dev libturbojpeg-dev libvorbis-dev libopenal-dev libsdl2-dev libmbedtls-dev libuv1-dev
echo 'deps installed'
sleep 1s
echo 'cloning hashlink'
git clone https://github.com/HaxeFoundation/hashlink
cd hashlink
echo 'building hashlink from source'
make
make install
cd -
echo 'done!'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment