modifyProject

fun BuildRoot.modifyProject(path: Path)

Modifies an existing Scratch project file (.sb3) with the generated project JSON.

Parameters

path

The path to the .sb3 file to modify.


fun ProjectJson.modifyProject(path: Path, addResources: Boolean = false)

Modifies an existing Scratch project file (.sb3) with the generated project JSON and optionally adds resources.

Parameters

path

The path to the .sb3 file to modify.

addResources

If true, assets will also be added to the project file.