The firmwares.json
file serves as a directory for all available firmware updates for Chase Bliss devices. Each entry in this JSON file contains essential information about a specific firmware, including its name, target device model, file path, and other attributes.
To add a new pedal firmware to the firmwares.json
, follow the steps outlined below:
Ensure your firmware binary file (.bin
) is ready and has been thoroughly tested. Place the file in the appropriate directory within your project. Typically, this would be in a directory path similar to ./dist/models/
.
Create a JSON block for the new firmware entry. This block should include the following information:
id
: A unique identifier for the firmware entry. This should be an integer, incrementing from the last entry in the file.name
: The name of the pedal or firmware.platform
: The device model this firmware is designed for. Use a consistent identifier for each model.filepath
: The relative path to the firmware binary file within the project.description
: A brief description of the firmware or the features it introduces.bgColor
: A hex color code representing the firmware in UIs (optional).active
: A boolean indicating whether this firmware should be considered active or visible to users. Set totrue
for new active firmware.
Example:
{
"id": 3,
"name": "Reverse Mode C",
"platform": "models",
"filepath": "./dist/models/CB_REVERSE_MODE_C.bin",
"description": "Chase Bliss Reverse Mode C Firmware",
"bgColor": "#b1c0ca",
"active": true
}
Open the firmwares.json
file in your text editor or IDE. Append the JSON block you constructed in Step 2 to the array of firmware entries, ensuring it is correctly formatted as valid JSON.
After adding the new entry, validate the JSON file to ensure there are no syntax errors. You can use an online JSON validation tools like this JSON Formatter.
Once validated, commit your changes to the repository, following your project's contribution guidelines. If you're working within a team, consider creating a pull request for review.