I ended up looking at this today and got a bit further once more, thanks for the help!
The problem I have now is with running the app after building it.
I have these files here:
Directory:
E:\Project\program\javascript\safenetwork-fuse\dist\mock\node_modules\@maidsafe\safe-node-app\src\native\mock
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 2018-09-28 16:10 26540463 safe_app.dll
-a---- 2018-09-28 16:10 5795840 system_uri.dll
And I run pkg . -t host -o ./dist/mock/mount-safe
in the safenetwork-fuse
directory to create the .exe file.
The problem is that the resulting exe doesn’t want to run. I get the following errors in PowerShell:
PS E:\Project\program\javascript\safenetwork-fuse> .\dist\mock\mount-safe.exe
pkg/prelude/bootstrap.js:1176
throw error;
^
Error: No native build was found for runtime=node abi=57 platform=win32 arch=x64
at Function.load.path (E:\snapshot\safenetwork-fuse\node_modules\node-gyp-build\index.js:31:9)
at load (E:\snapshot\safenetwork-fuse\node_modules\node-gyp-build\index.js:13:23)
at Object.<anonymous> (E:\snapshot\safenetwork-fuse\node_modules\fuse-bindings\index.js:1:99)
at Module._compile (pkg/prelude/bootstrap.js:1252:22)
at Object.Module._extensions..js (module.js:661:10)
at Module.load (module.js:563:32)
at tryModuleLoad (module.js:503:12)
at Function.Module._load (module.js:495:3)
at Module.require (module.js:594:17)
at Module.require (pkg/prelude/bootstrap.js:1157:31)
This happens even though I have it set to ‘host’ as the target, so I don’t know what’s going on.
Any ideas?