From a9986f530f621b145ea4b55f1ddc94efed1197e1 Mon Sep 17 00:00:00 2001 From: Johannes Klein Date: Mon, 4 Oct 2021 18:11:45 +0200 Subject: [PATCH] Actual windows version check --- src/app/store/Run.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/store/Run.js b/src/app/store/Run.js index 3827b248..15f173e9 100644 --- a/src/app/store/Run.js +++ b/src/app/store/Run.js @@ -9,6 +9,7 @@ import filenamify from 'filenamify'; import electronutil from 'electron-util'; import util from 'util'; import fs from 'fs'; +import os from 'os'; import Alignment, { FinalAlignment } from './Alignment'; import Option from './Option'; @@ -27,7 +28,8 @@ const raxmlAscertainmentOptions = raxmlSettings.ascertainmentOptions; export const MAX_NUM_CPUS = cpus().length; -const winBinaries = false ? [ +// On Windows 7 (= 6.1) use older versions of RAxML +const winBinaries = os.release() === "6.1" ? [ // TODO: add raxml ng windows exe { name: 'modeltest-ng.exe', version: '0.1.7' }, { name: 'raxmlHPC_Win7.exe', multithreaded: false, version: '8.2.10' },