@@ -19,45 +19,13 @@ import Data.Aeson (decode)
1919
2020import Config
2121import Types
22- import qualified MacInstaller as Mac
2322import Util
2423
2524main :: IO ()
2625main = hspec $ do
2726 describe " Utility functions" utilSpec
28- describe " MacInstaller build" macBuildSpec
2927 describe " recursive directory deletion" deleteSpec
3028
31- macBuildSpec :: Spec
32- macBuildSpec = do
33- describe " The whole thing" $ do
34- it " Runs through the whole installer build" $ runManaged $ do
35- out <- getTempDir " test-build"
36- installersDir <- makeTestInstallersDir
37- daedalusBridge <- liftIO getDaedalusBridge
38-
39- let opts = Options
40- { oOS = Win64
41- , oBackend = Cardano daedalusBridge
42- , oBuildJob = Just (BuildJob " test" )
43- , oCluster = Testnet
44- , oAppName = " Daedalus"
45- , oOutputDir = out
46- , oTestInstaller = testInstaller False
47- , oSigningConfigPath = Nothing
48- }
49-
50- liftIO $ do
51- withDir installersDir $ do
52- mktree " ../release/darwin-x64/Daedalus-darwin-x64/Daedalus.app/Contents/Resources/app"
53- mktree " ../release/darwin-arm64/Daedalus-darwin-arm64/Daedalus.app/Contents/Resources/app"
54- writeFile " ../release/darwin-x64/Daedalus-darwin-x64/Daedalus.app/Contents/Resources/app/package.json" " {}"
55- writeFile " ../release/darwin-arm64/Daedalus-darwin-arm64/Daedalus.app/Contents/Resources/app/package.json" " {}"
56- Mac. main opts
57-
58- -- there should be an installer file at the end
59- fold (ls out) Fold. length `shouldReturn` 1
60-
6129-- | Set up a temporary source/installers directory with everything
6230-- required for the installer builder. This is so that the installer
6331-- builder can be tested in a pure environment without any
0 commit comments