Skip to content

Commit 532f805

Browse files
committed
Add built script and fixes for build
1 parent 5fdeb8e commit 532f805

5 files changed

Lines changed: 4293 additions & 597 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
node_modules
1+
node_modules/
2+
dist/
23
start.sh

icon.png

3.85 KB
Loading

main/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function createWindow() {
5757
window.setResizable(false);
5858
}
5959

60-
window.loadFile('../renderer/index.html');
60+
window.loadFile(path.join(__dirname, '../renderer/index.html'));
6161
return window;
6262
}
6363

@@ -99,7 +99,7 @@ app.whenReady().then(() => {
9999
switch(data) {
100100
case 'err:TIMEOUT':
101101
desktopNotification({body: 'Connection to device lost. Please check your internet connection and reconnect.'});
102-
window.loadFile('../renderer/index.html', {
102+
window.loadFile(path.join(__dirname, '../renderer/index.html'), {
103103
query: {message: 'timeout'}
104104
});
105105
grblBridge.stop();

0 commit comments

Comments
 (0)