fix builds
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good

This commit is contained in:
austin 2024-08-16 09:33:27 -04:00
parent 74167038f7
commit 3782145fb3
23 changed files with 32 additions and 9 deletions

7
README.md Normal file
View File

@ -0,0 +1,7 @@
# Building
## Windows
Install gitbash, choco, Eclipse Temurin 17, maven, 7zip
From choco, install mingw, make
run build.sh
Build will be in ./build

View File

@ -1,14 +1,26 @@
#DEPENDENCIES #DEPENDENCIES
#Windows: JDK17, Maven, GitBash, 7zip, MinGW, GCC, Make #Windows: JDK17, Maven, GitBash, 7zip, choco, GCC, Make
#Linux: JDK17, Maven, git, bash, unzip, GCC, Make #Linux: JDK17, Maven, git, bash, unzip, GCC, Make
JRE_URL=""
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
JRE_URL=""
echo "Must specify url to pull jre from!"
exit 1
elif [[ "$OSTYPE" == "msys" ]]; then
JRE_URL="https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jre_x64_windows_hotspot_17.0.12_7.zip"
else
echo "Unsupported operating system!"
exit 1
fi
#completely clear build directory #completely clear build directory
rm -rf ./build rm -rf ./build
#build directory structure #build directory structure
mkdir build mkdir build
mkdir ./build/assets mkdir ./build/assets
#compile project and copy into build dir #compile project and copy into build dir
mvn package mvn clean package
cp ./target/Renderer-0.1.jar ./build/engine.jar cp ./target/Renderer-0.1.jar ./build/engine.jar
#build launcher #build launcher
cd ./launcher/ cd ./launcher/
@ -17,5 +29,8 @@ make build
cd .. cd ..
#copy launcher, jdk, and assets into build dir #copy launcher, jdk, and assets into build dir
mv ./launcher/launcher.exe ./build/ mv ./launcher/launcher.exe ./build/
unzip ./launcher/jdk.zip -d ./build/ curl -L $JRE_URL >> jdk.zip
unzip ./jdk.zip -d ./build/
mv ./build/jdk-* ./build/jdk
rm -f ./jdk.zip
cp -r ./assets/* ./build/assets/ cp -r ./assets/* ./build/assets/

View File

@ -1,3 +1,3 @@
#maven.buildNumber.plugin properties file #maven.buildNumber.plugin properties file
#Fri Aug 16 07:57:34 EDT 2024 #Fri Aug 16 09:31:36 EDT 2024
buildNumber=233 buildNumber=241

View File

@ -19,5 +19,5 @@
+ bug fixes + bug fixes
Fix grass rendering distance Fix grass rendering distance
Fix audio freakout when attack while jumping/falling (should block regular attack while aerial) Fix server ground movement tree playing animation over falling animation
Fix server ground movement tree playing animation over falling animation

View File

@ -587,6 +587,7 @@ Fix viewmodel animation framerate
(08/16/2024) (08/16/2024)
Fix server not starting Fix server not starting
Fix client disconnection causing wrong socket to be closed from server Fix client disconnection causing wrong socket to be closed from server
Fix build tooling, scripts, etc
# TODO # TODO

View File

@ -8,4 +8,4 @@ build: ./src/main.c
gcc ./src/main.c -o launcher gcc ./src/main.c -o launcher
clean: clean:
rm ./launcher.exe rm -f ./launcher.exe

Binary file not shown.

View File

@ -241,7 +241,7 @@ public class FileUtils {
*/ */
public static String getSQLScriptFileAsString(String pathName) throws IOException { public static String getSQLScriptFileAsString(String pathName) throws IOException {
String sanitizedFilePath = sanitizeFilePath(pathName); String sanitizedFilePath = sanitizeFilePath(pathName);
File targetFile = new File("./src/main/sql" + sanitizedFilePath); File targetFile = new File("./assets/DB/" + sanitizedFilePath);
return Files.readString(targetFile.toPath()); return Files.readString(targetFile.toPath());
} }