first commit

This commit is contained in:
Cyber Anonymous 2024-01-12 00:29:15 -03:00
commit 9b125857e4
4 changed files with 22 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
minetest.AppImage

6
Makefile Normal file
View File

@ -0,0 +1,6 @@
all:
podman build -t minetest -f minetest.Dockerfile
podman run -d --name minetest minetest
podman cp minetest:/minetest/minetest.AppImage .
podman container rm minetest
podman rmi minetest

9
Readme.md Normal file
View File

@ -0,0 +1,9 @@
### AppImage Minetest Podman
This script was created so that you can generate your own appimage without cluttering your system with minetest compilation dependencies, without having to blindly trust the appimage created by a third party.
The dependencies for this project are:
make
podman
The script will compile the most recent source code provided by the minetest repository itself, download the program responsible for generating the appimage and create the executable, all within a podman container, after which, as informed in the Makefile, it will copy the appimage to the project folder, at the end of creating the appimage, the Makefile will also remove the container and the image, after all, you will no longer need this after having the appimage

6
minetest.Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM debian
ENV VERSION=5.9.0
RUN apt update; apt install file wget squashfs-tools git g++ make libc6-dev cmake libpng-dev libjpeg-dev libxi-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-gnutls-dev libfreetype6-dev zlib1g-dev libgmp-dev libjsoncpp-dev libzstd-dev libluajit-5.1-dev gettext -y ; git clone --depth 1 https://github.com/minetest/minetest.git ; cd minetest ; git clone --depth 1 --branch "$(cat misc/irrlichtmt_tag.txt)" https://github.com/minetest/irrlicht.git lib/irrlichtmt ; mkdir -p minetest.AppDir/usr/ ; cmake -DCMAKE_INSTALL_PREFIX=minetest.AppDir/usr/ . ; make -j$(nproc) ; make install
RUN cd /minetest/minetest.AppDir/ ; echo "[Desktop Entry]\nName=Minetest\nExec=minetest\nIcon=minetest\nType=Application\nCategories=Utility" > minetest.desktop ; wget https://www.minetest.net/media/icon.svg -O minetest.svg ; wget https://github.com/AppImage/AppImageKit/releases/download/continuous/AppRun-x86_64 -O AppRun ; chmod +x AppRun ; cd .. ; wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage ; chmod +x appimagetool-x86_64.AppImage ; ./appimagetool-x86_64.AppImage --appimage-extract-and-run minetest.AppDir/ minetest.AppImage