small fixes

This commit is contained in:
a-bad-dev 2026-04-14 18:23:04 -03:00 committed by GitHub
commit 4f071a2cba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,10 +5,10 @@
VERSION="5.15.1"
BOLD="\033[1m"
RED="\033[31m"
GREEN="\033[32m"
RESET="\033[0m"
BOLD="\x1b[1m"
RED="\x1b[31m"
GREEN="\x1b[32m"
RESET="\x1b[0m"
# make sure we are root
if [ "$(id -u)" != 0 ]; then
@ -48,7 +48,7 @@ apt-get install -y --no-install-recommends \
# download source code
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
curl -Lo luanti.zip https://github.com/luanti-org/luanti/archive/refs/tags/${VERSION}.zip
unzip luanti.zip
mv luanti-${VERSION} luanti/
@ -92,12 +92,13 @@ ln -sf luanti.png .DirIcon
# fix locales
mv usr/share/locale usr/share/luanti
cat > AppRun <<'APPRUN'
cat > AppRun <<'EOF'
#!/bin/sh
APP_PATH="$(dirname "$(readlink -f "${0}")")"
export LD_LIBRARY_PATH="${APP_PATH}"/usr/lib/:"${LD_LIBRARY_PATH}"
exec "${APP_PATH}/usr/bin/luanti" "$@"
APPRUN
EOF
chmod +x AppRun
# bundle the libraries
@ -120,7 +121,7 @@ INCLUDE_LIBS=(
mkdir -p usr/lib/
for i in "${INCLUDE_LIBS[@]}"; do
cp /usr/lib/aarch64-linux-gnu/$i usr/lib/
cp /usr/lib/aarch64-linux-gnu/${i} usr/lib/
done
# finally make the appimage