mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-27 16:10:32 +00:00
fix for dist windows exe path not found due to missing file extension
This commit is contained in:
parent
047c60205f
commit
8cf55933d3
1 changed files with 3 additions and 2 deletions
|
|
@ -59,11 +59,12 @@ app.whenReady().then(async () => {
|
|||
await mainWindow.loadFile(path.join(__dirname, 'loading.html'));
|
||||
|
||||
// find path to python/cxfreeze reticulum webchat executable
|
||||
var exe = path.join(__dirname, 'build/exe/ReticulumWebChat');
|
||||
const exeName = process.platform === "win32" ? "ReticulumWebChat.exe" : "ReticulumWebChat";
|
||||
var exe = path.join(__dirname, `build/exe/${exeName}`);
|
||||
|
||||
// if dist exe doesn't exist, check local build
|
||||
if(!fs.existsSync(exe)){
|
||||
exe = path.join(__dirname, '..', 'build/exe/ReticulumWebChat');
|
||||
exe = path.join(__dirname, '..', `build/exe/${exeName}`);
|
||||
}
|
||||
|
||||
// ask mac users for microphone access for audio calls to work
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue