Skip to content

Instantly share code, notes, and snippets.

@funkatron
Created January 6, 2014 00:45
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save funkatron/8276291 to your computer and use it in GitHub Desktop.
Save funkatron/8276291 to your computer and use it in GitHub Desktop.
converting 7zip files with multiple ROMs to individual files for OpenEmu usage

I use Homebrew for package management, so the instructions here work with that. You could probably get p7zip and atool another way if you want.

  1. install p7zip with homebrew: brew install p7zip
  2. install atool with homebrew: brew install atool
  3. extract individual files from .7z archives to current directory: atool -X . -e -E *.7z
  4. delete or move the .7z files: rm *.7z
  5. archive each file into its own ZIP archive using find and atool: find . -d 1 -type f -exec atool -a -F 7z -E -e {} ';'
  6. delete the uncompressed rom files. They should have a common file extension, which you'll need to change depending on the ROM type. For example, I needed to delete a bunch of .gb and .gbc files: rm *.gb; rm *.gbc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment