|
|
@@ -400,6 +400,7 @@ int cmCPackDragNDropGenerator::CreateDMG(const std::string& src_dir,
|
|
|
|
|
|
// Optionally add a custom background image ...
|
|
|
// Make sure the background file type is the same as the custom image
|
|
|
+ // and that the file is hidden so it doesn't show up.
|
|
|
if(!cpack_dmg_background_image.empty())
|
|
|
{
|
|
|
const std::string extension =
|
|
|
@@ -409,7 +410,7 @@ int cmCPackDragNDropGenerator::CreateDMG(const std::string& src_dir,
|
|
|
|
|
|
std::ostringstream package_background_destination;
|
|
|
package_background_destination << staging.str()
|
|
|
- << "/background" << extension;
|
|
|
+ << "/.background/background" << extension;
|
|
|
|
|
|
if(!this->CopyFile(package_background_source,
|
|
|
package_background_destination))
|
|
|
@@ -421,21 +422,6 @@ int cmCPackDragNDropGenerator::CreateDMG(const std::string& src_dir,
|
|
|
|
|
|
return 0;
|
|
|
}
|
|
|
-
|
|
|
- std::ostringstream temp_background_hiding_command;
|
|
|
- temp_background_hiding_command << this->GetOption("CPACK_COMMAND_SETFILE");
|
|
|
- temp_background_hiding_command << " -a V \"";
|
|
|
- temp_background_hiding_command << package_background_destination.str();
|
|
|
- temp_background_hiding_command << "\"";
|
|
|
-
|
|
|
- if(!this->RunCommand(temp_background_hiding_command))
|
|
|
- {
|
|
|
- cmCPackLogger(cmCPackLog::LOG_ERROR,
|
|
|
- "Error setting attributes on disk volume background image."
|
|
|
- << std::endl);
|
|
|
-
|
|
|
- return 0;
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
// Create a temporary read-write disk image ...
|