I'm relying on shell calls to
Typically speaking, this is where you would want to get a library dependency to handle the unzipping of files. Some people use Apache Commons Compress, which would require this library dependency in your sbt build definition:
libraryDependencies += "org.apache.commons" % "commons-compress" % "1.5" // Or whatever version you need
Alternatively, you can include the
exe file in a
resources file that will get included with your build - assuming that the executable doesn't need to be installed at the system level. This can be as simple as creating the
src/main/resources directory and putting the file in there. Your jar will only work on compatible system architectures, though, so think twice before going this route. Unless there is a specific reason that 7-zip needs to be used to unpack the file, it's better to use a Java or Scala-compatible library and avoid having to make the shell calls.