Skip to content
This repository was archived by the owner on Feb 3, 2022. It is now read-only.

Commit 0361d85

Browse files
author
Gershom
committed
distribute stack with windows
1 parent 38197ae commit 0361d85

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

hptool/src/OS/Win/WinRules.hs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ import qualified Data.ByteString as B
1212
import qualified Data.Text as T
1313
import qualified Data.Text.Encoding as E
1414
import Development.Shake
15-
import Development.Shake.FilePath ( (</>), takeDirectory )
15+
import Development.Shake.FilePath ( (</>), takeDirectory, takeFileName )
1616

17+
import Config
1718
import Dirs
1819
import OS.Internal
1920
import OS.Win.WinNsis
@@ -73,6 +74,11 @@ copyWinTargetExtras bc = do
7374
-- copy msys(msys2) pieces
7475
copyDirAction (winExternalMSysDir bc) winMSysTargetDir
7576

77+
-- copy stack executable
78+
stackFile <- askStackExe
79+
copyFileAction (return ()) (takeDirectory stackFile) (winHpTargetDir </> "bin") (takeFileName stackFile)
80+
81+
7682

7783
-- | These files are needed when building the installer
7884
copyInstExtras :: Rules ()

0 commit comments

Comments
 (0)