From 76492a966f86db8df3128285edf05b5fafde2a5b Mon Sep 17 00:00:00 2001 From: Dominik Guzei Date: Wed, 1 Mar 2017 11:15:15 +0100 Subject: [PATCH 1/2] [DAE-106] refactor util-scripts for frontend usage --- {scripts => util-scripts}/build-daedalus-bridge.sh | 0 util-scripts/build-mac-production.sh | 5 +++++ util-scripts/clean-local-data.sh | 1 + {scripts => util-scripts}/clean.sh | 0 4 files changed, 6 insertions(+) rename {scripts => util-scripts}/build-daedalus-bridge.sh (100%) create mode 100755 util-scripts/build-mac-production.sh create mode 100755 util-scripts/clean-local-data.sh rename {scripts => util-scripts}/clean.sh (100%) diff --git a/scripts/build-daedalus-bridge.sh b/util-scripts/build-daedalus-bridge.sh similarity index 100% rename from scripts/build-daedalus-bridge.sh rename to util-scripts/build-daedalus-bridge.sh diff --git a/util-scripts/build-mac-production.sh b/util-scripts/build-mac-production.sh new file mode 100755 index 00000000000..48be6ef4e39 --- /dev/null +++ b/util-scripts/build-mac-production.sh @@ -0,0 +1,5 @@ +./scripts/clean.sh +CSL_SYSTEM_TAG=linux ./util-scripts/build-mac.sh --flag cardano-sl:-dev-mode +rm -rf daedalus/src/Generated/ +stack --nix exec -- cardano-wallet-hs2purs +cd daedalus && npm install && npm run build:prod && npm link && npm start diff --git a/util-scripts/clean-local-data.sh b/util-scripts/clean-local-data.sh new file mode 100755 index 00000000000..6525e7c5d05 --- /dev/null +++ b/util-scripts/clean-local-data.sh @@ -0,0 +1 @@ +rm -rf run/* wallet-db/ *key* db-abc/* node-* diff --git a/scripts/clean.sh b/util-scripts/clean.sh similarity index 100% rename from scripts/clean.sh rename to util-scripts/clean.sh From 78c1478673b7f95a12885769de77f8b99d603058 Mon Sep 17 00:00:00 2001 From: Dominik Guzei Date: Thu, 2 Mar 2017 13:48:54 +0100 Subject: [PATCH 2/2] [dae-106] fix wrong reference to clean script --- util-scripts/build-mac-production.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util-scripts/build-mac-production.sh b/util-scripts/build-mac-production.sh index 48be6ef4e39..9a556b20d3c 100755 --- a/util-scripts/build-mac-production.sh +++ b/util-scripts/build-mac-production.sh @@ -1,4 +1,4 @@ -./scripts/clean.sh +./util-scripts/clean.sh CSL_SYSTEM_TAG=linux ./util-scripts/build-mac.sh --flag cardano-sl:-dev-mode rm -rf daedalus/src/Generated/ stack --nix exec -- cardano-wallet-hs2purs