mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-04 23:29:00 +00:00
feat: build appimage with default profile; devel status deduced by building a git tag or not
This commit is contained in:
parent
ed53342861
commit
b0bc9afc1f
2 changed files with 3 additions and 2 deletions
2
dist/appimage/build_appimage.sh
vendored
2
dist/appimage/build_appimage.sh
vendored
|
@ -7,7 +7,7 @@ if [[ ! -f Cargo.toml ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
DESTDIR="$PWD/AppDir" ninja -C appimage_build install
|
||||||
curl -SsLO https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
|
curl -SsLO https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
|
||||||
chmod +x linuxdeploy-x86_64.AppImage
|
chmod +x linuxdeploy-x86_64.AppImage
|
||||||
|
|
|
@ -38,7 +38,8 @@ iconsdir = datadir / 'icons'
|
||||||
podir = meson.project_source_root() / 'po'
|
podir = meson.project_source_root() / 'po'
|
||||||
gettext_package = meson.project_name()
|
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'
|
profile = 'Devel'
|
||||||
vcs_tag = run_command('git', 'rev-parse', '--short', 'HEAD', check: false).stdout().strip()
|
vcs_tag = run_command('git', 'rev-parse', '--short', 'HEAD', check: false).stdout().strip()
|
||||||
if vcs_tag == ''
|
if vcs_tag == ''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue