Skip to content

Commit

Permalink
Fixed again since Linux doesn't have extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Terria-K committed Sep 5, 2023
1 parent c7de84e commit c1ba7a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyrgos-gui/src/lib/Menu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
}
const platform = await os.platform();
let executableFormat = "exe";
let executableFormat = ".exe";
if (platform == 'linux')
executableFormat = 'bin.x86_64'
executableFormat = ''
else if (platform == 'darwin')
executableFormat = 'bin.osx'
executableFormat = ''
const tfPath = await path.join(selected, `TowerFall.${executableFormat}`);
const tfPath = await path.join(selected, `TowerFall${executableFormat}`);
if (await fs.exists(tfPath)) {
const fortRisePath = await path.join(selected, "TowerFall.FortRise.mm.dll");
Expand Down

0 comments on commit c1ba7a9

Please sign in to comment.