feat: build appimage with default profile; devel status deduced by building a git tag or not

This commit is contained in:
Gabriele Musco 2024-08-30 08:49:47 +02:00
parent ed53342861
commit b0bc9afc1f
2 changed files with 3 additions and 2 deletions

View file

@ -7,7 +7,7 @@ if [[ ! -f Cargo.toml ]]; then
exit 1
fi
meson setup appimage_build -Dprefix=/usr -Dprofile=development
meson setup appimage_build -Dprefix=/usr -Dprofile=default
DESTDIR="$PWD/AppDir" ninja -C appimage_build install
curl -SsLO https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
chmod +x linuxdeploy-x86_64.AppImage

View file

@ -38,7 +38,8 @@ iconsdir = datadir / 'icons'
podir = meson.project_source_root() / 'po'
gettext_package = meson.project_name()
if get_option('profile') == 'development'
# are we building a tagged version?
if run_command('git', 'describe', '--tags', '--exact-match').returncode() != 0
profile = 'Devel'
vcs_tag = run_command('git', 'rev-parse', '--short', 'HEAD', check: false).stdout().strip()
if vcs_tag == ''