linux: Install correct desktop file for nightlies

This commit is contained in:
Hylke Bons 2018-08-05 17:55:13 +01:00
parent 446b38ba30
commit 21e20afc05

View file

@ -33,9 +33,12 @@ install_data(sources: 'SparkleShare.Autostart.desktop', install_dir: apps_dir)
install_data(sources: 'org.sparkleshare.SparkleShare.appdata.xml', install_dir: join_paths(get_option('prefix'), 'share', 'appdata'))
if get_option('nightly')
install_data(sources: 'org.sparkleshare.SparkleShare.Nightly.desktop', install_dir: apps_dir)
install_data(sources: 'org.sparkleshare.SparkleShare.Nightly.desktop',
install_dir: apps_dir,
rename: 'org.sparkleshare.SparkleShare.desktop')
else
install_data(sources: 'org.sparkleshare.SparkleShare.desktop', install_dir: apps_dir)
install_data(sources: 'org.sparkleshare.SparkleShare.desktop',
install_dir: apps_dir)
endif