Skip to content

Commit 2634a20

Browse files
committed
JBDS-4504 Installer randomly downloading components that bundled
1 parent 531276c commit 2634a20

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

main/index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,13 @@ app.on('ready', function() {
7070

7171
// Load the index.html of the app
7272
mainWindow.loadURL(`file://${baseLocation}/../browser/index.html`);
73-
mainWindow.bundleTempFolder = process.argv.length > 1 ? process.argv[1].replace(/^--/, '') : undefined;
73+
74+
// only for windows where 7zip pass location where self extracting archive
75+
// was unpacked
76+
if (process.platform === 'win32') {
77+
mainWindow.bundleTempFolder = process.argv.length > 1 ? process.argv[1].replace(/^--/, '') : undefined;
78+
}
79+
7480
mainWindow.once('ready-to-show', () => {
7581
mainWindow.show();
7682
});

0 commit comments

Comments
 (0)