Skip to content

Change contents of a zip file from the command line

License

Notifications You must be signed in to change notification settings

rivoric/updatezip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UpdateZip

The inspiration for this utility came when I needed to programatically change environment variables inside a jar file (which is just a zip file with a different name). Over time additional requests came in and this is an attempt to properly flesh out that functional requirement. The functionality is provided by a series of commands that tell the script what to do.

The commands currently supported are

  • DELETE file
  • UPDATE file newfile
  • ADD file [path]
  • RENAME file newname
  • REGEX file search replace [flags]

For simple manipulations, a single command can be provided at the command line. For more powerful changes a script can to specified which list each command on a seperate line.

For full usage, please see the docs folder.

Installation

Just copy the python script updatezip.py locally.

About

Change contents of a zip file from the command line

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages