You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Has anyone found a way of using this with CMake's CPack for DragNDrop, TGZ, or productbuild generators on MacOSX? (they seem to reset the icon on the directory)
#12
Open
subatomicglue opened this issue
Mar 23, 2018
· 3 comments
Here is PostInstall.cmake, which is required or else make install will strip off the icon from the bundle folder.
execute_process( COMMAND fileicon set install/MyPlugin.vst image.png )
So running make generates MyPlugin.vst directory with the image on it, (the add_custom_command step sets it), looks perfect.
Running make install copies the bundle folder with install( DIRECTORY, stripping the image, so I compensate with the PostInstall.cmake which reruns fileicon script from execute_process.
And then the CPack packager generates the .dmg, the .pkg, and the .tgz, which strips the folder image again from all...
Any ideas why CMake is stripping the image? (and how to get it to not do that)
The text was updated successfully, but these errors were encountered:
I'm not familiar CMake, but it sounds that it at least by default it ignores HFS (the macOS filesystem's) extended attributes, in which the icon information is stored.
(apologies for the cmake question, but since image related, perhaps someone here has experienced this)
Has anyone found a way of using this with CMake's CPack for DragNDrop, TGZ, or productbuild generators on MacOSX?
They seem to reset the icon on the directory:
Relevant lines from cmake:
Here is
PostInstall.cmake
, which is required or elsemake install
will strip off the icon from the bundle folder.So running
make
generatesMyPlugin.vst
directory with the image on it, (theadd_custom_command
step sets it), looks perfect.Running
make install
copies the bundle folder withinstall( DIRECTORY
, stripping the image, so I compensate with thePostInstall.cmake
which rerunsfileicon
script fromexecute_process
.And then the
CPack
packager generates the.dmg
, the.pkg
, and the.tgz
, which strips the folder image again from all...Any ideas why
CMake
is stripping the image? (and how to get it to not do that)The text was updated successfully, but these errors were encountered: