When I run an obfuscator like allatori
on my JAR
file, it will add a comment to the archive saying something like Obfuscation by Allatori Obfuscator http://www.allatori.com
Using WinRAR
, this comment can be removed by editing the archive comment.
However, I did not find a way to do this in a batch script or Java code to integrate into my build process.
How can it be done?
This is how Archive File comments can be updated using WinRAR CLI:
for %I in ("E:\YOUR\JAR\LOCATION\*.jar") do @"%ProgramFiles%\WinRAR\WinRAR.exe" c -zBLANK_COMMENT_FILE.txt "%I"
Create one blank file named BLANK_COMMENT_FILE.txt
where you run this command.
Run this command with administrator access.
Hope this will help you.