Created
May 22, 2025 14:46
-
-
Save szydan/05ba4b6024e72ff716bf97c14c9c97b7 to your computer and use it in GitHub Desktop.
replacing file inside zip
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// THIS is the trick to have the same folder structure as in the archive you are modifying | |
mkdir -p siren-platform-demo-data-14.8.0-SNAPSHOT-darwin-x86_64/siren-investigate | |
unzip -p siren-platform-demo-data-14.8.0-20250513.083732-50-darwin-x86_64.zip 'siren-platform-demo-data-14.8.0-SNAPSHOT-darwin-x86_64/siren-investigate/package.json' > siren-platform-demo-data-14.8.0-SNAPSHOT-darwin-x86_64/siren-investigate/package.json | |
less siren-platform-demo-data-14.8.0-SNAPSHOT-darwin-x86_64/siren-investigate/package.json | |
// HERE MODIFY THE VERSION | |
zip -ur siren-platform-demo-data-14.8.0-20250513.083732-50-darwin-x86_64.zip 'siren-platform-demo-data-14.8.0-SNAPSHOT-darwin-x86_64/siren-investigate/package.json' | |
// now print the package.json from inside | |
unzip -p siren-platform-demo-data-14.8.0-20250513.083732-50-darwin-x86_64.zip 'siren-platform-demo-data-14.8.0-SNAPSHOT-darwin-x86_64/siren-investigate/package.json' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment