I've been making a game using Node-RED for awhile now and it's getting close to a state where I would like to be able to distribute it to others. Perhaps on Steam if at all possible. In the past I packaged a early version of it using electron, I believe following @dceejayGitHub - dceejay/electron-node-red: Electron Node-RED template template. Is there a more up to date guide or better method that I might want to use? I'm not very experienced in distributing my projects to others, and could use some advice. I want to make it as simple as possible for others to purchase and use. Or would it be better to try for a donations model of monetization (I've never monetized a project before)?
Currently I'm a one man dev team, is this even feasible or do I need others like a publisher or second dev?
I run into the following error but it does seem to build:
• cannot build optional native dependency name=bcrypt
version=5.1.1
cause=exit status 1
$ node-pre-gyp install --fallback-to-build
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\Bannd\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\Bannd\Downloads\CardGame\electron-node-red\node_modules\node-red-admin\node_modules\bcrypt\lib\binding\napi-v3\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\Bannd\Downloads\CardGame\electron-node-red\node_modules\node-red-admin\node_modules\bcrypt\lib\binding\napi-v3 --napi_version=9 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1)
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
errorOut=node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@1.0.11
node-pre-gyp info using node@20.7.0 | win32 | x64
node-pre-gyp info build requesting source compile
gyp info it worked if it ends with ok
gyp info using node-gyp@3.6.0
gyp info using node@20.7.0 | win32 | x64
gyp info ok
gyp info it worked if it ends with ok
gyp info using node-gyp@3.6.0
gyp info using node@20.7.0 | win32 | x64
gyp info spawn C:\Users\Bannd\.windows-build-tools\python27\python.exe
gyp info spawn args [
gyp info spawn args 'C:\\Users\\Bannd\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=2015',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\Bannd\\Downloads\\CardGame\\electron-node-red\\node_modules\\node-red-admin\\node_modules\\bcrypt\\build\\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\Bannd\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\Bannd\\.electron-gyp\\15.5.7\\include\\node\\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\\Users\\Bannd\\.electron-gyp\\15.5.7',
gyp info spawn args '-Dnode_gyp_dir=C:\\Users\\Bannd\\node_modules\\npm\\node_modules\\node-gyp',
gyp info spawn args '-Dnode_lib_file=node.lib',
gyp info spawn args '-Dmodule_root_dir=C:\\Users\\Bannd\\Downloads\\CardGame\\electron-node-red\\node_modules\\node-red-admin\\node_modules\\bcrypt',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\\Users\\Bannd\\Downloads\\CardGame\\electron-node-red\\node_modules\\node-red-admin\\node_modules\\bcrypt\\build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp: name 'openssl_fips' is not defined while evaluating condition 'openssl_fips != ""' in binding.gyp while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Users\Bannd\node_modules\npm\node_modules\node-gyp\lib\configure.js:336:16)
gyp ERR! stack at ChildProcess.emit (node:events:514:28)
gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12)
gyp ERR! System Windows_NT 10.0.19045
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Bannd\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Users\\Bannd\\Downloads\\CardGame\\electron-node-red\\node_modules\\node-red-admin\\node_modules\\bcrypt\\lib\\binding\\napi-v3\\bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=C:\\Users\\Bannd\\Downloads\\CardGame\\electron-node-red\\node_modules\\node-red-admin\\node_modules\\bcrypt\\lib\\binding\\napi-v3" "--napi_version=9" "--node_abi_napi=napi" "--napi_build_version=3" "--node_napi_label=napi-v3"
gyp ERR! cwd C:\Users\Bannd\Downloads\CardGame\electron-node-red\node_modules\node-red-admin\node_modules\bcrypt
gyp ERR! node -v v20.7.0
gyp ERR! node-gyp -v v3.6.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\Bannd\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\Bannd\Downloads\CardGame\electron-node-red\node_modules\node-red-admin\node_modules\bcrypt\lib\binding\napi-v3\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\Bannd\Downloads\CardGame\electron-node-red\node_modules\node-red-admin\node_modules\bcrypt\lib\binding\napi-v3 --napi_version=9 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\Bannd\Downloads\CardGame\electron-node-red\node_modules\@mapbox\node-pre-gyp\lib\util\compile.js:89:23)
node-pre-gyp ERR! stack at ChildProcess.emit (node:events:514:28)
node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1105:16)
node-pre-gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:305:5)
node-pre-gyp ERR! System Windows_NT 10.0.19045
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Bannd\\Downloads\\CardGame\\electron-node-red\\node_modules\\@mapbox\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\Bannd\Downloads\CardGame\electron-node-red\node_modules\node-red-admin\node_modules\bcrypt
node-pre-gyp ERR! node -v v20.7.0
node-pre-gyp ERR! node-pre-gyp -v v1.0.11
node-pre-gyp ERR! not ok
error Command failed with exit code 1.
However my images don't load, so I must be doing the static routes incorrectly or is the error causing the problem?