Skip to content

Commit

Permalink
Merge pull request #1499 from informalsystems/gabriela/fix-windows-ap…
Browse files Browse the repository at this point in the history
…alache

Start a bat for Apalache when in Windows
  • Loading branch information
bugarela authored Sep 17, 2024
2 parents 2fbfb6f + 9dc8428 commit 66a07f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion quint/src/apalache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,8 @@ function downloadAndUnpackApalache(): Promise<ApalacheResult<null>> {
* - a `left<ApalacheError>` indicating an error.
*/
async function fetchApalache(verbosityLevel: number): Promise<ApalacheResult<string>> {
const apalacheBinary = path.join(apalacheDistDir(), 'apalache', 'bin', 'apalache-mc')
const filename = process.platform === 'win32' ? 'apalache-mc.bat' : 'apalache-mc'
const apalacheBinary = path.join(apalacheDistDir(), 'apalache', 'bin', filename)
if (fs.existsSync(apalacheBinary)) {
// Use existing download
debugLog(verbosityLevel, `Using existing Apalache distribution in ${apalacheBinary}`)
Expand Down

0 comments on commit 66a07f0

Please sign in to comment.