@@ -19,45 +19,13 @@ import Data.Aeson (decode)
19
19
20
20
import Config
21
21
import Types
22
- import qualified MacInstaller as Mac
23
22
import Util
24
23
25
24
main :: IO ()
26
25
main = hspec $ do
27
26
describe " Utility functions" utilSpec
28
- describe " MacInstaller build" macBuildSpec
29
27
describe " recursive directory deletion" deleteSpec
30
28
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
-
61
29
-- | Set up a temporary source/installers directory with everything
62
30
-- required for the installer builder. This is so that the installer
63
31
-- builder can be tested in a pure environment without any
0 commit comments