Skip to content

Commit c70961d

Browse files
committed
Merge branch 'develop' into chore/ddw-940-update-faker
2 parents b3594f4 + c005deb commit c70961d

File tree

7 files changed

+18
-727
lines changed

7 files changed

+18
-727
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
### Fixes
1313

14+
- Fixed issue with missing character when copying address from PDF ([PR 2925](https://github.com/input-output-hk/daedalus/pull/2925))
1415
- Fixed stake pool list view overlapping news feed ([PR 2917](https://github.com/input-output-hk/daedalus/pull/2917))
1516
- Restored opacity for search icon when focused ([PR 2909](https://github.com/input-output-hk/daedalus/pull/2909))
1617
- Fixed styling of the incentivized testnet rewards wallet dropdown ([PR 2907](https://github.com/input-output-hk/daedalus/pull/2907))
@@ -20,6 +21,8 @@
2021

2122
### Chores
2223

24+
- Using new faker.js ([PR 2855](https://github.com/input-output-hk/daedalus/pull/2855))
25+
- Removed `dockutil` due compatibility issues with MacOs Monterey 12.3 ([PR 2929](https://github.com/input-output-hk/daedalus/pull/2929))
2326
- Fixed spelling issues and typos ([PR 2915](https://github.com/input-output-hk/daedalus/pull/2915))
2427
- Removed SASS ts-lint ignore comments ([PR 2870](https://github.com/input-output-hk/daedalus/pull/2870))
2528
- Enabled debugging of the main process ([PR 2893](https://github.com/input-output-hk/daedalus/pull/2893))

installers/common/MacInstaller.hs

Lines changed: 12 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -177,27 +177,6 @@ codeSignEntitlements = [r|<?xml version="1.0" encoding="UTF-8"?>
177177
</dict>
178178
</plist>|]
179179

180-
makePostInstall :: Format a (Text -> a)
181-
makePostInstall = "#!/usr/bin/env bash\n" %
182-
"#\n" %
183-
"# See /var/log/install.log to debug this\n" %
184-
"\n" %
185-
"src_pkg=\"$1\"\ndst_root=\"$2\"\ndst_mount=\"$3\"\nsys_root=\"$4\"\n" %
186-
"./dockutil --add \"${dst_root}/" % s % "\" --allhomes\n"
187-
188-
makeScriptsDir :: Options -> DarwinConfig -> Managed T.Text
189-
makeScriptsDir Options{oBackend} DarwinConfig{dcAppNameApp} = case oBackend of
190-
Cardano _ -> common
191-
where
192-
common = do
193-
tmp <- fromString <$> (liftIO $ getEnv "TMP")
194-
tempdir <- mktempdir tmp "scripts"
195-
liftIO $ do
196-
cp "data/scripts/dockutil" (tempdir </> "dockutil")
197-
writeTextFile (tempdir </> "postinstall") (format makePostInstall dcAppNameApp)
198-
chmod executable (tempdir </> "postinstall")
199-
pure $ tt tempdir
200-
201180
makeSigningDir :: Managed (T.Text, T.Text)
202181
makeSigningDir = do
203182
tmp <- fromString <$> (liftIO $ getEnv "TMP")
@@ -389,27 +368,21 @@ makeComponentRoot Options{oBackend,oCluster} appRoot darwinConfig@DarwinConfig{d
389368
exit $ ExitFailure 1
390369

391370
makeInstaller :: Options -> DarwinConfig -> FilePath -> FilePath -> IO FilePath
392-
makeInstaller opts@Options{oOutputDir} darwinConfig@DarwinConfig{dcPkgName} componentRoot pkg = do
371+
makeInstaller Options{oOutputDir} DarwinConfig{dcPkgName} componentRoot pkg = do
393372
echo "Making installer ..."
394-
let tempPkg1 = format fp (oOutputDir </> pkg)
395-
tempPkg2 = oOutputDir </> (dropExtension pkg <.> "unsigned" <.> "pkg")
373+
let
374+
tempPkg1 = format fp (oOutputDir </> pkg)
375+
tempPkg2 = oOutputDir </> (dropExtension pkg <.> "unsigned" <.> "pkg")
376+
pkgargs :: [ T.Text ]
377+
pkgargs =
378+
[ "--identifier", dcPkgName
379+
, "--component", tt componentRoot
380+
, "--install-location", "/Applications"
381+
, tempPkg1
382+
]
396383

397384
mktree oOutputDir
398-
with (makeScriptsDir opts darwinConfig) $ \scriptsDir -> do
399-
let
400-
pkgargs :: [ T.Text ]
401-
pkgargs =
402-
[ "--identifier"
403-
, dcPkgName
404-
, "--scripts", scriptsDir
405-
, "--component"
406-
, tt componentRoot
407-
, "--install-location"
408-
, "/Applications"
409-
, tempPkg1
410-
]
411-
run "ls" [ "-ltrh", scriptsDir ]
412-
run "pkgbuild" pkgargs
385+
run "pkgbuild" pkgargs
413386

414387
run "productbuild" [ "--product", "data/plist"
415388
, "--package", tempPkg1

0 commit comments

Comments
 (0)