OSX: Handle zonebg for first time installations

If none of the gameboard images is set and and the user’s data
directory doesn’t contain a “zonebg” directory, create the directory,
copy contents from cockatrice’s app bundle and sets the config
accordingly.
This commit is contained in:
Fabio Bas 2014-06-22 23:21:29 +02:00
parent 2b371fd96b
commit 45c71c09cd
4 changed files with 51 additions and 1 deletions

View file

@ -202,7 +202,8 @@ if(APPLE)
install(CODE "
file(WRITE \"\${CMAKE_INSTALL_PREFIX}/${qtconf_dest_dir}/qt.conf\" \"[Paths]
Plugins = Plugins
Translations = Resources/translations\")
Translations = Resources/translations
Data = Resources\")
" COMPONENT Runtime)
install(CODE "