2023-04-14 14:00:20 +02:00
|
|
|
# appimage-builder recipe see https://appimage-builder.readthedocs.io for details
|
2020-11-15 17:38:04 +01:00
|
|
|
version: 1
|
|
|
|
AppDir:
|
2023-04-14 14:00:20 +02:00
|
|
|
path: AppDir
|
2020-11-15 17:38:04 +01:00
|
|
|
app_info:
|
2022-08-15 10:47:47 +02:00
|
|
|
id: net.minetest.minetest
|
2020-11-15 17:38:04 +01:00
|
|
|
name: Minetest
|
|
|
|
icon: minetest
|
|
|
|
version: !ENV ${VERSION}
|
|
|
|
exec: usr/bin/minetest
|
|
|
|
exec_args: $@
|
2023-04-14 14:00:20 +02:00
|
|
|
files:
|
|
|
|
include: []
|
|
|
|
exclude:
|
|
|
|
- usr/share/man
|
|
|
|
- usr/share/doc
|
|
|
|
- usr/share/lintian
|
2020-11-15 17:38:04 +01:00
|
|
|
apt:
|
|
|
|
arch: amd64
|
|
|
|
sources:
|
2022-08-15 10:47:47 +02:00
|
|
|
- sourceline: deb http://archive.ubuntu.com/ubuntu/ focal main universe
|
2020-11-15 17:38:04 +01:00
|
|
|
key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32'
|
2022-08-15 10:47:47 +02:00
|
|
|
- sourceline: deb http://archive.ubuntu.com/ubuntu/ focal-updates main universe
|
|
|
|
- sourceline: deb http://archive.ubuntu.com/ubuntu/ focal-backports main universe
|
|
|
|
- sourceline: deb http://archive.ubuntu.com/ubuntu/ focal-security main universe
|
2020-11-15 17:38:04 +01:00
|
|
|
|
|
|
|
include:
|
2021-05-15 23:56:33 +02:00
|
|
|
- libc6
|
2022-08-15 10:47:47 +02:00
|
|
|
- libcrypt1
|
2020-11-15 17:38:04 +01:00
|
|
|
- libcurl3-gnutls
|
2023-04-14 14:00:20 +02:00
|
|
|
- libcurl4
|
2020-11-15 17:38:04 +01:00
|
|
|
- libfreetype6
|
2021-05-15 23:56:33 +02:00
|
|
|
- libgl1
|
|
|
|
- libjpeg-turbo8
|
2020-11-15 17:38:04 +01:00
|
|
|
- libjsoncpp1
|
2022-08-15 10:47:47 +02:00
|
|
|
- libleveldb1d
|
|
|
|
- libluajit-5.1-2
|
2021-05-15 23:56:33 +02:00
|
|
|
- libopenal1
|
|
|
|
- libpng16-16
|
|
|
|
- libsqlite3-0
|
|
|
|
- libstdc++6
|
|
|
|
- libvorbisfile3
|
|
|
|
- libx11-6
|
2022-08-15 10:47:47 +02:00
|
|
|
- libxi6
|
2021-05-15 23:56:33 +02:00
|
|
|
- zlib1g
|
2020-11-15 17:38:04 +01:00
|
|
|
AppImage:
|
2023-04-14 14:00:20 +02:00
|
|
|
update-information: guess
|
2020-11-15 17:38:04 +01:00
|
|
|
sign-key: None
|
|
|
|
arch: x86_64
|
2023-04-14 14:00:20 +02:00
|
|
|
script: |
|
|
|
|
# Compile and install binaries into AppDir
|
|
|
|
cmake -B appimage-build -DENABLE_REDIS=FALSE -DENABLE_POSTGRESQL=OFF -DCMAKE_INSTALL_PREFIX=AppDir/usr/ -DBUILD_SERVER=FALSE -DENABLE_GETTEXT=TRUE -DCMAKE_BUILD_TYPE=Release -DRUN_IN_PLACE=FALSE
|
|
|
|
cmake --build appimage-build --parallel $(nproc) --config Release
|
|
|
|
cmake --install appimage-build
|
|
|
|
|
|
|
|
# Is a backup icon location in case
|
|
|
|
mkdir -p AppDir/usr/share/minetest/misc
|
|
|
|
cp AppDir/usr/share/icons/hicolor/128x128/apps/minetest.png AppDir/usr/share/minetest/misc/minetest-xorg-icon-128.png
|
|
|
|
# Validation issues
|
|
|
|
sed -i '/PrefersNonDefaultGPU/d' AppDir/usr/share/applications/net.minetest.minetest.desktop
|