The MBot Scratch VM is a fork of the Scratch Foundation VM, which is a library for representing, running, and maintaining the state of computer programs written using Scratch Blocks.
To install the MBot Scratch VM, run the following commands. This will install npm and Node.js if it is not already installed on the system.
./install_scripts/install.shThe original Scratch GUI and Scratch VM repositories receive about 100 commits per week because of dependency bot updates. This leads to Scratch creating several new releases of the VM and GUI every week. Every once in a while, we should sync our forks with the original repositories. To do this, use the following commands.
git remote add upstream https://github.com/scratchfoundation/scratch-vm.git
git fetch upstream
git rebase upstream/developAt this point, there will likely be merge conflicts. They should only be in package-lock.json. Resolve these conflicts before continuing. Once the merge conflicts are resolved, finish the rebase.
git rebase --continue
git config pull.rebase false
git pull
git push