Daedalus crypto

Comment

Author: Admin | 2025-04-28

Libraries (e.g. React Polymorph)You can link libraries with Daedalus using one of the following steps:1) Using yalcInstall yalc globally using yarn global add yalc.Run yalc publish from the library's root directory that you want to link with Daedalus.Switch to Daedalus and run yalc add or preferably yalc link .You should be able to start Daedalus and see the changes you are making locally in the library.To make sure your changes are reflected as you update code in the library, use yalc push.2) Using yarn linkFrom the Daedalus root directory, go to node_modules/react and yarn link.Navigate to the react-dom package in the same directory and run yarn link again.Go to the library's root directory and run yarn link, yarn link react and yarn link react-dom.Go back to the Daedalus root directory and run yarn link .Finally, run yarn build:watch from the library's root directory.TestingYou can find more details regarding tests setup withinRunning Daedalus acceptance tests README file.Notes: Be aware that only a single Daedalus instance can run per state directory.So you have to exit any development instances before running tests!PackagingIt is possible to build, and run just the Daedalus package, that would be bundled inside an installer, avoiding building of the installer.LinuxBuild:nix build -L .#daedalus-mainnetRun:nix run -L .#daedalus-mainnetmacOS (Intel, and Apple Silicon)Build:nix build -L .#daedalus-mainnetRun:nix run -L .#daedalus-mainnetIf you want to run an Intel build from an Apple Silicon machine:nix run -L .#packages.x86_64-darwin.daedalus-mainnetInstallersPlatform-specific build commands facilitate building Daedalus installers the way it is built by the IOHK CI:These commands require Nix, optionally configured with the IOHK binary cache (recommended, see above).Linux/macOSRun this from a Linux machine:nix build -L .#installer-mainnetThe result can be found at result/daedalus-*.bin.WindowsRun this from a Linux machine (cross-building):nix build -L .#installer-mainnet-x86_64-windowsThe result will can be found at result/daedalus-*.exe.macOS (Intel, and Apple Silicon)Run this from a macOS machine:nix build -L .#installer-mainnetIf you want to build an Intel version from an Apple Silicon machine:nix build -L .#packages.x86_64-darwin.installer-mainnetThe result can be found at result/daedalus-*.pkg.

Add Comment