Skip to content

Commit

Permalink
[DDW-1228] Don’t force-bind the node to localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
michalrus committed Jan 22, 2024
1 parent 7cb4334 commit 30c78eb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nix/devshells.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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’.'
'';
Expand Down
2 changes: 2 additions & 0 deletions nix/internal/any-darwin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
2 changes: 2 additions & 0 deletions nix/internal/x86_64-linux.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''
Expand Down
2 changes: 2 additions & 0 deletions nix/internal/x86_64-windows.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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}
'';
Expand Down

0 comments on commit 30c78eb

Please sign in to comment.