Fix Build
minecraft-pi-reborn/pipeline/head Something is wrong with the build of this commit Details

This commit is contained in:
TheBrokenRail 2022-06-10 21:59:57 -04:00
parent e8faee62fa
commit 49f8da2a80
14 changed files with 37 additions and 28 deletions

View File

@ -3,24 +3,13 @@ FROM debian:bullseye-slim
# Install
RUN \
apt-get update && \
apt-get install -y tini sed && \
apt-get install -y tini sed patchelf qemu-user && \
apt-get --fix-broken install -y && \
rm -rf /var/lib/apt/lists/*
# Copy AppImage
# Copy
RUN mkdir /app
ADD ./out/minecraft-pi-reborn-server-*-amd64.AppImage /app
# Extract AppImage
WORKDIR /app
RUN \
sed -i '0,/AI\x02/{s|AI\x02|\x00\x00\x00|}' ./*.AppImage && \
./*.AppImage --appimage-extract && \
rm -f ./*.AppImage
# Setup AppImage
ENV OWD=/data
ENV APPDIR=/app/squashfs-root
ADD ./out/server-amd64 /app
# Setup Working Directory
RUN mkdir /data
@ -28,4 +17,4 @@ WORKDIR /data
# Setup Entrypoint
ENTRYPOINT ["/usr/bin/tini", "--"]
CMD ["/app/squashfs-root/AppRun"]
CMD ["/app/usr/bin/minecraft-pi-reborn-server"]

View File

@ -1,13 +1,13 @@
#include <unistd.h>
#include <SDL/SDL.h>
#include <libreborn/libreborn.h>
#ifndef MCPI_HEADLESS_MODE
#define GLFW_INCLUDE_NONE
#include <GLFW/glfw3.h>
#endif
#include <libreborn/libreborn.h>
#include <media-layer/core.h>
#include <media-layer/internal.h>

View File

@ -1,3 +1,6 @@
// Config Needs To Load First
#include <libreborn/libreborn.h>
// Screenshot Code Is Useless In Headless Mode
#ifndef MCPI_HEADLESS_MODE
@ -12,8 +15,6 @@
#include <FreeImage.h>
#include <GLES/gl.h>
#include <libreborn/libreborn.h>
#include <media-layer/core.h>
// Ensure Screenshots Folder Exists

View File

@ -1,3 +1,6 @@
// Config Needs To Load First
#include <libreborn/libreborn.h>
#include <string>
#include <cstring>
#include <cstdio>
@ -6,7 +9,6 @@
#include <pthread.h>
#endif
#include <libreborn/libreborn.h>
#include <symbols/minecraft.h>
#ifndef MCPI_SERVER_MODE
#include <media-layer/core.h>

View File

@ -1,5 +1,7 @@
#pragma once
#include <libreborn/libreborn.h>
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -1,10 +1,14 @@
// Config Needs To Load First
#include <libreborn/libreborn.h>
// Chat UI Code Is Useless In Headless Mode
#ifndef MCPI_SERVER_MODE
#include <stdio.h>
#include <pthread.h>
#include <unistd.h>
#include <string.h>
#include <libreborn/libreborn.h>
#include <media-layer/core.h>
#include "chat.h"
@ -82,4 +86,5 @@ void chat_open() {
pthread_create(&thread, NULL, chat_thread, NULL);
}
}
#endif

View File

@ -1,5 +1,7 @@
#pragma once
#include <libreborn/libreborn.h>
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -1,3 +1,7 @@
// Config Needs To Load First
#include <libreborn/libreborn.h>
// Game Mode UI Code Is Useless In Headless Mode
#ifndef MCPI_SERVER_MODE
#include <pthread.h>
@ -6,7 +10,6 @@
#include <string>
#include <stdexcept>
#include <libreborn/libreborn.h>
#include <symbols/minecraft.h>
#include <media-layer/core.h>

View File

@ -1,3 +1,5 @@
#include <libreborn/libreborn.h>
#include "init.h"
#include <media-layer/core.h>

View File

@ -1,5 +1,7 @@
#pragma once
#include <libreborn/libreborn.h>
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -1,3 +1,6 @@
// Config Needs To Load First
#include <libreborn/libreborn.h>
#ifdef MCPI_SERVER_MODE
#error "External Server Code Requires Client Mode"
#endif
@ -7,7 +10,6 @@
#include <string>
#include <vector>
#include <libreborn/libreborn.h>
#include <symbols/minecraft.h>
#include "../home/home.h"

View File

@ -1,3 +1,6 @@
// Config Needs To Load First
#include <libreborn/libreborn.h>
#ifndef MCPI_SERVER_MODE
#error "Server Code Requires Server Mode"
#endif
@ -16,7 +19,6 @@
#include <SDL/SDL.h>
#include <libreborn/libreborn.h>
#include <symbols/minecraft.h>
#include "server_properties.h"

View File

@ -1,8 +1,5 @@
FROM buildpack-deps:bullseye
# Setup
ENV ARM_PACKAGES_SUPPORTED=1
# Install
ADD ./scripts/install-dependencies.sh /
RUN \

View File

@ -76,10 +76,10 @@ run() {
desktop-file-utils \
libgdk-pixbuf2.0-dev \
fakeroot \
strace \
fuse \
gtk-update-icon-cache \
shared-mime-info \
squashfs-tools \
zsync \
sed
# Install Queue