How to repack file after edit ?