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
29
build.sh
29
build.sh
|
|
@ -5,10 +5,10 @@
|
||||||
|
|
||||||
VERSION="5.15.1"
|
VERSION="5.15.1"
|
||||||
|
|
||||||
BOLD="\033[1m"
|
BOLD="\x1b[1m"
|
||||||
RED="\033[31m"
|
RED="\x1b[31m"
|
||||||
GREEN="\033[32m"
|
GREEN="\x1b[32m"
|
||||||
RESET="\033[0m"
|
RESET="\x1b[0m"
|
||||||
|
|
||||||
# make sure we are root
|
# make sure we are root
|
||||||
if [ "$(id -u)" != 0 ]; then
|
if [ "$(id -u)" != 0 ]; then
|
||||||
|
|
@ -48,7 +48,7 @@ apt-get install -y --no-install-recommends \
|
||||||
|
|
||||||
# download source code
|
# download source code
|
||||||
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
|
||||||
curl -Lo 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/
|
||||||
|
|
@ -92,35 +92,36 @@ 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 <<'EOF'
|
||||||
#!/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}"
|
||||||
exec "${APP_PATH}/usr/bin/luanti" "$@"
|
exec "${APP_PATH}/usr/bin/luanti" "$@"
|
||||||
APPRUN
|
EOF
|
||||||
|
|
||||||
chmod +x AppRun
|
chmod +x AppRun
|
||||||
|
|
||||||
# bundle the libraries
|
# bundle the libraries
|
||||||
INCLUDE_LIBS=(
|
INCLUDE_LIBS=(
|
||||||
libopenal.so.1
|
libopenal.so.1
|
||||||
libSDL2-2.0.so.0
|
libSDL2-2.0.so.0
|
||||||
libsndio.so.7.0
|
libsndio.so.7.0
|
||||||
libbsd.so.0
|
libbsd.so.0
|
||||||
libmd.so.0
|
libmd.so.0
|
||||||
libjpeg.so.62
|
libjpeg.so.62
|
||||||
libpng16.so.16
|
libpng16.so.16
|
||||||
libvorbisfile.so.3
|
libvorbisfile.so.3
|
||||||
libogg.so.0
|
libogg.so.0
|
||||||
libvorbis.so.0
|
libvorbis.so.0
|
||||||
libzstd.so.1
|
libzstd.so.1
|
||||||
libsqlite3.so.0
|
libsqlite3.so.0
|
||||||
libleveldb.so.1d
|
libleveldb.so.1d
|
||||||
libsnappy.so.1
|
libsnappy.so.1
|
||||||
)
|
)
|
||||||
|
|
||||||
mkdir -p usr/lib/
|
mkdir -p usr/lib/
|
||||||
for i in "${INCLUDE_LIBS[@]}"; do
|
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
|
done
|
||||||
|
|
||||||
# finally make the appimage
|
# finally make the appimage
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue