It requires node.js. Download the latest release from the github page, extract it into the folder of your choice, and add the folder to your system PATH. Then you can use the pack-mmip and pack-zip commands from any folder.
Pack-mmip automatically creates an archive with an .mmip extension, and pack-zip automatically creates an archive with a .zip extension. MMIPs are just zip archives with a different filename, so the same tool can be used for both purposes.
Usage:
Code: Select all
pack-mmip (path to directory) ([optional] path to packed extension OR just its name) (options)
OPTIONS:
-y --Yes Automatically answer "yes" to prompts
-o --OpenAfterComplete Open file (Install to MediaMonkey) after complete
-s --ShowAfterComplete Show in folder after complete
-b --PutFileIntoBin Put resulting file into a subfolder named "bin"
-d --Debug Debug logs. Please use this if you encounter a bug, and paste the logs into a new GitHub issue.
-i --IgnoreDefaults Ignore configuration rules
If path to packed extension is not specified, it will default to the name of the folder.
Code: Select all
pack-mmip config
pack-zip config
Code: Select all
# Packs C:/projects/MyPackage into C:/projects/MyPackage.mmip
pack-mmip C:/projects/MyPackage C:/projects/MyPackage.mmip
# Does the same as above, but with relative paths instead of absolute paths
# If you do not add a .mmip file extension, it will do it for you.
cd C:/projects/MyPackage
pack-mmip ./ ../MyPackage
# If you do not specify a file name, it will automatically give it the name of the original folder.
cd C:/projects
pack-mmip MyPackage MyCustomPackageName
# result: C:/projects/MyCustomPackageName.mmip
pack-mmip MyPackage
# result: C:/projects/MyPackage.mmip
pack-zip MyPackage
# result: C:/projects/MyPackage.zip
# The -s argument will open a file explorer window containing the newly packed file.
pack-mmip MyPackage -s
# The -o argument will attempt to run the file, causing MediaMonkey to install it.
pack-mmip MyPackage -o
# The -b argument will place your packaged file into a subfoler named "bin".
pack-mmip MyPackage -b
# result: C:/projects/bin/MyPackage.mmip
Code: Select all
pack-mmip MyExtension MyExtension.mmip -o
I really hope this is helpful! Let me know if any of you use it, or if you have suggestions for improvements!