mirror of
https://github.com/a-bad-dev/luanti-appimages-aarch64.git
synced 2026-06-13 09:56:06 +00:00
updates
This commit is contained in:
parent
ceecf4d4c6
commit
1c334a9b64
1 changed files with 35 additions and 14 deletions
49
build.sh
49
build.sh
|
|
@ -11,28 +11,53 @@ GREEN="\033[32m"
|
||||||
RESET="\033[0m"
|
RESET="\033[0m"
|
||||||
|
|
||||||
echo -e "${BOLD}Downloading deps...${RESET}"
|
echo -e "${BOLD}Downloading deps...${RESET}"
|
||||||
apt-get install -y git g++ make ninja-build libc6-dev cmake libpng-dev libjpeg-dev libxi-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-openssl-dev libfreetype6-dev zlib1g-dev libgmp-dev libsdl2-dev libzstd-dev libleveldb-dev gettext desktop-file-utils ca-certificates wget file --no-install-recommends
|
apt-get install -y --no-install-recommends \
|
||||||
|
git \
|
||||||
|
g++ \
|
||||||
|
make \
|
||||||
|
ninja-build \
|
||||||
|
libc6-dev \
|
||||||
|
cmake \
|
||||||
|
curl \
|
||||||
|
libpng-dev \
|
||||||
|
libjpeg-dev \
|
||||||
|
libxi-dev \
|
||||||
|
libgl1-mesa-dev \
|
||||||
|
libsqlite3-dev \
|
||||||
|
libogg-dev \
|
||||||
|
libvorbis-dev \
|
||||||
|
libopenal-dev \
|
||||||
|
libcurl4-openssl-dev \
|
||||||
|
libfreetype6-dev \
|
||||||
|
zlib1g-dev \
|
||||||
|
libgmp-dev \
|
||||||
|
libsdl2-dev \
|
||||||
|
libzstd-dev \
|
||||||
|
libleveldb-dev \
|
||||||
|
gettext \
|
||||||
|
desktop-file-utils \
|
||||||
|
ca-certificates \
|
||||||
|
file
|
||||||
|
|
||||||
echo -e "${BOLD}Downloading LuaJIT and Luanti source code...${RESET}"
|
echo -e "${BOLD}Downloading LuaJIT and Luanti source code...${RESET}"
|
||||||
git clone --depth 1 https://github.com/LuaJIT/LuaJIT.git luajit
|
git clone --depth 1 https://github.com/LuaJIT/LuaJIT.git luajit
|
||||||
wget -O luanti.zip https://github.com/luanti-org/luanti/archive/refs/tags/${VERSION}.zip
|
curl -Lo luanti.zip https://github.com/luanti-org/luanti/archive/refs/tags/${VERSION}.zip
|
||||||
unzip luanti.zip
|
unzip luanti.zip
|
||||||
mv luanti-${VERSION} luanti/
|
mv luanti-${VERSION} luanti/
|
||||||
|
|
||||||
echo -e "${BOLD}Compiling LuaJIT...${RESET}"
|
echo -e "${BOLD}Compiling LuaJIT...${RESET}"
|
||||||
pushd luajit
|
cd luajit
|
||||||
make amalg -j$(nproc)
|
make amalg -j$(nproc)
|
||||||
popd
|
cd ..
|
||||||
|
|
||||||
pushd luanti
|
cd luanti
|
||||||
mkdir -p build; cd build
|
mkdir -p build
|
||||||
|
cd build
|
||||||
|
|
||||||
# Download appimagetool
|
# Download appimagetool
|
||||||
if [ ! -f appimagetool ]; then
|
if [ ! -f appimagetool ]; then
|
||||||
# Old version of appimagetool:
|
|
||||||
#wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-aarch64.AppImage -O appimagetool
|
|
||||||
echo -e "${BOLD}Downloading AppImageTool${RESET}"
|
echo -e "${BOLD}Downloading AppImageTool${RESET}"
|
||||||
wget https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-aarch64.AppImage -O appimagetool
|
curl -Lo appimagetool https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-aarch64.AppImage
|
||||||
chmod +x appimagetool
|
chmod +x appimagetool
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -45,10 +70,6 @@ cmake .. -G Ninja \
|
||||||
-DENABLE_SYSTEM_JSONCPP=OFF \
|
-DENABLE_SYSTEM_JSONCPP=OFF \
|
||||||
-DLUA_INCLUDE_DIR=../../luajit/src/ \
|
-DLUA_INCLUDE_DIR=../../luajit/src/ \
|
||||||
-DLUA_LIBRARY=../../luajit/src/libluajit.a
|
-DLUA_LIBRARY=../../luajit/src/libluajit.a
|
||||||
ninja -j$(nproc)
|
|
||||||
|
|
||||||
objcopy --only-keep-debug ../bin/luanti luanti.debug
|
|
||||||
objcopy --strip-debug --add-gnu-debuglink=luanti.debug ../bin/luanti
|
|
||||||
|
|
||||||
ninja install -j$(nproc)
|
ninja install -j$(nproc)
|
||||||
|
|
||||||
|
|
@ -63,7 +84,7 @@ ln -sf luanti.png .DirIcon
|
||||||
# Fix locales
|
# Fix locales
|
||||||
mv usr/share/locale usr/share/luanti
|
mv usr/share/locale usr/share/luanti
|
||||||
|
|
||||||
cat > AppRun <<\APPRUN
|
cat > AppRun <<'APPRUN'
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
APP_PATH="$(dirname "$(readlink -f "${0}")")"
|
APP_PATH="$(dirname "$(readlink -f "${0}")")"
|
||||||
export LD_LIBRARY_PATH="${APP_PATH}"/usr/lib/:"${LD_LIBRARY_PATH}"
|
export LD_LIBRARY_PATH="${APP_PATH}"/usr/lib/:"${LD_LIBRARY_PATH}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue