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
Unzip the archive by double-clicking it in the Finder
Expected behavior
You should be able to run the simple executable shell script
Actual behavior
You cannot run the shell script: it does not have executable permissions
Version of ZipArchive
2.5.5
Environmental information
I’m running this on macOS Ventura 13.6
Additional information
I’ve attached an Xcode project that illustrates the issue. If you run it, two zip archives will be created in ~/Desktop:
archive-zipUnix.zip
archive-ZipArchive.zip
The archive with the “zipUnix” suffix is created by running the builtin macOS command line zip to create the zip file. Double-clicking in the Finder will create a “hello.sh” script that has executable permissions and can be run.
The archive with the “ZipArchive” suffix is created using SSZipArchive. Double-clicking in the Finder will create a “hello.sh” file without executable permissions.
If you run zipinfo on each, you’ll see the following:
Two obvious differences standout: the version for “hello.sh” in the archive created by zip is 3.0 and maintains it was created on “unx” (unix), while the version in the archive created by SSZipArchive is 0.0 (!) and maintains it was created on “osx”.
If I hardcode the “version_madeby” to be UNIX in my personal build of SSZipArchive, everything works as I’d expect. I’m not sure that’s the best answer however.
Steps to reproduce
Expected behavior
You should be able to run the simple executable shell script
Actual behavior
You cannot run the shell script: it does not have executable permissions
Version of ZipArchive
2.5.5
Environmental information
I’m running this on macOS Ventura 13.6
Additional information
I’ve attached an Xcode project that illustrates the issue. If you run it, two zip archives will be created in ~/Desktop:
archive-zipUnix.zip
archive-ZipArchive.zip
The archive with the “zipUnix” suffix is created by running the builtin macOS command line
zip
to create the zip file. Double-clicking in the Finder will create a “hello.sh” script that has executable permissions and can be run.The archive with the “ZipArchive” suffix is created using SSZipArchive. Double-clicking in the Finder will create a “hello.sh” file without executable permissions.
If you run
zipinfo
on each, you’ll see the following:Two obvious differences standout: the version for “hello.sh” in the archive created by
zip
is 3.0 and maintains it was created on “unx” (unix), while the version in the archive created by SSZipArchive is 0.0 (!) and maintains it was created on “osx”.If I hardcode the “version_madeby” to be UNIX in my personal build of SSZipArchive, everything works as I’d expect. I’m not sure that’s the best answer however.
zipper.zip
The text was updated successfully, but these errors were encountered: