Skip to content

Commit

Permalink
up version to 0.10.0.2, fixes for Mac and Linux servers
Browse files Browse the repository at this point in the history
  • Loading branch information
JavidPack committed Jun 14, 2017
1 parent e3fe9e3 commit a86e4fc
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 9 deletions.
2 changes: 1 addition & 1 deletion patches/tModLoader/Terraria.ModLoader/ModLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static class ModLoader
{
//change Terraria.Main.DrawMenu change drawn version number string to include this
/// <summary>The name and version number of tModLoader.</summary>
public static readonly Version version = new Version(0, 10, 0, 1);
public static readonly Version version = new Version(0, 10, 0, 2);
public static readonly string versionedName = "tModLoader v" + version;
#if WINDOWS
public static readonly bool windows = true;
Expand Down
6 changes: 3 additions & 3 deletions solutions/CompleteRelease.bat
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
:: After Pulling, Patching, and making sure the version number is changed in src, this bat will compile and create zips for all release.
:: It will also create a zip for ExampleMod

set version=v0.10.0.1
set version=v0.10.0.2
set destinationFolder=.\tModLoader %version% Release

:: Compile/Build exe
Expand Down Expand Up @@ -51,7 +51,7 @@ call zipjs.bat zipDirItems -source "%destinationFolder%\tModLoader Windows %vers
:: Mac release
copy ..\src\tModLoader\bin\x86\MacRelease\Terraria.exe "%destinationFolder%\tModLoader Mac %version%\Terraria.exe" /y
copy ..\src\tModLoader\bin\x86\MacServerRelease\Terraria.exe "%destinationFolder%\tModLoader Mac %version%\tModLoaderServer.exe" /y
copy ReleaseExtras\tModLoaderServer "%destinationFolder%\tModLoader Mac %version%\tModLoaderServer" /y
copy ReleaseExtras\tModLoaderServer_Mac "%destinationFolder%\tModLoader Mac %version%\tModLoaderServer" /y
copy ReleaseExtras\tModLoaderServer.bin.osx "%destinationFolder%\tModLoader Mac %version%\tModLoaderServer.bin.osx" /y
:: ModCompile
copy ..\src\tModLoader\bin\x86\WindowsRelease\Terraria.exe "%destinationFolder%\tModLoader Mac %version%\ModCompile\tModLoaderWindows.exe" /y
Expand All @@ -75,7 +75,7 @@ call zipjs.bat zipDirItems -source "%destinationFolder%\tModLoader Mac %version%
:: Linux release
copy ..\src\tModLoader\bin\x86\LinuxRelease\Terraria.exe "%destinationFolder%\tModLoader Linux %version%\Terraria.exe" /y
copy ..\src\tModLoader\bin\x86\LinuxServerRelease\Terraria.exe "%destinationFolder%\tModLoader Linux %version%\tModLoaderServer.exe" /y
copy ReleaseExtras\tModLoaderServer "%destinationFolder%\tModLoader Linux %version%\tModLoaderServer" /y
copy ReleaseExtras\tModLoaderServer_Linux "%destinationFolder%\tModLoader Linux %version%\tModLoaderServer" /y
copy ReleaseExtras\tModLoaderServer.bin.x86 "%destinationFolder%\tModLoader Linux %version%\tModLoaderServer.bin.x86" /y
copy ReleaseExtras\tModLoaderServer.bin.x86_64 "%destinationFolder%\tModLoader Linux %version%\tModLoaderServer.bin.x86_64" /y
:: ModCompile
Expand Down
Binary file modified solutions/ReleaseExtras/tModLoaderServer.bin.osx
Binary file not shown.
Binary file modified solutions/ReleaseExtras/tModLoaderServer.bin.x86
Binary file not shown.
Binary file modified solutions/ReleaseExtras/tModLoaderServer.bin.x86_64
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,37 @@ cd "`dirname "$0"`"
# Get the system architecture
UNAME=`uname`
ARCH=`uname -m`
BASENAME=`basename "$0"`

# MonoKickstart picks the right libfolder, so just execute the right binary.
if [ "$UNAME" == "Darwin" ]; then
# ... Except on OSX.
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:./osx/
./tModLoaderServer.bin.osx $@
ext=osx
else
ext=x86
if [ "$ARCH" == "x86_64" ]; then
./tModLoaderServer.bin.x86_64 $@
ext=x86_64
else
./tModLoaderServer.bin.x86 $@
ext=x86
fi
for arg in "$@"
do
case "$arg" in
-x86) ext=x86
;;
-x64) ext=x86_64
;;
-autoarch)
if [ "$ARCH" == "x86_64" ]; then
ext=x86_64
else
ext=x86
fi
;;
esac
done
fi


export MONO_IOMAP=all
./${BASENAME}.bin.${ext} $@

18 changes: 18 additions & 0 deletions solutions/ReleaseExtras/tModLoaderServer_Mac
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash
# MonoKickstart Shell Script
# Written by Ethan "flibitijibibo" Lee

cd "`dirname "$0"`"

UNAME=`uname`
ARCH=`uname -m`

if [ "$UNAME" == "Darwin" ]; then
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:./osx/

if [ "$STEAM_DYLD_INSERT_LIBRARIES" != "" ] && [ "$DYLD_INSERT_LIBRARIES" == "" ]; then
export DYLD_INSERT_LIBRARIES="$STEAM_DYLD_INSERT_LIBRARIES"
fi

./TerrariaServer.bin.osx $@
fi

0 comments on commit a86e4fc

Please sign in to comment.