forked from reflex-frp/reflex-todomvc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Setup.hs
30 lines (26 loc) · 944 Bytes
/
Setup.hs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{-# LANGUAGE CPP #-}
import Distribution.Simple
#if !defined(ghcjs_HOST_OS) && defined(MIN_VERSION_cabal_macosx)
import Distribution.MacOSX
guiApps :: [MacApp]
guiApps = [ MacApp "reflex-todomvc"
Nothing
(Just "macos/Info.plist")
[] -- No other resources.
[] -- No other binaries.
DoNotChase -- Try changing to ChaseWithDefaults
, MacApp "reflex-todomvc-wkwebview"
Nothing
(Just "macos/Info.plist")
[] -- No other resources.
[] -- No other binaries.
DoNotChase -- Try changing to ChaseWithDefaults
]
#endif
main :: IO ()
main = defaultMainWithHooks simpleUserHooks
#if !defined(ghcjs_HOST_OS) && defined(MIN_VERSION_cabal_macosx)
{ postBuild = appBundleBuildHook guiApps
, postCopy = appBundleCopyHook guiApps
}
#endif