Last active
February 13, 2019 06:50
-
-
Save TheDaftRick/d5e49ebbfd8f09ddfb66dc29e775ece1 to your computer and use it in GitHub Desktop.
FNA 1707 update for Terraria - Use if you're on 32bit
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
#!/bin/bash | |
# FNA Update Script | |
# Written by Ethan "flibitijibibo" Lee | |
# Edited by TheDaftRick - changed FNA version to 1707 | |
# | |
# Released under public domain. | |
# No warranty implied; use at your own risk. | |
# | |
# Linux guide: | |
# place fna1707.sh in your Terraria folder | |
# Open terminal in your Terraria folder and run these two commands | |
# chmod +x fna1707.sh | |
# ./fna1707.sh -autoarch | |
# | |
# Run this script in the game's executable folder. | |
# For OSX this will be Game.app/Contents/MacOS/. | |
# | |
# This script requires the following programs: | |
# - unzip | |
# - make | |
# - dmcs, the Mono C# compiler | |
# | |
# | |
# Be Smart. Be Safe. | |
set -e | |
# Move to script's directory | |
cd "`dirname "$0"`" | |
# Get the system architecture | |
UNAME=`uname` | |
ARCH=`uname -m` | |
# Grab native libraries | |
curl -O fna.flibitijibibo.com/archive/fnalibs.tar.bz2 | |
if [ "$UNAME" == "Darwin" ]; then | |
tar xvfj fnalibs.tar.bz2 osx | |
else | |
if [ "$ARCH" == "x86_64" ]; then | |
tar xvfj fnalibs.tar.bz2 lib64 | |
else | |
tar xvfj fnalibs.tar.bz2 lib | |
fi | |
fi | |
rm fnalibs.tar.bz2 # Wouldn't want to waste disk space, would we... | |
# Download and build latest FNA | |
#if [ -d "FNA" ]; then | |
# cd FNA | |
# git pull | |
# git submodule update | |
#else | |
# git clone --recursive git://github.com/FNA-XNA/FNA.git | |
# cd FNA | |
#fi | |
curl -O http://fna.flibitijibibo.com/archive/FNA-1707.zip | |
unzip FNA-1707.zip | |
cd FNA | |
make release | |
cd .. | |
cp FNA/bin/Release/* . | |
# We out. | |
echo Complete! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment