@holochain/hc-spin 0.200.1 → 0.200.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/cli.js +17 -1
- package/dist/cli.js +17 -1
- package/dist/main/index.js +49 -1584
- package/dist/preload/index.js +4 -1
- package/package.json +4 -4
- package/src/main/index.ts +55 -7
- package/src/preload/index.ts +9 -2
- package/rust-utils/.yarnrc.yml +0 -1
- package/rust-utils/Cargo.toml +0 -44
- package/rust-utils/build.rs +0 -5
- package/rust-utils/index.d.ts +0 -33
- package/rust-utils/index.js +0 -258
- package/rust-utils/package.json +0 -31
- package/rust-utils/src/decode_webhapp.rs +0 -112
- package/rust-utils/src/lib.rs +0 -7
- package/rust-utils/src/types.rs +0 -52
- package/rust-utils/src/utils.rs +0 -4
- package/rust-utils/src/zome_call_signer.rs +0 -99
package/cli/cli.js
CHANGED
|
@@ -1,8 +1,24 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
const { spawn } = require('child_process');
|
|
3
3
|
const path = require('path');
|
|
4
|
+
const fs = require('fs');
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
let electronBinary;
|
|
7
|
+
let pathStr = '../node_modules/.bin/electron';
|
|
8
|
+
// recursively look for electron binary in node_modules folder
|
|
9
|
+
for (let i = 0; i < 7; i++) {
|
|
10
|
+
const maybeElectronBinary = path.resolve(__dirname, pathStr);
|
|
11
|
+
if (fs.existsSync(maybeElectronBinary)) {
|
|
12
|
+
electronBinary = maybeElectronBinary;
|
|
13
|
+
break;
|
|
14
|
+
} else {
|
|
15
|
+
pathStr = '../' + pathStr;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
if (!electronBinary) {
|
|
20
|
+
throw new Error('Failed to locate electron binary. __dirname: ', __dirname);
|
|
21
|
+
}
|
|
6
22
|
|
|
7
23
|
const child = spawn(
|
|
8
24
|
electronBinary,
|
package/dist/cli.js
CHANGED
|
@@ -1,8 +1,24 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
const { spawn } = require('child_process');
|
|
3
3
|
const path = require('path');
|
|
4
|
+
const fs = require('fs');
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
let electronBinary;
|
|
7
|
+
let pathStr = '../node_modules/.bin/electron';
|
|
8
|
+
// recursively look for electron binary in node_modules folder
|
|
9
|
+
for (let i = 0; i < 7; i++) {
|
|
10
|
+
const maybeElectronBinary = path.resolve(__dirname, pathStr);
|
|
11
|
+
if (fs.existsSync(maybeElectronBinary)) {
|
|
12
|
+
electronBinary = maybeElectronBinary;
|
|
13
|
+
break;
|
|
14
|
+
} else {
|
|
15
|
+
pathStr = '../' + pathStr;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
if (!electronBinary) {
|
|
20
|
+
throw new Error('Failed to locate electron binary. __dirname: ', __dirname);
|
|
21
|
+
}
|
|
6
22
|
|
|
7
23
|
const child = spawn(
|
|
8
24
|
electronBinary,
|