#!/bin/sh

cd ..

mkdir ~/haxelib && haxelib setup ~/haxelib

echo "Installing dependencies..."

haxelib git lime https://github.com/AlejoGDOfficial/Lime
haxelib install openfl 9.4.1
haxelib install flixel 6.1.0 --skip-dependencies
haxelib install flixel-addons 3.3.2
haxelib install flixel-ui 2.6.4
haxelib install flixel-tools 1.5.1
haxelib install tjson 1.4.0
haxelib git away3d https://github.com/ALE-Psych-Crew/away3d --skip-dependencies
haxelib git hxcpp https://github.com/AlejoGDOfficial/MobilePorting-hxcpp --skip-dependencies
haxelib git flxanimate https://github.com/Dot-Stuff/flxanimate 7da385ca7fd8d8067aac03bc39798d37c5598e45
haxelib install hxluajit 1.0.5 --skip-dependencies
haxelib install hxluajit-wrapper 1.0.0 --skip-dependencies
haxelib install hxdiscord_rpc 1.3.0 --skip-dependencies
haxelib install hxvlc 2.2.2 --skip-dependencies
haxelib git rulescript https://github.com/Kriptel/RuleScript d5316e96583388d746e080e301e7bf7193cfca98 --skip-dependencies
haxelib git hscript https://github.com/HaxeFoundation/hscript 92ffe9c519bbccf783df0b3400698c5b3cc645ef
haxelib git ale-ui https://github.com/ALE-Psych-Crew/ALE-UI --skip-dependencies
haxelib git flixel-away3d https://github.com/ALE-Psych-Crew/Flixel-Away-3D --skip-dependencies
haxelib install sl-windows-api 1.1.0

echo "Finished!"