Skip to content

Commit

Permalink
Fix scala-cli executable name on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
JD557 authored and keynmol committed Dec 5, 2023
1 parent 231f039 commit 2e882f9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions modules/cli/src/main/scala/CommandLineApp.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package com.indoorvivants.vcpkg
package cli

import cats.implicits.*
import com.indoorvivants.detective.Platform
import com.monovore.decline.*
import java.io.File
import io.circe.Codec
import io.circe.CodecDerivation
import io.circe.Decoder
import java.io.File

enum Compiler:
case Clang, ClangPP
Expand Down Expand Up @@ -430,9 +431,12 @@ object VcpkgCLI extends VcpkgPluginImpl, VcpkgPluginNativeImpl:
deps.dependencies(str =>
decode[VcpkgManifestFile](str).fold(throw _, identity)
)
val scalaCliBin = Platform.os match
case Platform.OS.Windows => "scala-cli.bat"
case _ => "scala-cli"
val scalaCliArgs = List.newBuilder[String]

scalaCliArgs.addOne("scala-cli")
scalaCliArgs.addOne(scalaCliBin)
scalaCliArgs.addAll(rest)

computeNativeFlags(
Expand Down

0 comments on commit 2e882f9

Please sign in to comment.