Skip to content

Commit dd4affd

Browse files
JIB3377MaxWeisenmhmaidi789dieunity
committed
Prepped files to be ready for distribution
Co-authored-by: Justin Baik <bij3377@gmail.com> Co-authored-by: Max Weisenberger <germanbluemax@gmail.com> Co-authored-by: Mo Hmaidi <mhmaidi789@gmail.com> Co-authored-by: Dieu Huynh <dieuhhuynh@gmail.com>
1 parent b3965ea commit dd4affd

File tree

12 files changed

+43
-41
lines changed

12 files changed

+43
-41
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"dotenv": "^8.2.0",
4141
"electron-is-dev": "^1.1.0",
4242
"fibers": "^5.0.0",
43+
"fix-path": "^3.0.0",
4344
"js-beautify": "^1.10.0",
4445
"monaco-editor": "^0.17.0",
4546
"node-pty": "^0.10.0",
@@ -113,4 +114,4 @@
113114
"spectron": "^5.0.0",
114115
"test-data-bot": "^0.8.0"
115116
}
116-
}
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)