Rojo 6/7's CLI has a rojo build command, which generates a Roblox compatible file (rbxm, rbxmx, etc.) from your Rojo project file. This is much better than using the current generate_rbxmx_file.py script!
A way to approach this is by creating another project.json file. The current default.project.json is for syncing a DataModel. However, to create your current rbxmx structure, this new project file should sync a Folder. For example, I will call this model.project.json:
{
"name": "GameAnalyticsSDK",
"tree": {
"$className": "Folder",
"MOVE ME TO CLIENT": {
"$path": "GameAnalyticsSDK/GameAnalyticsClient"
},
"MOVE ME TO SERVER": {
"$path": "GameAnalyticsSDK/GameAnalytics"
}
}
}
}
Now, when I pass this file to rojo build in a console, like this:
Rojo 6/7's CLI has a
rojo build
command, which generates a Roblox compatible file (rbxm, rbxmx, etc.) from your Rojo project file. This is much better than using the currentgenerate_rbxmx_file.py
script!A way to approach this is by creating another project.json file. The current
default.project.json
is for syncing a DataModel. However, to create your current rbxmx structure, this new project file should sync a Folder. For example, I will call thismodel.project.json
:Now, when I pass this file to
rojo build
in a console, like this:a
GameAnalyticsSDK.rbxmx
file will get correctly generated in the release directory.