diff --git a/nix/devshells.nix b/nix/devshells.nix index 0c15e39b47..27f009fb4e 100644 --- a/nix/devshells.nix +++ b/nix/devshells.nix @@ -122,6 +122,8 @@ let mkdir -p "$CARDANO_WALLET_TLS_PATH" regenerate-dev-certs >/dev/null + sed -r "s/'127\.0\.0\.1'/undefined/g" -i node_modules/cardano-launcher/dist/src/cardanoNode.js + echo echo 'Now, run ‘yarn dev’.' ''; diff --git a/nix/internal/any-darwin.nix b/nix/internal/any-darwin.nix index 5590f3d84b..ea86ddb02c 100644 --- a/nix/internal/any-darwin.nix +++ b/nix/internal/any-darwin.nix @@ -137,6 +137,8 @@ in rec { patchShebangs . sed -r 's#.*patchElectronRebuild.*#${common.patchElectronRebuild}/bin/*#' -i scripts/rebuild-native-modules.sh + sed -r "s/'127\.0\.0\.1'/undefined/g" -i node_modules/cardano-launcher/dist/src/cardanoNode.js + export DEVX_FIXME_DONT_YARN_INSTALL=1 ( cd installers/ diff --git a/nix/internal/x86_64-linux.nix b/nix/internal/x86_64-linux.nix index 2b47db4d15..44967313dc 100644 --- a/nix/internal/x86_64-linux.nix +++ b/nix/internal/x86_64-linux.nix @@ -117,6 +117,8 @@ in rec { sed -r 's#.*patchElectronRebuild.*#${common.patchElectronRebuild}/bin/*#' -i scripts/rebuild-native-modules.sh yarn build:electron + sed -r "s/'127\.0\.0\.1'/undefined/g" -i node_modules/cardano-launcher/dist/src/cardanoNode.js + yarn run package -- --name ${lib.escapeShellArg common.launcherConfigs.${cluster}.installerConfig.spacedName} ''; installPhase = '' diff --git a/nix/internal/x86_64-windows.nix b/nix/internal/x86_64-windows.nix index 2e447e23f0..256c958e9e 100644 --- a/nix/internal/x86_64-windows.nix +++ b/nix/internal/x86_64-windows.nix @@ -86,6 +86,8 @@ in rec { mkdir -p installers/icons/${cluster}/${cluster} cp ${windowsIcons.${cluster}}/${cluster}/* installers/icons/${cluster}/${cluster}/ + sed -r "s/'127\.0\.0\.1'/undefined/g" -i node_modules/cardano-launcher/dist/src/cardanoNode.js + export DEBUG=electron-packager yarn --verbose --offline package --win64 --dir $(pwd) --icon installers/icons/${cluster}/${cluster} '';