Skip to content

Allows you to save a list of your Foundry VTT modules' manifest URLs and then use that list to download and install those modules

License

Notifications You must be signed in to change notification settings

Remgr12/Foundry-module-profiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Foundry VTT Module Utility

This script helps manage Foundry VTT modules by saving a list of currently installed modules and their manifest URLs, or by loading (downloading and unzipping) modules from a previously saved list.

Features

  • Save Mode:
    • Scans a specified directory (default: current directory) for module.json files.
    • Extracts the module's title (or name/ID) and its manifest URL.
    • Saves this information to a user-specified file in the saves directory (e.g., saves/my_module_setup.txt).
  • Load Mode:
    • Lists available module profiles from the saves directory.
    • Prompts the user to select a profile to load.
    • For each module in the selected profile:
      • Fetches the remote module.json from the saved manifest URL.
      • Downloads the module package using the download URL found in the remote manifest.
      • Unzips the module into a specified directory (default: a subdirectory in the current directory, named after the module ID).
    • Handles modules packaged with a nested directory.
    • Avoids re-downloading or re-installing if the module directory already exists and contains a module.json.

Prerequisites

The following tools must be installed and accessible in your PATH:

  • jq: For parsing JSON data from module.json files.
  • wget: For downloading manifest files and module packages in load mode.
  • unzip: For decompressing module packages in load mode.
  • mktemp: For handling temporary files, especially for nested zip structures in load mode.

Usage

./profile.sh <mode>

or leave empty for help

./profile.sh

About

Allows you to save a list of your Foundry VTT modules' manifest URLs and then use that list to download and install those modules

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages