Skip to content

Commit 9e51bdb

Browse files
authored
Merge pull request #2958 from input-output-hk/merge-4.9.1-into-master
2 parents 0c3c6e3 + f833149 commit 9e51bdb

File tree

7 files changed

+50
-729
lines changed

7 files changed

+50
-729
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## 4.9.1
4+
5+
### Fixes
6+
7+
- Fixed catalyst fund name ([PR 2946](https://github.com/input-output-hk/daedalus/pull/2946))
8+
- Fixed macOS installer on Monterey 12.3 ([PR 2929](https://github.com/input-output-hk/daedalus/pull/2929))
9+
10+
### Chores
11+
12+
- Introduced new version of the `@cardano-foundation/ledgerjs-hw-app-cardano` package ([PR 2930](https://github.com/input-output-hk/daedalus/pull/2930))
13+
314
## 4.9.0
415

516
### Features

installers/common/MacInstaller.hs

Lines changed: 14 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ sign_cmd "$ABS_PATH/Contents/Resources/app/node_modules/keccak/bin/darwin-x64-"*
153153
sign_cmd "$ABS_PATH/Contents/Resources/app/node_modules/keccak/build/Release/addon.node"
154154
sign_cmd "$ABS_PATH/Contents/Resources/app/node_modules/keccak/prebuilds/darwin-x64/node.napi.node"
155155
sign_cmd "$ABS_PATH/Contents/Resources/app/node_modules/blake-hash/prebuilds/darwin-x64/node.napi.node"
156+
sign_cmd "$ABS_PATH/Contents/Resources/app/node_modules/blake2/build/Release/binding.node"
156157
sign_cmd "$ABS_PATH/Contents/Resources/app/node_modules/tiny-secp256k1/build/Release/secp256k1.node"
157158

158159
# Sign the whole component deeply
@@ -177,27 +178,6 @@ codeSignEntitlements = [r|<?xml version="1.0" encoding="UTF-8"?>
177178
</dict>
178179
</plist>|]
179180

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-
201181
makeSigningDir :: Managed (T.Text, T.Text)
202182
makeSigningDir = do
203183
tmp <- fromString <$> (liftIO $ getEnv "TMP")
@@ -245,6 +225,7 @@ buildElectronApp darwinConfig@DarwinConfig{dcAppName, dcAppNameApp} installerCon
245225
, "bip66"
246226
, "bitcoin-ops"
247227
, "blake2b"
228+
, "blake2"
248229
, "blake-hash"
249230
, "blake2b-wasm"
250231
, "bn.js"
@@ -389,27 +370,21 @@ makeComponentRoot Options{oBackend,oCluster} appRoot darwinConfig@DarwinConfig{d
389370
exit $ ExitFailure 1
390371

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

397386
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
387+
run "pkgbuild" pkgargs
413388

414389
run "productbuild" [ "--product", "data/plist"
415390
, "--package", tempPkg1

0 commit comments

Comments
 (0)