Keka icon indicating copy to clipboard operation
Keka copied to clipboard

Preserve metadata with p7zip

Open a-tokarev opened this issue 7 years ago • 2 comments

WORKARROUND

As a workaround, if metadata is important for your compression use TAR and then compress it as ZIP or 7Z or simply use any other format (GZIP, BZIP2, XZ, LZIP, BROTLI, ZSTD...).

Original issue

Folders lose their custom icons in .7z and .zip archives created with Keka 1.1.0 b5 (please see the pic):

custom_icon

(in both cases 'Exclude Mac resource forks' option was off before compression)

a-tokarev avatar Oct 23 '17 12:10 a-tokarev

Right now for 7z and Zip compression Keka uses p7zip, which does not preserve Mac metadata. If you want to keep that, Tar it first and the 7z/Zip or just create a Tarball using Gzip or Bzip2.

aonez avatar Oct 24 '17 08:10 aonez

Just some things to look at:

  • https://github.com/packagesdev/goldin
  • /System/Library/CoreServices/FixupResourceForks
  • https://github.com/packagesdev/goldout

aonez avatar Oct 24 '17 09:10 aonez