Skip to content

Commit

Permalink
Merge branch 'develop' into chore/ddw-596-webpack-5-upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikGuzei committed Mar 31, 2022
2 parents 6beb2b8 + a0e800f commit 69a25c2
Show file tree
Hide file tree
Showing 25 changed files with 97 additions and 810 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"react/destructuring-assignment": 0,
"react/display-name": 0,
"react/jsx-curly-brace-presence": 0,
"react/jsx-curly-newline": 0,
"react/jsx-filename-extension": 0,
"react/jsx-fragments": 0,
"react/jsx-no-bind": "warn",
Expand Down Expand Up @@ -89,7 +90,6 @@
"API": true,
"API_VERSION": true,
"NETWORK": true,
"MOBX_DEV_TOOLS": true,
"BUILD_NUMBER": true,
"Process": true // TODO: remove after fix
},
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
!source/
!features/
!storybook/
!tests/

# Now we ignore all files
*.*
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

### Fixes

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

### Chores

- Using new faker.js ([PR 2855](https://github.com/input-output-hk/daedalus/pull/2855))
- Removed `dockutil` due compatibility issues with MacOs Monterey 12.3 ([PR 2929](https://github.com/input-output-hk/daedalus/pull/2929))
- Fixed spelling issues and typos ([PR 2915](https://github.com/input-output-hk/daedalus/pull/2915))
- Removed SASS ts-lint ignore comments ([PR 2870](https://github.com/input-output-hk/daedalus/pull/2870))
- Enabled debugging of the main process ([PR 2893](https://github.com/input-output-hk/daedalus/pull/2893))
Expand Down
2 changes: 1 addition & 1 deletion declaration.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ export type EnumMap<
> = O & Record<K, V & $ElementType<O, K>>;

declare global {
let daedalus: Daedalus;
namespace NodeJS {
interface ProcessEnv {
WALLET_COUNT: number;
}
}
var daedalus: Daedalus;
}

export {};
51 changes: 12 additions & 39 deletions installers/common/MacInstaller.hs
Original file line number Diff line number Diff line change
Expand Up @@ -177,27 +177,6 @@ codeSignEntitlements = [r|<?xml version="1.0" encoding="UTF-8"?>
</dict>
</plist>|]

makePostInstall :: Format a (Text -> a)
makePostInstall = "#!/usr/bin/env bash\n" %
"#\n" %
"# See /var/log/install.log to debug this\n" %
"\n" %
"src_pkg=\"$1\"\ndst_root=\"$2\"\ndst_mount=\"$3\"\nsys_root=\"$4\"\n" %
"./dockutil --add \"${dst_root}/" % s % "\" --allhomes\n"

makeScriptsDir :: Options -> DarwinConfig -> Managed T.Text
makeScriptsDir Options{oBackend} DarwinConfig{dcAppNameApp} = case oBackend of
Cardano _ -> common
where
common = do
tmp <- fromString <$> (liftIO $ getEnv "TMP")
tempdir <- mktempdir tmp "scripts"
liftIO $ do
cp "data/scripts/dockutil" (tempdir </> "dockutil")
writeTextFile (tempdir </> "postinstall") (format makePostInstall dcAppNameApp)
chmod executable (tempdir </> "postinstall")
pure $ tt tempdir

makeSigningDir :: Managed (T.Text, T.Text)
makeSigningDir = do
tmp <- fromString <$> (liftIO $ getEnv "TMP")
Expand Down Expand Up @@ -389,27 +368,21 @@ makeComponentRoot Options{oBackend,oCluster} appRoot darwinConfig@DarwinConfig{d
exit $ ExitFailure 1

makeInstaller :: Options -> DarwinConfig -> FilePath -> FilePath -> IO FilePath
makeInstaller opts@Options{oOutputDir} darwinConfig@DarwinConfig{dcPkgName} componentRoot pkg = do
makeInstaller Options{oOutputDir} DarwinConfig{dcPkgName} componentRoot pkg = do
echo "Making installer ..."
let tempPkg1 = format fp (oOutputDir </> pkg)
tempPkg2 = oOutputDir </> (dropExtension pkg <.> "unsigned" <.> "pkg")
let
tempPkg1 = format fp (oOutputDir </> pkg)
tempPkg2 = oOutputDir </> (dropExtension pkg <.> "unsigned" <.> "pkg")
pkgargs :: [ T.Text ]
pkgargs =
[ "--identifier", dcPkgName
, "--component", tt componentRoot
, "--install-location", "/Applications"
, tempPkg1
]

mktree oOutputDir
with (makeScriptsDir opts darwinConfig) $ \scriptsDir -> do
let
pkgargs :: [ T.Text ]
pkgargs =
[ "--identifier"
, dcPkgName
, "--scripts", scriptsDir
, "--component"
, tt componentRoot
, "--install-location"
, "/Applications"
, tempPkg1
]
run "ls" [ "-ltrh", scriptsDir ]
run "pkgbuild" pkgargs
run "pkgbuild" pkgargs

run "productbuild" [ "--product", "data/plist"
, "--package", tempPkg1
Expand Down
Loading

0 comments on commit 69a25c2

Please sign in to comment.