Can i store unix permissions in a zip file (built with apache ant)?

前端 未结 7 1697
抹茶落季
抹茶落季 2021-01-02 02:03

I\'m building a linux installer for a Java application, and I end up with an install.jar and a setup.sh that I put in a zip file using ant.

The idea is the user unzi

7条回答
  •  灰色年华
    2021-01-02 02:37

    
                zip -ry abc.zip *
    
    

    The ant script above invokes a shell script to create the zip archive in which the permissions are very well preserved. It works with Ant 1.7 and above. However I have not tried verified running this ant script on windows. This works very well on mac.

提交回复
热议问题