diff --git a/src/Binary.hs b/src/Binary.hs index 49b90f6..c7d11a6 100644 --- a/src/Binary.hs +++ b/src/Binary.hs @@ -33,8 +33,9 @@ run Binary{..} = Just $ withCurrentDirectory path $ withTempDir $ \tdir -> do let zname = if isWindows then vname ++ "-x86_64-windows.zip" else if isMac then vname ++ "-x86_64-osx.tar.gz" else vname ++ "-x86_64-linux.tar.gz" + tdir <- canonicalizePath tdir b <- withCurrentDirectory tdir $ do - system_ "cabal v2-build --only-dependencies all" + system_ "cabal v2-build --only-dependencies" system_ "cabal v2-configure --datadir=nul --disable-library-profiling" system_ "cabal v2-build" let out = "bin" vname