AppImageBuilder.yml: add script section and update to Jammy (#13078)

This commit is contained in:
cat-master21 2023-04-14 05:00:20 -07:00 committed by GitHub
parent f9b1176fa9
commit 0b08e1b1d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 14 deletions

5
.gitignore vendored

@ -32,6 +32,11 @@ build/.cmake/
.gradle .gradle
# Clang # Clang
.cache .cache
# AppImage
*.AppImage
*.zsync
appimage-build
AppDir
## Files related to Minetest development cycle ## Files related to Minetest development cycle
/*.patch /*.patch

@ -1,8 +1,7 @@
# appimage-builder recipe see https://appimage-builder.readthedocs.io for details
version: 1 version: 1
AppDir: AppDir:
path: ./AppDir path: AppDir
app_info: app_info:
id: net.minetest.minetest id: net.minetest.minetest
name: Minetest name: Minetest
@ -10,10 +9,12 @@ AppDir:
version: !ENV ${VERSION} version: !ENV ${VERSION}
exec: usr/bin/minetest exec: usr/bin/minetest
exec_args: $@ exec_args: $@
runtime: files:
env: include: []
APPDIR_LIBRARY_PATH: $APPDIR/usr/lib/x86_64-linux-gnu exclude:
- usr/share/man
- usr/share/doc
- usr/share/lintian
apt: apt:
arch: amd64 arch: amd64
sources: sources:
@ -27,6 +28,7 @@ AppDir:
- libc6 - libc6
- libcrypt1 - libcrypt1
- libcurl3-gnutls - libcurl3-gnutls
- libcurl4
- libfreetype6 - libfreetype6
- libgl1 - libgl1
- libjpeg-turbo8 - libjpeg-turbo8
@ -41,13 +43,18 @@ AppDir:
- libx11-6 - libx11-6
- libxi6 - libxi6
- zlib1g - zlib1g
files:
exclude:
- usr/share/man
- usr/share/doc
AppImage: AppImage:
update-information: None update-information: guess
sign-key: None sign-key: None
arch: x86_64 arch: x86_64
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