diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2014-09-26 18:38:38 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-11-13 13:44:15 (GMT) |
commit | 167a465565cda9bb33d2e919509c23a761ea45e9 (patch) | |
tree | 8206168801645e40f39675c9e611b66bf2e56b42 /Source/CPack/cmCPackDragNDropGenerator.h | |
parent | 9c1dfbfd600819a751d4c5058fd939650ee6d6b4 (diff) | |
download | CMake-167a465565cda9bb33d2e919509c23a761ea45e9.zip CMake-167a465565cda9bb33d2e919509c23a761ea45e9.tar.gz CMake-167a465565cda9bb33d2e919509c23a761ea45e9.tar.bz2 |
CPack/DragNDrop: Optionally run an AppleScript when making a package
While the DragNDropGenerator supports custom DS_Store and backgrounds,
it is still very hard to automatically setup nice looking packages. The
primary issue is that the DS_Store embeds the name of the volume in the
path to backgrounds, which means that if a package embeds the version in
its volume name a new DS_Store must generated for each release.
Instead one now can use applescript to setup the DS_Store.
This change also ensures that temporary RW image has enough space for
these changes, creating 1 MB dummy padding file, that is later removed
from the image.
Co-Author: Adam Strzelecki <adam.strzelecki@java.pl>
Diffstat (limited to 'Source/CPack/cmCPackDragNDropGenerator.h')
-rw-r--r-- | Source/CPack/cmCPackDragNDropGenerator.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/CPack/cmCPackDragNDropGenerator.h b/Source/CPack/cmCPackDragNDropGenerator.h index 12db469..53d38c4 100644 --- a/Source/CPack/cmCPackDragNDropGenerator.h +++ b/Source/CPack/cmCPackDragNDropGenerator.h @@ -36,6 +36,7 @@ protected: bool CopyFile(std::ostringstream& source, std::ostringstream& target); + bool CreateEmptyFile(std::ostringstream& target, size_t size); bool RunCommand(std::ostringstream& command, std::string* output = 0); std::string |