yeatse / opencv-spm

Integrate OpenCV into your project using Swift Package Manager.
Apache License 2.0
76 stars 23 forks source link

Enable symlinks in zip #8

Closed hguandl closed 1 year ago

hguandl commented 1 year ago

The framework structure contains symbolic link. zip -r copies them by default. As described in zip(1), the archive size can be reduced with symlinks enabled.

-y
--symlinks
       For UNIX and VMS (V8.3 and later), store symbolic links as such in the zip archive,
       instead of compressing and storing the file referred to by the link.  This can avoid
       multiple copies of files being included in the archive as zip recurses the directory
       trees and accesses files directly and by links.

In my case, the size is 454M -> 151M.

yeatse commented 1 year ago