Skip to content

Commit 8bb66f5

Browse files
committed
Merge branch 'master' into dist
2 parents 6df8281 + dd4affd commit 8bb66f5

File tree

13 files changed

+50
-46
lines changed

13 files changed

+50
-46
lines changed

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@
1717
"target": [
1818
"deb"
1919
],
20-
"maintainer": "team spearmint"
20+
"icon": "build/icon.*",
21+
"maintainer": "Team Spearmint"
2122
}
2223
},
2324
"main": "public/electron.js",
2425
"bugs": {
25-
"url": "https://github.com/oslabs-beta/spearmint_LA42/issues",
26+
"url": "https://github.com/oslabs-beta/spearmint_LA42/issues"
2627
},
2728
"homepage": "./",
2829
"private": true,
@@ -39,6 +40,7 @@
3940
"dotenv": "^8.2.0",
4041
"electron-is-dev": "^1.1.0",
4142
"fibers": "^5.0.0",
43+
"fix-path": "^3.0.0",
4244
"js-beautify": "^1.10.0",
4345
"monaco-editor": "^0.17.0",
4446
"node-pty": "^0.10.0",
@@ -57,7 +59,7 @@
5759
"xterm-for-react": "^1.0.4"
5860
},
5961
"scripts": {
60-
"install-once": "concurrently \"npm i\" \"npm run electron-rebuild\"",
62+
"install-once": "npm i && npm run electron-rebuild",
6163
"test": "react-app-rewired test --env=jsdom",
6264
"test:e2e": "./node_modules/mocha/bin/mocha src/__tests__/spec.e2e.js",
6365
"test:integra": "mocha src/__tests__/spec.integra.js",
@@ -112,4 +114,4 @@
112114
"spectron": "^5.0.0",
113115
"test-data-bot": "^0.8.0"
114116
}
115-
}
117+
}

public/AccLens_Demo.gif

404 KB
Loading

public/appDemo - Copy.gif

-2 MB
Binary file not shown.

public/electron.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,17 @@ const isDev = require('electron-is-dev');
66
const fs = require('fs');
77
const os = require('os');
88
const pty = require('node-pty');
9+
const fixPath = require('fix-path');
910

1011
//Dynamic variable to change terminal type based on os
1112
const shell = os.platform() === 'win32' ? 'powershell.exe' : 'bash';
13+
console.log("process.env.Path1: ", process.env.PATH);
14+
//=> '/usr/bin'
1215

16+
fixPath();
17+
18+
console.log("process.env.Path2: ", process.env.PATH);
19+
//=> '/usr/local/bin:/usr/bin'
1320
let mainWindow;
1421

1522
if (isDev) console.log('electron version', process.versions.electron);
@@ -53,6 +60,7 @@ function createWindow() {
5360
cwd: process.env.HOME,
5461
env: process.env,
5562
};
63+
console.log("process.env.HOME: ", process.env.HOME);
5664

5765
const ptyProcess = pty.spawn(shell, [], ptyArgs);
5866
// with ptyProcess, we want to send incoming data to the channel terminal.incData
@@ -125,7 +133,7 @@ ipcMain.on('OpenFolderButton.dialog', (e) => {
125133
UNIVERSAL IPC CALLS
126134
(The following IPC calls are made from various components in the codebase)
127135
*/
128-
ipcMain.on('Universal.stat' , (e, filePath) => {
136+
ipcMain.on('Universal.stat', (e, filePath) => {
129137
e.returnValue = fs.statSync(filePath).isDirectory();
130138
});
131139

public/generateTest.png

207 KB
Loading
395 KB
Loading

public/mainPage.png

44.7 KB
Loading

public/newReact.png

-146 KB
Binary file not shown.

public/runTest.png

600 KB
Loading

public/testfile.png

-226 KB
Binary file not shown.

0 commit comments

Comments
 (0)