mirror of
https://github.com/a-bad-dev/luanti-appimages-aarch64.git
synced 2026-06-09 00:31:31 +00:00
small fixes
This commit is contained in:
parent
fcd2eecdfd
commit
4f071a2cba
1 changed files with 15 additions and 14 deletions
17
build.sh
17
build.sh
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue