Hello everyone, the file isn't working on new MacOS and I found a way to fix it. You need to download new, normal version of nwjs file on nw.js . After that open package file for both the game file and the nwjs file. move the app.nw and overwrite the app.incs from the resource folder of the game file into nwjs Resources folder, use the command "
"sudo xattr -cr (path to nwjs.app) "
then go to package.json, change the line that goes: "name": "" to "name": "game" and run the nwjs file. You then can play the game