Commit f559951
committed
use code as node runtime on Linux/Mac
By setting the ELECTRON_RUN_AS_NODE environment variable, we can use `code` as a node runtime and execute shell.ts directly. However, this only works on non-Windows platforms because `code` has the GUI app flag set on Windows that makes stdin unusable. So, we will have to continue to use the nexe version on Windows until we can figure out a workaround.
Removing 2 out of 3 native binaries significantly reduces the download size.1 parent bfe8525 commit f559951
File tree
5 files changed
+7
-10
lines changed- native
- darwin
- linux
- src
5 files changed
+7
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
493 | 495 | | |
494 | 496 | | |
495 | 497 | | |
| 498 | + | |
| 499 | + | |
496 | 500 | | |
497 | | - | |
498 | | - | |
| 501 | + | |
| 502 | + | |
499 | 503 | | |
500 | 504 | | |
501 | 505 | | |
| |||
0 commit comments