From 51c12db49cffdfcbf12a09ab266469647d215ae8 Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Tue, 30 Nov 2021 21:40:02 -0500 Subject: [PATCH] Rename Package --- CMakeLists.txt | 8 ++++---- Dockerfile | 2 +- Jenkinsfile | 4 ++-- README.md | 2 +- docs/DEDICATED_SERVER.md | 6 +++--- docs/INSTALL.md | 2 +- docs/SOUND.md | 2 +- example-mods/README.md | 4 ++-- example-mods/chat-commands/CMakeLists.txt | 2 +- example-mods/expanded-creative/CMakeLists.txt | 2 +- example-mods/recipes/CMakeLists.txt | 2 +- launcher/src/bootstrap.c | 4 ++-- scripts/package.sh | 4 ++-- scripts/test.sh | 8 ++++---- 14 files changed, 26 insertions(+), 26 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4c4c018cd..1ffd052d1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,7 +39,7 @@ if(NOT MCPI_HEADLESS_MODE) endif() # App ID -set(DEFAULT_APP_ID "com.thebrokenrail.MCPIReborn") +set(DEFAULT_APP_ID "com.thebrokenrail.MCPIRebornLegacy") if(MCPI_SERVER_MODE) string(APPEND DEFAULT_APP_ID "Server") else() @@ -48,7 +48,7 @@ endif() set(MCPI_APP_ID "${DEFAULT_APP_ID}" CACHE STRING "App ID") # App Title -set(MCPI_APP_BASE_TITLE "Minecraft: Pi Edition: Reborn" CACHE STRING "Base App Title") +set(MCPI_APP_BASE_TITLE "Minecraft: Pi Edition: Reborn Legacy" CACHE STRING "Base App Title") set(DEFAULT_APP_TITLE "${MCPI_APP_BASE_TITLE}") if(MCPI_SERVER_MODE) string(APPEND DEFAULT_APP_TITLE " (Server)") @@ -58,7 +58,7 @@ endif() set(MCPI_APP_TITLE "${DEFAULT_APP_TITLE}" CACHE STRING "App Title") # Specify Variant Name -set(MCPI_VARIANT_NAME "minecraft-pi-reborn") +set(MCPI_VARIANT_NAME "minecraft-pi-reborn-legacy") if(MCPI_SERVER_MODE) string(APPEND MCPI_VARIANT_NAME "-server") else() @@ -211,7 +211,7 @@ if(BUILD_ARM_COMPONENTS) # Compile Flags "${COMPILE_FLAGS_SETUP}\n" # Log - "message(STATUS \"Using Reborn SDK v${MCPI_VERSION}\")\n" + "message(STATUS \"Using Reborn Legacy SDK v${MCPI_VERSION}\")\n" # Include Targets "include(\"\${CMAKE_CURRENT_LIST_DIR}/sdk-targets.cmake\")\n" ) diff --git a/Dockerfile b/Dockerfile index ad9cd984f..bba50ae81 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,4 +16,4 @@ WORKDIR /data # Setup Entrypoint ENTRYPOINT ["/usr/bin/tini", "--"] -CMD ["/app/usr/bin/minecraft-pi-reborn-server"] +CMD ["/app/usr/bin/minecraft-pi-reborn-legacy-server"] diff --git a/Jenkinsfile b/Jenkinsfile index ad2dc96ae..389d795b6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,11 +24,11 @@ pipeline { sh 'apt-get update && apt-get install -y docker.io' sh 'rm -rf ./out/server-amd64' sh './scripts/build.sh server amd64' - sh 'docker build --no-cache --tag thebrokenrail/minecraft-pi-reborn-server .' + sh 'docker build --no-cache --tag thebrokenrail/minecraft-pi-reborn-legacy-server .' withCredentials([usernamePassword(credentialsId: 'docker_hub_login', usernameVariable: 'DOCKER_HUB_USERNAME', passwordVariable: 'DOCKER_HUB_PASSWORD')]) { sh 'docker login -u "${DOCKER_HUB_USERNAME}" -p "${DOCKER_HUB_PASSWORD}"' } - sh 'docker push thebrokenrail/minecraft-pi-reborn-server' + sh 'docker push thebrokenrail/minecraft-pi-reborn-legacy-server' } } } diff --git a/README.md b/README.md index c5b0efebb..39c4ac4d6 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Start Screen

