Skip to content

Commit

Permalink
Debundle Minetest Game (#13818)
Browse files Browse the repository at this point in the history
  • Loading branch information
rollerozxa committed Nov 7, 2023
1 parent 7213ff7 commit 570fc90
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 75 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build.yml
Expand Up @@ -177,7 +177,6 @@ jobs:
run: |
EXISTING_MINETEST_DIR=$PWD ./util/buildbot/buildwin32.sh winbuild
env:
NO_MINETEST_GAME: 1
NO_PACKAGE: 1

win64:
Expand All @@ -195,7 +194,6 @@ jobs:
run: |
EXISTING_MINETEST_DIR=$PWD ./util/buildbot/buildwin64.sh winbuild
env:
NO_MINETEST_GAME: 1
NO_PACKAGE: 1

msvc:
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/macos.yml
Expand Up @@ -21,11 +21,6 @@ on:
- 'cmake/Modules/**'
- '.github/workflows/macos.yml'

env:
MINETEST_GAME_REPO: https://github.com/minetest/minetest_game.git
MINETEST_GAME_BRANCH: master
MINETEST_GAME_NAME: minetest_game

jobs:
build:
runs-on: macos-latest
Expand All @@ -38,7 +33,6 @@ jobs:
- name: Build
run: |
git clone -b $MINETEST_GAME_BRANCH $MINETEST_GAME_REPO games/$MINETEST_GAME_NAME
git clone https://github.com/minetest/irrlicht lib/irrlichtmt --depth 1 -b $(cat misc/irrlichtmt_tag.txt)
mkdir build
cd build
Expand Down
3 changes: 0 additions & 3 deletions .gitlab-ci.yml
Expand Up @@ -9,7 +9,6 @@ stages:
- deploy

variables:
MINETEST_GAME_REPO: "https://github.com/minetest/minetest_game.git"
CONTAINER_IMAGE: registry.gitlab.com/$CI_PROJECT_PATH

.build_template:
Expand Down Expand Up @@ -120,8 +119,6 @@ package:appimage-client:
- mkdir AppDir
- cp -a artifact/minetest/usr/ AppDir/usr/
- cp -a clientmods AppDir/usr/share/minetest
- git clone $MINETEST_GAME_REPO AppDir/usr/share/minetest/games/minetest_game
- rm -rf AppDir/usr/share/minetest/games/minetest_game/.git
# Remove PrefersNonDefaultGPU property due to validation errors
- sed -i '/PrefersNonDefaultGPU/d' AppDir/usr/share/applications/net.minetest.minetest.desktop
script:
Expand Down
13 changes: 0 additions & 13 deletions CMakeLists.txt
Expand Up @@ -262,9 +262,6 @@ if(RUN_IN_PLACE)
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/textures/texture_packs_here.txt" DESTINATION "${SHAREDIR}/textures")
endif()

install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/games/minetest_game" DESTINATION "${SHAREDIR}/games/"
COMPONENT "SUBGAME_MINETEST_GAME" OPTIONAL PATTERN ".git*" EXCLUDE )

set(INSTALL_DEVTEST FALSE CACHE BOOL "Install Development Test")

if(INSTALL_DEVTEST)
Expand Down Expand Up @@ -336,16 +333,6 @@ cpack_add_component(Docs
DESCRIPTION "Documentation about Minetest and Minetest modding"
)

cpack_add_component(SUBGAME_MINETEST_GAME
DISPLAY_NAME "Minetest Game"
DESCRIPTION "The default game bundled in the Minetest engine. Mainly used as a modding base."
GROUP "Games"
)

cpack_add_component_group(Subgames
DESCRIPTION "Games for the Minetest engine."
)

if(WIN32)
# Include all dynamically linked runtime libraries such as MSVCRxxx.dll
include(InstallRequiredSystemLibraries)
Expand Down
23 changes: 10 additions & 13 deletions Dockerfile
@@ -1,7 +1,6 @@
ARG DOCKER_IMAGE=alpine:3.16
FROM $DOCKER_IMAGE AS dev

ENV MINETEST_GAME_VERSION master
ENV IRRLICHT_VERSION master
ENV SPATIALINDEX_VERSION 1.9.3
ENV LUAJIT_VERSION v2.1
Expand Down Expand Up @@ -52,18 +51,16 @@ COPY src /usr/src/minetest/src
COPY textures /usr/src/minetest/textures

WORKDIR /usr/src/minetest
RUN git clone --depth=1 -b ${MINETEST_GAME_VERSION} https://github.com/minetest/minetest_game.git ./games/minetest_game && \
rm -fr ./games/minetest_game/.git && \
cmake -B build \
-DCMAKE_INSTALL_PREFIX=/usr/local \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SERVER=TRUE \
-DENABLE_PROMETHEUS=TRUE \
-DBUILD_UNITTESTS=FALSE \
-DBUILD_CLIENT=FALSE \
-GNinja && \
cmake --build build && \
cmake --install build
RUN cmake -B build \
-DCMAKE_INSTALL_PREFIX=/usr/local \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SERVER=TRUE \
-DENABLE_PROMETHEUS=TRUE \
-DBUILD_UNITTESTS=FALSE \
-DBUILD_CLIENT=FALSE \
-GNinja && \
cmake --build build && \
cmake --install build

