mirror of
https://git.zelz.net/catfoolyou/Project164.git
synced 2025-12-14 08:47:40 +00:00
Get going
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
16
build/scripts/Project164 → build/scripts/eaglercraft
Normal file → Executable file
16
build/scripts/Project164 → build/scripts/eaglercraft
Normal file → Executable file
@@ -18,7 +18,7 @@
|
||||
|
||||
##############################################################################
|
||||
#
|
||||
# Project164 start up script for POSIX generated by Gradle.
|
||||
# eaglercraft start up script for POSIX generated by Gradle.
|
||||
#
|
||||
# Important for running:
|
||||
#
|
||||
@@ -27,7 +27,7 @@
|
||||
# bash, then to run this script, type that shell name before the whole
|
||||
# command line, like:
|
||||
#
|
||||
# ksh Project164
|
||||
# ksh eaglercraft
|
||||
#
|
||||
# Busybox and similar reduced shells will NOT work, because this script
|
||||
# requires all of these POSIX shell features:
|
||||
@@ -48,7 +48,7 @@
|
||||
# options in "$@", and eventually passing that to Java.
|
||||
#
|
||||
# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
|
||||
# and PROJECT164_OPTS) rely on word-splitting, this is performed explicitly;
|
||||
# and EAGLERCRAFT_OPTS) rely on word-splitting, this is performed explicitly;
|
||||
# see the in-line comments for details.
|
||||
#
|
||||
# There are tweaks for specific operating systems such as AIX, CygWin,
|
||||
@@ -85,7 +85,7 @@ done
|
||||
APP_BASE_NAME=${0##*/}
|
||||
APP_HOME=$( cd "${APP_HOME:-./}.." && pwd -P ) || exit
|
||||
|
||||
# Add default JVM options here. You can also use JAVA_OPTS and PROJECT164_OPTS to pass JVM options to this script.
|
||||
# Add default JVM options here. You can also use JAVA_OPTS and EAGLERCRAFT_OPTS to pass JVM options to this script.
|
||||
DEFAULT_JVM_OPTS='"-Djava.library.path=lwjgl-rundir"'
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
@@ -114,7 +114,7 @@ case "$( uname )" in #(
|
||||
NONSTOP* ) nonstop=true ;;
|
||||
esac
|
||||
|
||||
CLASSPATH=$APP_HOME/lib/Project164.jar:$APP_HOME/lib/commons-lang3-3.1.jar:$APP_HOME/lib/bcprov-jdk15on-1.47.jar:$APP_HOME/lib/codecjorbis-20101023.jar:$APP_HOME/lib/librarylwjglopenal-20100824.jar:$APP_HOME/lib/lwjgl_util-2.9.0.jar:$APP_HOME/lib/jopt-simple-4.5.jar:$APP_HOME/lib/libraryjavasound-20101123.jar:$APP_HOME/lib/codecwav-20101023.jar:$APP_HOME/lib/guava-14.0.jar:$APP_HOME/lib/soundsystem-20120107.jar:$APP_HOME/lib/lwjgl-platform-2.9.0-natives-linux.jar:$APP_HOME/lib/gson-2.2.2.jar:$APP_HOME/lib/argo-2.25_fixed.jar:$APP_HOME/lib/commons-io-2.4.jar:$APP_HOME/lib/lwjgl-2.9.0.jar
|
||||
CLASSPATH=$APP_HOME/lib/eaglercraft.jar:$APP_HOME/lib/librarylwjglopenal-20100824.jar:$APP_HOME/lib/commons-io-2.4.jar:$APP_HOME/lib/argo-2.25_fixed.jar:$APP_HOME/lib/lwjgl_util-2.9.0.jar:$APP_HOME/lib/libraryjavasound-20101123.jar:$APP_HOME/lib/codecwav-20101023.jar:$APP_HOME/lib/soundsystem-20120107.jar:$APP_HOME/lib/codecjorbis-20101023.jar:$APP_HOME/lib/gson-2.2.2.jar:$APP_HOME/lib/jopt-simple-4.5.jar:$APP_HOME/lib/lwjgl-2.9.0.jar:$APP_HOME/lib/guava-14.0.jar:$APP_HOME/lib/lwjgl-platform-2.9.0-natives-linux.jar:$APP_HOME/lib/commons-lang3-3.1.jar:$APP_HOME/lib/bcprov-jdk15on-1.47.jar
|
||||
|
||||
|
||||
# Determine the Java command to use to start the JVM.
|
||||
@@ -164,7 +164,7 @@ fi
|
||||
# * -classpath
|
||||
# * -D...appname settings
|
||||
# * --module-path (only if needed)
|
||||
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and PROJECT164_OPTS environment variables.
|
||||
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and EAGLERCRAFT_OPTS environment variables.
|
||||
|
||||
# For Cygwin or MSYS, switch paths to Windows format before running java
|
||||
if "$cygwin" || "$msys" ; then
|
||||
@@ -198,7 +198,7 @@ if "$cygwin" || "$msys" ; then
|
||||
fi
|
||||
|
||||
# Collect all arguments for the java command;
|
||||
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $PROJECT164_OPTS can contain fragments of
|
||||
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $EAGLERCRAFT_OPTS can contain fragments of
|
||||
# shell script including quotes and variable substitutions, so put them in
|
||||
# double quotes to make sure that they get re-expanded; and
|
||||
# * put everything else in single quotes, so that it's not re-expanded.
|
||||
@@ -234,7 +234,7 @@ fi
|
||||
#
|
||||
|
||||
eval "set -- $(
|
||||
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $PROJECT164_OPTS" |
|
||||
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $EAGLERCRAFT_OPTS" |
|
||||
xargs -n1 |
|
||||
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
|
||||
tr '\n' ' '
|
||||
@@ -17,7 +17,7 @@
|
||||
@if "%DEBUG%"=="" @echo off
|
||||
@rem ##########################################################################
|
||||
@rem
|
||||
@rem Project164 startup script for Windows
|
||||
@rem eaglercraft startup script for Windows
|
||||
@rem
|
||||
@rem ##########################################################################
|
||||
|
||||
@@ -33,7 +33,7 @@ set APP_HOME=%DIRNAME%..
|
||||
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
||||
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
||||
|
||||
@rem Add default JVM options here. You can also use JAVA_OPTS and PROJECT164_OPTS to pass JVM options to this script.
|
||||
@rem Add default JVM options here. You can also use JAVA_OPTS and EAGLERCRAFT_OPTS to pass JVM options to this script.
|
||||
set DEFAULT_JVM_OPTS="-Djava.library.path=lwjgl-rundir"
|
||||
|
||||
@rem Find java.exe
|
||||
@@ -68,22 +68,22 @@ goto fail
|
||||
:execute
|
||||
@rem Setup the command line
|
||||
|
||||
set CLASSPATH=%APP_HOME%\lib\Project164.jar;%APP_HOME%\lib\commons-lang3-3.1.jar;%APP_HOME%\lib\bcprov-jdk15on-1.47.jar;%APP_HOME%\lib\codecjorbis-20101023.jar;%APP_HOME%\lib\librarylwjglopenal-20100824.jar;%APP_HOME%\lib\lwjgl_util-2.9.0.jar;%APP_HOME%\lib\jopt-simple-4.5.jar;%APP_HOME%\lib\libraryjavasound-20101123.jar;%APP_HOME%\lib\codecwav-20101023.jar;%APP_HOME%\lib\guava-14.0.jar;%APP_HOME%\lib\soundsystem-20120107.jar;%APP_HOME%\lib\lwjgl-platform-2.9.0-natives-linux.jar;%APP_HOME%\lib\gson-2.2.2.jar;%APP_HOME%\lib\argo-2.25_fixed.jar;%APP_HOME%\lib\commons-io-2.4.jar;%APP_HOME%\lib\lwjgl-2.9.0.jar
|
||||
set CLASSPATH=%APP_HOME%\lib\eaglercraft.jar;%APP_HOME%\lib\librarylwjglopenal-20100824.jar;%APP_HOME%\lib\commons-io-2.4.jar;%APP_HOME%\lib\argo-2.25_fixed.jar;%APP_HOME%\lib\lwjgl_util-2.9.0.jar;%APP_HOME%\lib\libraryjavasound-20101123.jar;%APP_HOME%\lib\codecwav-20101023.jar;%APP_HOME%\lib\soundsystem-20120107.jar;%APP_HOME%\lib\codecjorbis-20101023.jar;%APP_HOME%\lib\gson-2.2.2.jar;%APP_HOME%\lib\jopt-simple-4.5.jar;%APP_HOME%\lib\lwjgl-2.9.0.jar;%APP_HOME%\lib\guava-14.0.jar;%APP_HOME%\lib\lwjgl-platform-2.9.0-natives-linux.jar;%APP_HOME%\lib\commons-lang3-3.1.jar;%APP_HOME%\lib\bcprov-jdk15on-1.47.jar
|
||||
|
||||
|
||||
@rem Execute Project164
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %PROJECT164_OPTS% -classpath "%CLASSPATH%" net.minecraft.client.main.Main %*
|
||||
@rem Execute eaglercraft
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %EAGLERCRAFT_OPTS% -classpath "%CLASSPATH%" net.minecraft.client.main.Main %*
|
||||
|
||||
:end
|
||||
@rem End local scope for the variables with windows NT shell
|
||||
if %ERRORLEVEL% equ 0 goto mainEnd
|
||||
|
||||
:fail
|
||||
rem Set variable PROJECT164_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||
rem Set variable EAGLERCRAFT_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||
rem the _cmd.exe /c_ return code!
|
||||
set EXIT_CODE=%ERRORLEVEL%
|
||||
if %EXIT_CODE% equ 0 set EXIT_CODE=1
|
||||
if not ""=="%PROJECT164_EXIT_CONSOLE%" exit %EXIT_CODE%
|
||||
if not ""=="%EAGLERCRAFT_EXIT_CONSOLE%" exit %EXIT_CODE%
|
||||
exit /b %EXIT_CODE%
|
||||
|
||||
:mainEnd
|
||||
Binary file not shown.
Reference in New Issue
Block a user