Skip to content

Commit

Permalink
Merge branch 'develop' into feature/ddw-992
Browse files Browse the repository at this point in the history
# Conflicts:
#	CHANGELOG.md
  • Loading branch information
danielmain committed Mar 25, 2022
2 parents 1f3b7c4 + 43d4622 commit e1b0a97
Show file tree
Hide file tree
Showing 45 changed files with 377 additions and 892 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,27 @@

### Features

- Improved UI regarding the Hardware Wallet public key export error ([PR 2922](https://github.com/input-output-hk/daedalus/pull/2922))
- Added ASCII name to token header when metadata name is missing ([PR 2904](https://github.com/input-output-hk/daedalus/pull/2904))
- Improved IPC by reducing the amount of messages from periodic events ([PR 2892](https://github.com/input-output-hk/daedalus/pull/2892))
- Improved RTS flags splash screen message ([PR 2901](https://github.com/input-output-hk/daedalus/pull/2901))
- Implemented error message when trying to leave wallet without enough ada to support tokens ([PR 2783](https://github.com/input-output-hk/daedalus/pull/2783))

### Fixes

- Fixed position of popup on syncing screen ([PR 2921](https://github.com/input-output-hk/daedalus/pull/2921))
- 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))
- Fix warning sign displayed when recommend decimals is zero ([PR 2905](https://github.com/input-output-hk/daedalus/pull/2905))
- Fixed discrete tooltip being clipped by loading overlay when stake pools are adjusted ([PR 2902](https://github.com/input-output-hk/daedalus/pull/2902))
- Sets minimum transaction fee to ada input field when tokens are removed ([PR 2918](https://github.com/input-output-hk/daedalus/pull/2918))

### 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
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ If you get SSL error when running `nix-shell` (SSL peer certificate or SSH remot

1. Run `yarn nix:selfnode` from `daedalus`.
2. Run `yarn dev` from the subsequent `nix-shell` (use `KEEP_LOCAL_CLUSTER_RUNNING` environment variable to keep the local cluster running after Daedalus exits: `KEEP_LOCAL_CLUSTER_RUNNING=true yarn dev`)
1. Alternatively: run `yarn nix:selfnode yarn dev` to achieve the same thing in a single command. Note: after `yarn dev` exits, you will still remain in the `nix-shell`.
3. Once Daedalus has started and has gotten past the loading screen run the following commands from a new terminal window if you wish to import funded wallets:
- Byron wallets: `yarn byron:wallet:importer`
- Shelley wallets: `yarn shelley:wallet:importer`
Expand Down Expand Up @@ -94,31 +95,37 @@ If you get SSL error when running `nix-shell` (SSL peer certificate or SSH remot

1. Run `yarn nix:mainnet` from `daedalus`.
2. Run `yarn dev` from the subsequent `nix-shell`
3. Or in one command: `yarn nix:mainnet yarn dev`

#### Flight

1. Run `yarn nix:flight` from `daedalus`.
2. Run `yarn dev` from the subsequent `nix-shell`
3. Or in one command: `yarn nix:flight yarn dev`

#### Testnet

1. Run `yarn nix:testnet` from `daedalus`.
2. Run `yarn dev` from the subsequent `nix-shell`
3. Or in one command: `yarn nix:testnet yarn dev`

#### Staging

1. Run `yarn nix:staging` from `daedalus`.
2. Run `yarn dev` from the subsequent `nix-shell`
3. Or in one command: `yarn nix:staging yarn dev`

#### Shelley QA

1. Run `yarn nix:shelley_qa` from `daedalus`.
2. Run `yarn dev` from the subsequent `nix-shell`
3. Or in one command: `yarn nix:shelley_qa yarn dev`

#### Alonzo Purple

1. Run `yarn nix:alonzo_purple` from `daedalus`.
2. Run `yarn dev` from the subsequent `nix-shell`
3. Or in one command: `yarn nix:alonzo_purple yarn dev`

#### Native token metadata server

Expand Down
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 e1b0a97

Please sign in to comment.