inplan 0.1.4 → 0.1.5
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/bin/cli.js +8 -3
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -866,7 +866,7 @@ function waitForActions(opts) {
|
|
|
866
866
|
}
|
|
867
867
|
|
|
868
868
|
// src/cli.ts
|
|
869
|
-
var VERSION = "0.1.
|
|
869
|
+
var VERSION = "0.1.5";
|
|
870
870
|
function output(obj) {
|
|
871
871
|
process.stdout.write(JSON.stringify(obj) + "\n");
|
|
872
872
|
}
|
|
@@ -933,10 +933,15 @@ function spawnApp(file) {
|
|
|
933
933
|
if (bundled.appMain === null) {
|
|
934
934
|
process.stderr.write("[inplan] no bundled editor (running from source?) \u2014 set INPLAN_APP_CMD to your editor; running headless\n");
|
|
935
935
|
} else {
|
|
936
|
+
const root = resolve2(dirname6(bundled.appMain), "..", "..");
|
|
936
937
|
process.stderr.write(
|
|
937
938
|
`[inplan] the bundled editor's Electron runtime is unavailable: ${bundled.error}
|
|
938
|
-
\u2192
|
|
939
|
-
|
|
939
|
+
\u2192 re-download the binary: npm rebuild electron --prefix "${root}"
|
|
940
|
+
If a proxy/firewall blocks the download, set a mirror first, e.g.
|
|
941
|
+
ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ (macOS/Linux)
|
|
942
|
+
set ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ (Windows cmd)
|
|
943
|
+
Or point INPLAN_APP_CMD at an Electron that launches the app, e.g.
|
|
944
|
+
INPLAN_APP_CMD="electron '${bundled.appMain}'"
|
|
940
945
|
Running headless for now.
|
|
941
946
|
`
|
|
942
947
|
);
|