meson: Restore hack profile
It's the same as 'development' only with a different app ID. Allows to use the nightly Flatpak and develop using a custom flatpak manifest at the same time.
This commit is contained in:
parent
6557a8b62a
commit
1a0ecad177
|
@ -1,6 +1,13 @@
|
|||
if profile == 'Devel'
|
||||
icon_id = base_id + '.Devel'
|
||||
else
|
||||
icon_id = base_id
|
||||
endif
|
||||
|
||||
install_data(
|
||||
'@0@.svg'.format(application_id),
|
||||
'@0@.svg'.format(icon_id),
|
||||
install_dir: iconsdir / 'hicolor' / 'scalable' / 'apps',
|
||||
rename: '@0@.svg'.format(application_id)
|
||||
)
|
||||
|
||||
install_data(
|
||||
|
|
25
meson.build
25
meson.build
|
@ -67,7 +67,17 @@ gettext_package = meson.project_name()
|
|||
|
||||
if get_option('profile') == 'development'
|
||||
profile = 'Devel'
|
||||
application_id += '.Devel'
|
||||
elif get_option('profile') == 'hack'
|
||||
profile = 'Devel'
|
||||
application_id += '.Hack'
|
||||
elif get_option('profile') == 'beta'
|
||||
profile = 'Beta'
|
||||
else
|
||||
profile = 'Stable'
|
||||
endif
|
||||
|
||||
if profile == 'Devel'
|
||||
vcs_tag = run_command('git', 'rev-parse', '--short', 'HEAD').stdout().strip()
|
||||
if vcs_tag == ''
|
||||
devel_version = profile.to_lower()
|
||||
|
@ -77,11 +87,10 @@ if get_option('profile') == 'development'
|
|||
full_version += '-' + devel_version
|
||||
|
||||
release_date = run_command('git', 'show', '-s', '--format=%cI').stdout().strip()
|
||||
application_id += '.' + profile
|
||||
elif get_option('profile') == 'beta'
|
||||
profile = 'Beta'
|
||||
else
|
||||
profile = 'Stable'
|
||||
|
||||
# Setup pre-commit hook for ensuring coding style is always consistent
|
||||
message('Setting up git pre-commit hook..')
|
||||
run_command('cp', '-f', 'hooks/pre-commit.hook', '.git/hooks/pre-commit')
|
||||
endif
|
||||
|
||||
meson.add_dist_script(
|
||||
|
@ -90,12 +99,6 @@ meson.add_dist_script(
|
|||
meson.project_source_root()
|
||||
)
|
||||
|
||||
if profile == 'Devel'
|
||||
# Setup pre-commit hook for ensuring coding style is always consistent
|
||||
message('Setting up git pre-commit hook..')
|
||||
run_command('cp', '-f', 'hooks/pre-commit.hook', '.git/hooks/pre-commit')
|
||||
endif
|
||||
|
||||
subdir('data')
|
||||
subdir('po')
|
||||
subdir('src')
|
||||
|
|
|
@ -5,7 +5,8 @@ option(
|
|||
'default',
|
||||
'beta',
|
||||
'development',
|
||||
'hack',
|
||||
],
|
||||
value: 'default',
|
||||
description: 'The build profile for Fractal. One of "default", "beta" or "development".'
|
||||
description: 'The build profile for Fractal. One of "default", "beta", "development" or "hack".'
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue