Here's my problem. On occasion, I create the odd deb package using dpkg-deb (
e.g., dpkg-deb --build "folder" file.deb). The problem is that any file with an extended attribute, carries along an ._AppleDouble file to the package. So when the user installs the bit of software, their system is littered with ._AppleDouble files.
-rw-r--r--@ 1 cksum staff 18305 9 Sep 22:42 ScreenShot.png
would carry with it a ._ScreenShot.png file.
Current Method of Coping
Currently, I'm using the incredibly agonizing xattr command to list the extended attribute and then strip them. For example, the above would be carrying the following as shown by xattr,
com.apple.FinderInfo com.apple.metadata:kMDItemIsScreenCapture com.apple.metadata:kMDItemScreenCaptureType
In this case, I would have to strip the resources one at a time, again using xattr,
xattr -d com.apple.FinderInfo ScreenShot.png xattr -d com.apple.metadata:kMDItemIsScreenCapture ScreenShot.png xattr -d com.apple.metadata:kMDItemScreenCaptureType ScreenShot.png
This is quite arduous when you sometimes have dozens of files and has become far too much of a pain.
I'm aware of the utility BlueHarvest, but I'm not keen on paying for something I won't use all that much. Additionally, I've trialed the software and have noticed that unfortunately, it sometimes fails to remove them all. Lastly, it is more suited for the management of disks used by different operating systems than it is for local folders.
An ideal solution would be to continue using xattr (as it is the most reliable) but having the process automated. It is important that I remove the ._AppleDouble files before I package them. This, however, is not the only solution and I am certainly open to all manner of ideas. But I am hoping that I can accomplish my goal without the need to install additional programs or rely on daemons.