spatialos / CppBlankProject

This is a SpatialOS project which can serve as a template for building SpatialOS workers using the C++ SDK.
28 stars 19 forks source link

Fix copied worker schema file name #1

Closed jimmysoda closed 7 years ago

jimmysoda commented 7 years ago

The worker_create.sh script omits renaming the copied worker schema from spatialos.$OLD_NAME.worker.json to spatialos.$NEW_NAME.worker.json.

I already have a fork with this fix:

# Rename the worker schema so it is based on the new worker name
mv $DEST_PROJECT_PATH/workers/$NEW_NAME/spatialos.$OLD_NAME.worker.json $DEST_PROJECT_PATH/workers/$NEW_NAME/spatialos.$NEW_NAME.worker.json
jimmysoda commented 7 years ago

I could not reproduce the issue when copying to a SpatialOS project, but was able to reproduce it when copying to an empty directory. The usage comment on the script states that the target directory is expected to be a SpatialOS project. See comments in pull request #2 for more details.