Last active
April 20, 2020 11:16
-
-
Save selfup/57e244fc56d6e3f9cb1ba4e2a4c9c841 to your computer and use it in GitHub Desktop.
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 | |
###### | |
# 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