linux build: Rename icons using app id
This commit is contained in:
parent
a7c182f640
commit
b944e9d0af
|
@ -1,23 +1,27 @@
|
|||
# Install app icons in system theme
|
||||
theme_dir = join_paths(get_option('prefix'), 'share', 'icons', 'hicolor')
|
||||
icon_sizes = ['16', '24', '48', '256', '512']
|
||||
|
||||
app_icon_name = 'org.sparkleshare.SparkleShare'
|
||||
target_icon_name = app_icon_name
|
||||
|
||||
if get_option('nightly')
|
||||
target_icon_name = app_icon_name + '.Nightly'
|
||||
endif
|
||||
|
||||
foreach size : icon_sizes
|
||||
icon_dir = join_paths(size + 'x' + size, 'apps')
|
||||
|
||||
install_data(
|
||||
sources: join_paths('hicolor', icon_dir, app_icon_name + '.png'),
|
||||
install_dir: join_paths(theme_dir, icon_dir))
|
||||
|
||||
install_data(
|
||||
sources: join_paths('hicolor', icon_dir, app_icon_name + '.Nightly.png'),
|
||||
install_dir: join_paths(theme_dir, icon_dir))
|
||||
install_dir: join_paths(theme_dir, icon_dir),
|
||||
rename: target_icon_name + '.png')
|
||||
endforeach
|
||||
|
||||
install_data(
|
||||
sources: join_paths('hicolor', 'symbolic', 'apps', app_icon_name + '-symbolic.svg'),
|
||||
install_dir: join_paths(theme_dir, 'symbolic', 'apps'))
|
||||
install_dir: join_paths(theme_dir, 'symbolic', 'apps'),
|
||||
rename: target_icon_name + '-symbolic.svg')
|
||||
|
||||
|
||||
# Install the status icons
|
||||
|
@ -29,15 +33,18 @@ status_icons = ['syncing',
|
|||
foreach icon : status_icons
|
||||
install_data(
|
||||
sources: join_paths('hicolor', '24x24', 'status', app_icon_name + '-' + icon + '.png'),
|
||||
install_dir: join_paths(theme_dir, '24x24', 'apps'))
|
||||
install_dir: join_paths(theme_dir, '24x24', 'apps'),
|
||||
rename: target_icon_name + '-' + icon + '.png')
|
||||
|
||||
install_data(
|
||||
sources: join_paths('hicolor', '48x48', 'status', app_icon_name + '-' + icon + '.png'),
|
||||
install_dir: join_paths(theme_dir, '48x48', 'apps'))
|
||||
install_dir: join_paths(theme_dir, '48x48', 'apps'),
|
||||
rename: target_icon_name + '-' + icon + '.png')
|
||||
|
||||
install_data(
|
||||
sources: join_paths('hicolor', 'symbolic', 'status', app_icon_name + '-' + icon + '-symbolic.svg'),
|
||||
install_dir: join_paths(theme_dir, 'symbolic', 'apps'))
|
||||
install_dir: join_paths(theme_dir, 'symbolic', 'apps'),
|
||||
rename: target_icon_name + '-' + icon + '-symbolic.svg')
|
||||
endforeach
|
||||
|
||||
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
option('ubuntu', type: 'boolean', value: false)
|
||||
option('nightly', type: 'boolean', value: false)
|
||||
|
||||
|
|
Loading…
Reference in New Issue