How to setup an unity-js-scopes development environment?

Asked by Michael Weimann

Hello,

I want to take care of some unity-js-scopes bugs . But I have no clue how to run a compiled version of unity-js-scopes on my machine. What I've done so far is checking out the project and make a successful build. Assuming I've a JS coded scope I want to run with the fresh compiled units-js-scopes version, what to do now?

Tanks
Best regards

Question information

Language:
English Edit question
Status:
Solved
For:
unity-js-scopes Edit question
Assignee:
No assignee Edit question
Solved by:
Marcus Tomlinson
Solved:
Last query:
Last reply:
Revision history for this message
Marcus Tomlinson (marcustomlinson) said :
#1

Ah nice, you've built the project!

What you need to do now is:
1) run "sudo make install" on the project for the new bindings to be installed on your system,
2) run "unity-js-scopes-tool setup" to sync-up your SDK chroots,
3) remove the <scope>/src/node_modules/unity-js-scopes folder from your scope's project directory, then
4) run the scope again (due to step 3, this will pull in the new bindings and rebuild)

Revision history for this message
Michael Weimann (m982) said :
#2

Thanks, it works!

One last point about it: What's the preferred way not messing up my system? Should I run it in a VM/chroot?

Revision history for this message
Michael Weimann (m982) said :
#3

Sorry, one more: Would it work if I do a click build and ship the custom build with it?

Revision history for this message
Best Marcus Tomlinson (marcustomlinson) said :
#4

Sure, I work in a VM for work always, and yeah once you've set up your environment, built your scope click with the custom bindings build, you can ship it that way (the scope is shipped with its dependencies embedded).

Hope that answers your questions.

Revision history for this message
Michael Weimann (m982) said :
#5

Yep, perfectly, thanks!

Revision history for this message
Michael Weimann (m982) said :
#6

Thanks Marcus Tomlinson, that solved my question.