ARG DOCKER_IMAGE=alpine:3.16
FROM $DOCKER_IMAGE AS runtime
Expand Down
6 changes: 0 additions & 6 deletions README.md
Expand Up @@ -10,12 +10,6 @@ Minetest is a free open-source voxel game engine with easy modding and game crea
Copyright (C) 2010-2022 Perttu Ahola <celeron55@gmail.com>
and contributors (see source file comments and the version control log)

In case you downloaded the source code
--------------------------------------
If you downloaded the Minetest Engine source code in which this file is
contained, you probably want to download the [Minetest Game](https://github.com/minetest/minetest_game/)
project too. See its README.txt for more information.

Table of Contents
------------------

Expand Down
4 changes: 0 additions & 4 deletions android/app/build.gradle
Expand Up @@ -54,7 +54,6 @@ android {
task prepareAssets() {
def assetsFolder = "build/assets"
def projRoot = rootDir.parent
def gameToCopy = "minetest_game"

// See issue #4638
def unsupportedLanguages = new File("${projRoot}/src/unsupported_language_list.txt").text.readLines()
Expand All @@ -81,9 +80,6 @@ task prepareAssets() {
copy {
from "${projRoot}/fonts" include "*.ttf" into "${assetsFolder}/fonts"
}
copy {
from "${projRoot}/games/${gameToCopy}" into "${assetsFolder}/games/${gameToCopy}"
}
copy {
from "${projRoot}/textures" into "${assetsFolder}/textures"
}
Expand Down
1 change: 0 additions & 1 deletion android/app/src/main/java/net/minetest/minetest/Utils.java
Expand Up @@ -38,7 +38,6 @@ public static File getCacheDirectory(@NonNull Context context) {
public static boolean isInstallValid(@NonNull Context context) {
File userDataDirectory = getUserDataDirectory(context);
return userDataDirectory.isDirectory() &&
new File(userDataDirectory, "games").isDirectory() &&
new File(userDataDirectory, "builtin").isDirectory() &&
new File(userDataDirectory, "client").isDirectory() &&
new File(userDataDirectory, "textures").isDirectory();
Expand Down
12 changes: 0 additions & 12 deletions doc/compiling/linux.md
Expand Up @@ -69,10 +69,6 @@ Download source (this is the URL to the latest of source repository, which might
git clone --depth 1 https://github.com/minetest/minetest.git
cd minetest

Download Minetest Game (otherwise only the "Development Test" game is available) using Git:

git clone --depth 1 https://github.com/minetest/minetest_game.git games/minetest_game

Download IrrlichtMt to `lib/irrlichtmt`, it will be used to satisfy the IrrlichtMt dependency that way:

git clone --depth 1 https://github.com/minetest/irrlicht.git lib/irrlichtmt
Expand All @@ -83,14 +79,6 @@ Download source, without using Git:
tar xf master.tar.gz
cd minetest-master

Download Minetest Game, without using Git:

cd games/
wget https://github.com/minetest/minetest_game/archive/master.tar.gz
tar xf master.tar.gz
mv minetest_game-master minetest_game
cd ..

Download IrrlichtMt, without using Git:

cd lib/
Expand Down
6 changes: 0 additions & 6 deletions doc/compiling/macos.md
Expand Up @@ -20,12 +20,6 @@ git clone --depth 1 https://github.com/minetest/minetest.git
cd minetest
```

Download Minetest Game (otherwise only the "Development Test" game is available) using Git:

```
git clone --depth 1 https://github.com/minetest/minetest_game.git games/minetest_game
```

Download Minetest's fork of Irrlicht:

```
Expand Down
2 changes: 1 addition & 1 deletion games/devtest/mods/initial_message/init.lua
Expand Up @@ -3,7 +3,7 @@ minetest.register_on_joinplayer(function(player)
if not player or not player:is_player() then
return
end
minetest.chat_send_player(player:get_player_name(), "This is the \"Development Test\" [devtest], meant only for testing and development. Use Minetest Game for the real thing.")
minetest.chat_send_player(player:get_player_name(), "This is the \"Development Test\" [devtest], meant only for testing and development.")
end
minetest.after(2.0, cb, player)
end)
8 changes: 0 additions & 8 deletions util/buildbot/common.sh
@@ -1,9 +1,6 @@
CORE_GIT=https://github.com/minetest/minetest
CORE_BRANCH=master
CORE_NAME=minetest
GAME_GIT=https://github.com/minetest/minetest_game
GAME_BRANCH=master
GAME_NAME=minetest_game

ogg_version=1.3.5
openal_version=1.23.0
Expand Down Expand Up @@ -45,11 +42,6 @@ get_sources () {
sourcedir=$PWD/$CORE_NAME
[ -d $CORE_NAME ] && { pushd $CORE_NAME; git pull --ff-only; popd; } || \
git clone -b $CORE_BRANCH $CORE_GIT $CORE_NAME
if [ -z "$NO_MINETEST_GAME" ]; then
cd $sourcedir
[ -d games/$GAME_NAME ] && { pushd games/$GAME_NAME; git pull --ff-only; popd; } || \
git clone -b $GAME_BRANCH $GAME_GIT games/$GAME_NAME
fi
}

# sets $runtime_dlls
Expand Down

1 comment on commit 570fc90

@GoodClover
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minetest, now without Mese!

Please sign in to comment.