-# Minecraft: Pi Edition: Reborn +# Minecraft: Pi Edition: Reborn Legacy Minecraft: Pi Edition Modding Project ## Documentation diff --git a/docs/DEDICATED_SERVER.md b/docs/DEDICATED_SERVER.md index a9242fadf..10fe0572b 100644 --- a/docs/DEDICATED_SERVER.md +++ b/docs/DEDICATED_SERVER.md @@ -1,15 +1,15 @@ # Dedicated Server The dedicated server is a version of Minecraft: Pi Edition modified to run in a headless environment. It loads settings from a ``server.properties`` file. -This server is also compatible with MCPE Alpha v0.6.1[^1]. +This server is also compatible with MCPE Alpha v0.5.0[^1]. ## Setup ### Debian Package -To use, install and run ``minecraft-pi-reborn-server``. It will generate the world and ``server.properties`` in the current directory. +To use, install and run ``minecraft-pi-reborn-legacy-server``. It will generate the world and ``server.properties`` in the current directory. ### Docker Image -An official Docker image is also provided: [thebrokenrail/minecraft-pi-reborn-server](https://hub.docker.com/r/thebrokenrail/minecraft-pi-reborn-server). +An official Docker image is also provided: [thebrokenrail/minecraft-pi-reborn-legacy-server](https://hub.docker.com/r/thebrokenrail/minecraft-pi-reborn-legacy-server). ## Server Limitations * Player data is not saved because of limitations with MCPE LAN worlds diff --git a/docs/INSTALL.md b/docs/INSTALL.md index 5f49bfc17..5744c1e19 100644 --- a/docs/INSTALL.md +++ b/docs/INSTALL.md @@ -1,7 +1,7 @@ # Installation ## AppImage -Download packages [here](https://jenkins.thebrokenrail.com/job/minecraft-pi-reborn/job/master/lastSuccessfulBuild/artifact/out/). +Download packages [here](https://jenkins.thebrokenrail.com/job/minecraft-pi-reborn/job/legacy/lastSuccessfulBuild/artifact/out/). ### System Requirements * Debian Buster/Ubuntu 18.04 Or Higher diff --git a/docs/SOUND.md b/docs/SOUND.md index f438a1d80..4d5b020f0 100644 --- a/docs/SOUND.md +++ b/docs/SOUND.md @@ -1,7 +1,7 @@ # Sound One of MCPI-Reborn's main modifications is a sound-engine since MCPI doesn't include one by default[^1]. However, it can't be used out-of-box because MCPI doesn't contain any sound data and MCPI-Reborn can't include it because of copyright. -MCPE's sound data can be extracted from any MCPE v0.6.1[^2] APK file, just place its `libminecraftpe.so` into `~/.minecraft-pi/overrides` and you should have sound! +MCPE's sound data can be extracted from any MCPE v0.5.0[^2] APK file, just place its `libminecraftpe.so` into `~/.minecraft-pi/overrides` and you should have sound! [^1]: The mute button is just leftover code from MCPE, it doesn't actually do anything in un-modded MCPI, however it is connected to MCPI-Reborn's sound-engine. [^2]: This isn't a hard limit, an MCPE v0.8.1 APK would probably work, but don't rely on it. diff --git a/example-mods/README.md b/example-mods/README.md index 223da9606..6b888cdd0 100644 --- a/example-mods/README.md +++ b/example-mods/README.md @@ -8,12 +8,12 @@ This is an example of a mod that can be built using the modding SDK. ## The SDK The modding SDK is a collection of exported CMake targets that allows anyone to create their own MCPI mod! -The SDK is copied to ``~/.minecraft-pi/sdk/lib/minecraft-pi-reborn-client/sdk/sdk.cmake`` whenever MCPI-Reborn is started. +The SDK is copied to ``~/.minecraft-pi/sdk/lib/minecraft-pi-reborn-legacy-client/sdk/sdk.cmake`` whenever MCPI-Reborn is started. ## How do I use this? ```sh mkdir build cd build cmake .. -cp libexpanded-creative.so ~/.minecraft-pi/mods +cp libexpanded-creative.so ~/.minecraft-pi/legacy-mods ``` diff --git a/example-mods/chat-commands/CMakeLists.txt b/example-mods/chat-commands/CMakeLists.txt index 84fef6a84..8e4761eeb 100644 --- a/example-mods/chat-commands/CMakeLists.txt +++ b/example-mods/chat-commands/CMakeLists.txt @@ -8,7 +8,7 @@ set(CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++) project(chat-commands) # Include SDK -include("$ENV{HOME}/.minecraft-pi/sdk/lib/minecraft-pi-reborn-client/sdk/sdk.cmake") +include("$ENV{HOME}/.minecraft-pi/sdk/lib/minecraft-pi-reborn-legacy-client/sdk/sdk.cmake") # Build add_library(chat-commands SHARED chat-commands.cpp) diff --git a/example-mods/expanded-creative/CMakeLists.txt b/example-mods/expanded-creative/CMakeLists.txt index 258f3e837..e3d512f36 100644 --- a/example-mods/expanded-creative/CMakeLists.txt +++ b/example-mods/expanded-creative/CMakeLists.txt @@ -8,7 +8,7 @@ set(CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++) project(expanded-creative) # Include SDK -include("$ENV{HOME}/.minecraft-pi/sdk/lib/minecraft-pi-reborn-client/sdk/sdk.cmake") +include("$ENV{HOME}/.minecraft-pi/sdk/lib/minecraft-pi-reborn-legacy-client/sdk/sdk.cmake") # Build add_library(expanded-creative SHARED expanded-creative.cpp) diff --git a/example-mods/recipes/CMakeLists.txt b/example-mods/recipes/CMakeLists.txt index cdf6bce89..be02e9199 100644 --- a/example-mods/recipes/CMakeLists.txt +++ b/example-mods/recipes/CMakeLists.txt @@ -8,7 +8,7 @@ set(CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++) project(recipes) # Include SDK -include("$ENV{HOME}/.minecraft-pi/sdk/lib/minecraft-pi-reborn-client/sdk/sdk.cmake") +include("$ENV{HOME}/.minecraft-pi/sdk/lib/minecraft-pi-reborn-legacy-client/sdk/sdk.cmake") # Build add_library(recipes SHARED recipes.cpp) diff --git a/launcher/src/bootstrap.c b/launcher/src/bootstrap.c index 75598c9d4..41cb03383 100644 --- a/launcher/src/bootstrap.c +++ b/launcher/src/bootstrap.c @@ -108,7 +108,7 @@ void pre_bootstrap(int argc, char *argv[]) { for (int i = 1; i < argc; i++) { if (strcmp(argv[i], "--version") == 0 || strcmp(argv[i], "-v") == 0) { // Print - printf("Reborn v%s\n", MCPI_VERSION); + printf("Reborn Legacy v%s\n", MCPI_VERSION); fflush(stdout); exit(EXIT_SUCCESS); } @@ -407,7 +407,7 @@ void bootstrap(int argc, char *argv[]) { { // Get Mods Folder char *mods_folder = NULL; - safe_asprintf(&mods_folder, "%s" HOME_SUBDIRECTORY_FOR_GAME_DATA "/mods/", getenv("HOME")); + safe_asprintf(&mods_folder, "%s" HOME_SUBDIRECTORY_FOR_GAME_DATA "/legacy-mods/", getenv("HOME")); // Load Mods From ./mods load(&preload, mods_folder); // Free Mods Folder diff --git a/scripts/package.sh b/scripts/package.sh index 9e85e065b..36b28a01a 100755 --- a/scripts/package.sh +++ b/scripts/package.sh @@ -3,8 +3,8 @@ set -e # Prepare -NAME='minecraft-pi-reborn' -BRANCH='master' +NAME='minecraft-pi-reborn-legacy' +BRANCH='legacy' # Build ./scripts/setup.sh "$1" "$2" -DMCPI_IS_APPIMAGE_BUILD=ON diff --git a/scripts/test.sh b/scripts/test.sh index 053065fb0..3bb561f0e 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -7,7 +7,7 @@ ARCH="$(dpkg-architecture -qDEB_BUILD_ARCH)" ./scripts/setup.sh server "${ARCH}" ./scripts/build.sh server "${ARCH}" -# Add minecraft-pi-reborn-server To PATH +# Add minecraft-pi-reborn-legacy-server To PATH export PATH="$(pwd)/out/server-$(dpkg-architecture -qDEB_BUILD_ARCH)/usr/bin:${PATH}" # Create Test Directory @@ -16,14 +16,14 @@ mkdir -p build/test # Run Test cd build/test -minecraft-pi-reborn-server --only-generate +minecraft-pi-reborn-legacy-server --only-generate cd ../../ # Build Benchmark ./scripts/setup.sh client "${ARCH}" -DMCPI_HEADLESS_MODE=ON ./scripts/build.sh client "${ARCH}" -# Add minecraft-pi-reborn-client To PATH +# Add minecraft-pi-reborn-legacy-client To PATH export PATH="$(pwd)/out/client-$(dpkg-architecture -qDEB_BUILD_ARCH)/usr/bin:${PATH}" # Skip Root Check @@ -31,4 +31,4 @@ export _MCPI_SKIP_ROOT_CHECK=1 # Run Benchmark export HOME="$(pwd)/build/test" -minecraft-pi-reborn-client --default --no-cache --benchmark +minecraft-pi-reborn-legacy-client --default --no-cache --benchmark